Closed alphaville closed 13 years ago
Tried also via command line:
curl -k -i -X GET https://opensso.in-silico.ch/Pol/opensso-pol -H "subjectid: AQIC5wM2LY4SfcyosUushi5IAlLbdLfqlB1WXyJ0iSgat3M%3D%40AAJTSQACMDE%3D%23"
Though my token is fresh here's the response I get:
HTTP/1.1 400 Bad Request Server: nginx/0.6.32 Date: Mon, 29 Nov 2010 18:18:13 GMT Content-Type: text/plain Connection: keep-alive Content-Length: 59
Token could not be resolved to a user id. Token expired?.
Something similar holds when using the latest URI of the policy service:
curl -k -i -X GET https://opensso.in-silico.ch/pol -H "subjectid: AQIC5wM2LY4SfcyosUushi5IAlLbdLfqlB1WXyJ0iSgat3M%3D%40AAJTSQACMDE%3D%23"
HTTP/1.1 400 Bad Request Server: nginx/0.6.32 Date: Mon, 29 Nov 2010 18:19:08 GMT Content-Type: text/html;charset=utf-8 Connection: keep-alive Content-Length: 59
Bug solved. Should have sent the token not URL-encoded! Must check for other places in the source code where tokens are encoded!
Test org.opentox.toxotis.util.aa.policy.PolicyTest#testListPolicies() fails with message:
UnknownCauseOfException - Service returned status code : 400 at org.opentox.toxotis.util.aa.policy.Policy.listPolicyUris(Policy.java:299) at org.opentox.toxotis.util.aa.policy.PolicyTest.testListPolicies(PolicyTest.java:66)