Thanks Damian and Steve. This is now fixed in master. On 31 May 2011, at 6:49 PM, Stephen Bayliss wrote:
> Hi Damian > > I've raised https://jira.duraspace.org/browse/FCREPO-949 for this. > > Thanks for the patch. > > Regards > Steve > >> -----Original Message----- >> From: Damian Kaliszan [mailto:dam...@man.poznan.pl] >> Sent: 25 May 2011 14:29 >> To: Support and info exchange list for Fedora users. >> Subject: [fcrepo-user] Mediashelf FedoraClient >> GetDissemination methodParamerror fixed - file class attached >> >> >> Dear All, >> >> Please find attached the revised version of the >> GetDissemination.java file. >> >> regards, >> Damian >> >>> Hi Steve, All, >> >>> There's a bug in the line 62 of >>> >> https://github.com/mediashelf/fedora-client/blob/master/src/main/java/ >>> com/yourmediashelf/fedora/client/request/GetDissemination.java >>> As Steve noticed there should be: key instead of "key".... >> >> >>> In my example I tried to add 2 params to the obj >> method. After >>> execution I got the error: >> >>> GetDissemination getDissemination = new GetDissemination(objPid, >>> sDefPid, "list"); getDissemination.methodParam("param1", >> param1value); >>> getDissemination.methodParam("param2", param2value); FedoraResponse >>> response = getDissemination.execute(fedora); >> >> >> >>> Caused by: org.fcrepo.server.errors.InvalidUserParmException: >>> [Invalid User Parameter] The method parameter "key" is not >> valid for the method "list". >>> at >>> >> org.fcrepo.server.access.DefaultAccess.validateUserParms(Defau >> ltAccess.java:1049) >>> at >>> >> org.fcrepo.server.access.DefaultAccess.getDissemination(Defaul > tAccess.java:415) >>> at >>> >> org.fcrepo.server.rest.MethodResource.invokeSDefMethodUsingGET >> (MethodResource.java:95) >>> ... 36 more >> >>> at >>> >> com.yourmediashelf.fedora.client.response.FedoraResponseImpl.< >> init>(FedoraResponseImpl.java:56) >>> at >>> >> com.yourmediashelf.fedora.client.request.GetDissemination.execute(GetD >>> issemination.java:72) >> >> >> >>> When I execute the "list" method with params from the web browser >>> everything works ok... >> >>> Can someone from mediashelf logged in users fix the >> problem in the >>> repository? >> >>> Regards and thanks a lot:), >> >>> Damian >> > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users