[OTDev] A&A clarifications

surajit ray mr.surajit.ray at gmail.com
Wed Mar 9 14:07:28 CET 2011


Hi,

the command

curl -i -H "Content-Type: application/xml" -T /home/maxtox/maxtox.pol
-X POST http://opensso.in-silico.ch/Pol/opensso-pol -H
"subjectid:AQIC5wM2LY4SfcyH9ELyynby356aOvAkimDZeEz2wzWTSX4=@AAJTSQACMDE=#"

to create a policy returns

HTTP/1.0 500 Internal Server Error
Server: nginx/0.6.32
Date: Wed, 09 Mar 2011 13:02:39 GMT
Content-Type: text/plain
Proxy-Connection: keep-alive
Content-Length: 44

IOException. Please contact administrator.

I was expecting that it did not create the policy since I did not 200
OK. However when I ran the same again I got

HTTP/1.0 400 Bad Request
Server: nginx/0.6.32
Date: Wed, 09 Mar 2011 13:04:26 GMT
Content-Type: text/plain
Proxy-Connection: keep-alive
Content-Length: 111

OpenSSOPolicy allow_ambit_dataset_access_for_maxtox already exists in
organization dc=opensso,dc=java,dc=net.


which means it created the policy. Therefore it should have given a
200 OK before. Or is this policy invalid ?

Regards
Surajit



On 9 March 2011 18:30, surajit ray <mr.surajit.ray at gmail.com> wrote:
> Hi Andreas,
>
> Documentation at
> http://opentox.org/dev/documentation/Guidance%20on%20Using%20AA#example-session-policies
>
> incorrectly states that the subjectid should be URL encoded. The command
>
> curl -i -X GET http://opensso.in-silico.ch/Pol/opensso-pol -H
> "subjectid:AQIC5wM2LY4SfcyH9ELyynby356aOvAkimDZeEz2wzWTSX4%3D%40AAJTSQACMDE%3D%23"
>
> returns .......
>
> HTTP/1.0 400 Bad Request
> Server: nginx/0.6.32
> Date: Wed, 09 Mar 2011 12:57:15 GMT
> Content-Type: text/plain
> Proxy-Connection: keep-alive
> Content-Length: 59
>
> Token could not be resolved to a user id. Token expired?.
>
>
>
> While the same without url encoding
> curl -i -X GET http://opensso.in-silico.ch/Pol/opensso-pol -H
> "subjectid:AQIC5wM2LY4SfcyH9ELyynby356aOvAkimDZeEz2wzWTSX4=@AAJTSQACMDE=#"
>
> returns
>
>
> HTTP/1.0 200 OK
> Server: nginx/0.6.32
> Date: Wed, 09 Mar 2011 12:57:22 GMT
> Content-Type: text/plain
> Proxy-Connection: keep-alive
> Content-Length: 1
>
>
>
> Could you please change the same on the documentation page ?
>
> Regards
> Surajit
>
>
>
> On 8 March 2011 19:07, Andreas Maunz <andreas at maunz.de> wrote:
>> surajit ray wrote on 03/08/2011 02:23 PM:
>>>
>>> Could you please clarify these inconsistencies (if the cannot be
>>> changed) in the help document ?
>>
>> Definitely, I'll make the point more explicit.
>>
>> Andreas
>>
>



More information about the Development mailing list