[OTDev] A&A clarifications

Druzhilovsky dmitry.druzhilovsky at ibmc.msk.ru
Wed Mar 9 15:29:10 CET 2011


Dear Surajit,

Hmm, try to change the extention of file...from .pol to xml. I guess it can
resolve the problem. See below

C:\curl>curl -i -H "Content-Type: application/xml" -T maxtox.xml -X POST
http://
opensso.in-silico.ch/Pol/opensso-pol -H
subjectid:AQIC5wM2LY4SfcxzV1Iccj/JnoWbB6
u8KYiuxgJt6QEFVH4=@AAJTSQACMDE=#
HTTP/1.1 400 Bad Request
Server: nginx/0.6.32
Date: Wed, 09 Mar 2011 13:59:17 GMT
Content-Type: text/plain
Connection: keep-alive
Content-Length: 111

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

If you delete previous policy you can upload new policy.

I guess policy line "Policy name" has to look like

<Policy name="allow_ambit_dataset_access_for_maxtox"
createdby="id=surajitray,ou=user,dc=opensso,dc=java,dc=net"
referralPolicy="false" active="true">
 But it only my way.

Best regards

Dmitry S. Druzhilovsky


> -----Original Message-----
> From: development-bounces at opentox.org [mailto:development-
> bounces at opentox.org] On Behalf Of surajit ray
> Sent: Wednesday, March 09, 2011 4:40 PM
> To: andreas at maunz.de
> Cc: opentox development mailing list
> Subject: Re: [OTDev] A&A clarifications
> 
> 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_acces
> >> s_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:#52
> >> 5D76;font-size:22px;}
> >> H2
> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-
> color:#52
> >> 5D76;font-size:16px;}
> >> H3
> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-
> color:#52
> >> 5D76;font-size:14px;}
> >> BODY
> >> {font-family:Tahoma,Arial,sans-serif;color:black;background-
> color:whi
> >> te;}
> >> B
> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-
> color:#52
> >> 5D76;}
> >> P
> >> {font-family:Tahoma,Arial,sans-
> serif;background:white;color:black;fon
> >> t-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
> >
> 
> 
> 
> --
> Surajit Ray
> Partner
> www.rareindianart.com




More information about the Development mailing list