Skip to content

NO SUPPORT FOR THE POST OF POLICIES WRITTEN IN WAC #224

Open
@DiegoCaro96

Description

@DiegoCaro96

When I try to make a curl POST, of a policy written in WAC the result is "unprocessable entity".

##########################
I mean when I try to do this:

curl -s -i -X 'POST'
'http: //127.0.0.1:8085/v1/policies/'
-H 'fiware-service: Tenant1'
-H 'fiware-servicepath: /'
-H 'Content-type: text/turtle'
-d '
@base https://tenant1.url/.
@Prefix acl: http://www.w3.org/ns/auth/acl#.
@Prefix foaf: http://xmlns.com/foaf/0.1.
@Prefix tenant1: https://tenant1.url/.

tenant1:policy1 a acl:Authorization ;

acl: accessTo urn:AirQuality:1 ;
acl:accessToClass tenant1:entity ;
acl:agentClass acl:agent:admin;
acl:mode acl:Write.'

########################
the result of anubis is: HTTP/1.1 422 unprocessable Entity

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions