HI Steve,

I tried even the simplest URL:
http://myserver:port/fedora/objects/nextPID?namespace=demo

The HTTP error code (405) and error from the log (both catalina &  
server/fedora.log) do not change.
So it doesn't matter if in the query I add format or numPIDs. Error  
remains the same...
Other URLs from REST API seem to work fine. Only nextPID fails....

Best,
Damian

Quoting Steve Bayliss <stephen.bayl...@acuityunlimited.net>:

> Thanks Damian, and best wishes to you for the holiday season.
>
> Is there any chance that the & character following the namespace
> parameter is somehow being incorrectly escaped when you execute the
> call?  Maybe you are escaping the whole query string rather than just
> the parameter values?
>
> It's as if it is using the format parameter and value as part of the
> namespace.
>
> What happens if you omit the format parameter?
>
> Steve
>
>
> Quoting Damian Kaliszan  
> begin_of_the_skype_highlighting     end_of_the_skype_highlighting  
> <dam...@man.poznan.pl>:
>
>> Hi Steve,
>>
>>
>> Sorry  I made a mistake in the URL ('=' instead of ':') but it doesn't
>> change anything...
>>
>> Anyway the correct URL throws the exception stated below....:(
>>
>> "PID namespace-id cannot contain '=' character."
>>
>> I don't really know what I'm doing wrong...
>>
>> I use the documentation from :
>>
>> https://wiki.duraspace.org/display/FCR30/REST+API#RESTAPI-getNextPID
>>
>>
>> I'd like to wush you and all the list users Merry Christmas and a Happy
>> New Year 2011!:)
>>
>> Best reagrds,
>> Damian
>>
>>
>>
>> W Twoim liście datowanym 24 grudnia 2010 (11:18:11) można przeczytać:
>>
>>> Hi Damian
>>
>>> You should be using namespace=myns - not :
>>
>>> ie
>>> http://server:port/fedora/objects/nextPID?numPIDs=1&namespace=myns&format=xml
>>
>>> Regards
>>> Steve
>>
>>
>>
>>> Quoting Damian Kaliszan <dam...@man.poznan.pl>:
>>
>>>> Dear All,
>>>>
>>>> I've got FC 3.41 installed and try to execute nextPid method for given
>>>> ns.
>>>>
>>>> http://server:port/fedora/objects/nextPID?numPIDs=1&namespace:myns&format=xml
>>>>
>>>> I unexpectedly get the exception, which starts with:
>>>>
>>>> ERROR 2010-12-24 10:17:26.106 [http-8188-7] (FedoraObjectResource)
>>>> Unexpected error fulfilling REST API request
>>>> fedora.server.errors.MalformedPidException: PID namespace-id cannot
>>>> contain '=' character.
>>>>         at fedora.server.Server.getPID(Server.java:1363)
>>>>
>>>>
>>>> Do you know what might be wrong?
>>>>
>>>> Best regards,
>>>> Damian
>>>>
>>
>>
>>

----------------------------------------------------------------
This message was sent using PSNC Webmail system.


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to