You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the first time I created an Enforcer when the database was empty and checked if the request was fulfilled without any issues, but when the database included these policies, creating an Enforcer would result in an error message: extraneous or missing "in quoted field". What is the problem? Please help me.
I am using an adapter based on MongoDB:
a, err:=mongodbadapter.NewAdapterWithClientOption(mongoClientOption, databaseName)
iferr!=nil {
panic(err)
}
e, err:=casbin.NewEnforcer("../conf/abac_model.conf", a)
@Harris-H can you provide a full example? Which API did you call? and paste the IDE error directly
When I call the NewEnforcer() function API, I will report an error: extraneous or missing "in quoted field". However, I will not report an error when I do not have a policy in the database. Testing with request also runs normally, and creating an Enforcer again after adding a policy will report an error.
I found that the first time I created an Enforcer when the database was empty and checked if the request was fulfilled without any issues, but when the database included these policies, creating an Enforcer would result in an error message: extraneous or missing "in quoted field". What is the problem? Please help me.
I am using an adapter based on MongoDB:
My model:
My policy:
My request(s):
The text was updated successfully, but these errors were encountered: