[OTDev] A&A clarifications

surajit ray mr.surajit.ray at gmail.com
Wed Mar 9 15:11:53 CET 2011


Hi,

I tried


curl -i -d "uri=https://ambit.uni-plovdiv.bg:8443/ambit2/dataset/" –d
"action=POST" -d
"subjectid=AQIC5wM2LY4SfczwFu6m0T%2Bx%2FwGYx1AMqBNrEq7LeDjb%2FAk%3D%40AAJTSQACMDE%3D%23"
http://opensso.in-silico.ch/opensso/identity/authorize

but I still got a

boolean=false

The Url encoding did not help !

Regards
Surajit

On 9 March 2011 19:33, Andreas Maunz <andreas at maunz.de> wrote:
> ... and also, please chose a new policy name next time, since currently I
> can not delete your "allow_ambit_dataset_get_and_post_for_maxtox" policy due
> to the field that was filled with the wrong value (AmbitDatasetService). The
> policy server now tries to look up this service but it does not exist.
> Please always use "iPlanetAMWebAgentService".
>
> Regards
> Andreas
>
> surajit ray wrote on 03/09/2011 02:39 PM:
>>
>> Hi ,
>>
>> I am consistently getting IOException. on this
>>
>> curl -i -H "Content-Type: application/xml" -T
>> /home/maxtox/opentox_policies/maxtox.pol -X POST
>> http://opensso.in-silico.ch/Pol/opensso-pol -H
>> "subjectid:AQIC5wM2LY4SfcxzV1Iccj/JnoWbB6u8KYiuxgJt6QEFVH4=@AAJTSQACMDE=#"
>>
>> The token is valid. I do not whats happening with the policy. I have
>> attached the policy file again.
>>
>> Regards
>> Surajit
>>
>> On 9 March 2011 18:59, Andreas Maunz<andreas at maunz.de>  wrote:
>>>
>>> surajit ray wrote on 03/09/2011 02:18 PM:
>>>>
>>>> Hi,
>>>>
>>>> on doing a
>>>>
>>>>  curl -i -X GET -H
>>>>
>>>> "subjectid:AQIC5wM2LY4SfcyH9ELyynby356aOvAkimDZeEz2wzWTSX4=@AAJTSQACMDE=#"
>>>>
>>>>
>>>> http://opensso.in-silico.ch/Pol/opensso-pol/allow_ambit_dataset_access_for_maxtox
>>>>
>>>> to list my policy i got
>>>>
>>>> HTTP/1.0 404 Not Found
>>>> Server: nginx/0.6.32
>>>> Date: Wed, 09 Mar 2011 13:17:24 GMT
>>>> Content-Type: text/html;charset=utf-8
>>>> Proxy-Connection: keep-alive
>>>> Content-Length: 952
>>>>
>>>> <html><head><title>Apache Tomcat/6.0.26 - Error
>>>> report</title><style><!--H1
>>>>
>>>>
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
>>>> H2
>>>>
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
>>>> H3
>>>>
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
>>>> BODY
>>>>
>>>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
>>>> B
>>>>
>>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
>>>> P
>>>>
>>>> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
>>>> {color : black;}A.name {color : black;}HR {color :
>>>> #525D76;}--></style>    </head><body><h1>HTTP Status 404 -</h1><HR
>>>> size="1" noshade="noshade"><p><b>type</b>    Status
>>>> report</p><p><b>message</b>    <u></u></p><p><b>description</b>
>>>>  <u>The
>>>> requested resource () is not available.</u></p><HR size="1"
>>>> noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>
>>>
>>> Ouch, you detected another inconsistency...
>>> You need to specify your policy name in the header, like so:
>>>
>>>  curl -i -X GET -H
>>>
>>> "subjectid:AQIC5wM2LY4SfcyH9ELyynby356aOvAkimDZeEz2wzWTSX4=@AAJTSQACMDE=#"
>>> -H "id: allow_ambit_dataset_access_for_maxtox"
>>> http://opensso.in-silico.ch/Pol/opensso-pol/
>>>
>>> Please have a look at the API:
>>> http://opentox.org/dev/apis/api-1.2/AA
>>>
>>> Regards Andreas
>>>
>>
>>
>>
>
> --
> http://www.maunz.de
>
>            According to my calculations the problem doesn't exist.
>



-- 
Surajit Ray
Partner
www.rareindianart.com



More information about the Development mailing list