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(DefaultAccess.java:1049) > at > org.fcrepo.server.access.DefaultAccess.getDissemination(DefaultAccess.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(GetDissemination.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
GetDissemination.java
Description: Binary data
------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users