I had been trying to use curl, wget, and just a simple HTML form. When I used the Java client, it worked fine. Sorry for the trouble.
Thanks, David -----Original Message----- From: Benjamin Armintor [mailto:armin...@gmail.com] Sent: Thursday, August 30, 2012 1:32 PM To: Support and info exchange list for Fedora users. Subject: Re: [fcrepo-user] Does addRelationship REST API method work in Fedora 3.5? I just tried a test with a ruby client, and it worked. Are you absolutely sure you're POSTing the values you intend? On Thu, Aug 30, 2012 at 1:12 PM, David Chandek-Stark <david.chandek.st...@duke.edu> wrote: > That case only tests adding a literal value, not a URI as the object of the > relationship. In any case, I tried POSTing the params in the integration > test to my server (/fedora/objects/dcs:1/relationships/new) and got the same > errors as reported. > > Thanks, > David > > -----Original Message----- > From: Benjamin Armintor [mailto:armin...@gmail.com] > Sent: Thursday, August 30, 2012 12:23 PM > To: Support and info exchange list for Fedora users. > Subject: Re: [fcrepo-user] Does addRelationship REST API method work in > Fedora 3.5? > > There's this integration test that suggests it works: > https://github.com/fcrepo/fcrepo/blob/master/fcrepo-integrationtest/fc > repo-integrationtest-core/src/main/java/org/fcrepo/test/api/TestRESTAP > I.java#L1417 > > Can you post the uri and method of your rest request? > > On Thu, Aug 30, 2012 at 12:06 PM, David Chandek-Stark > <david.chandek.st...@duke.edu> wrote: >> And if it does work, does it work for both RELS-EXT and RELS-INT? Is >> the documentation accurate? AFAICT I am following it correctly. >> >> >> >> Everything I try results in 500 server error, with this kind of entry >> in Fedora log: >> >> >> >> INFO 2012-08-30 12:00:55.211 [TP-Processor3] (DefaultManagement) >> Completed >> addRelationship(pid: dcs:1, relationship: null, object: null, isLiteral: >> false, datatype: null) >> >> >> >> And this stack trace: >> >> >> >> java.lang.NullPointerException >> >> java.net.URI$Parser.parse(URI.java:3003) >> >> java.net.URI.<init>(URI.java:578) >> >> >> org.fcrepo.server.storage.SimpleDOWriter.createTriple(SimpleDOWriter. >> j >> ava:489) >> >> >> org.fcrepo.server.storage.SimpleDOWriter.addRelationship(SimpleDOWrit >> e >> r.java:277) >> >> >> org.fcrepo.server.storage.SimpleDOWriter.addRelationship(SimpleDOWrit >> e >> r.java:262) >> >> >> org.fcrepo.server.management.DefaultManagement.addRelationship(Defaul >> t >> Management.java:1704) >> >> sun.reflect.GeneratedMethodAccessor1006.invoke(Unknown >> Source) >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> s >> orImpl.java:25) >> >> java.lang.reflect.Method.invoke(Method.java:597) >> >> >> org.fcrepo.server.messaging.NotificationInvocationHandler.invoke(Noti >> f >> icationInvocationHandler.java:68) >> >> $Proxy6.addRelationship(Unknown Source) >> >> >> org.fcrepo.server.management.ManagementModule.addRelationship(Managem >> e >> ntModule.java:252) >> >> >> org.fcrepo.server.rest.RelationshipResource.addRelationship(Relations >> h >> ipResource.java:135) >> >> sun.reflect.GeneratedMethodAccessor1005.invoke(Unknown >> Source) >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> s >> orImpl.java:25) >> >> java.lang.reflect.Method.invoke(Method.java:597) >> >> >> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth >> o >> dDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethod >> D >> ispatchProvider.java:175) >> >> >> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDi >> s >> patcher.dispatch(ResourceJavaMethodDispatcher.java:67) >> >> >> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethod >> R >> ule.java:163) >> >> >> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa >> n >> dPathRule.java:111) >> >> >> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resourc >> e >> ClassRule.java:71) >> >> >> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa >> n >> dPathRule.java:111) >> >> >> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(R >> o >> otResourceClassesRule.java:63) >> >> >> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ >> e >> st(WebApplicationImpl.java:689) >> >> >> com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque >> s >> t(WebApplicationImpl.java:647) >> >> >> com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque >> s >> t(WebApplicationImpl.java:638) >> >> >> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponen >> t >> .java:309) >> >> >> com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet >> C >> ontainer.java:425) >> >> >> com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet >> C >> ontainer.java:590) >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> >> org.fcrepo.server.security.servletfilters.FilterRestApiFlash.doFilter >> ( >> FilterRestApiFlash.java:79) >> >> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain. >> d >> oFilter(FilterChainProxy.java:368) >> >> >> org.fcrepo.server.security.jaas.AuthFilterJAAS.doFilter(AuthFilterJAA >> S >> .java:330) >> >> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain. >> d >> oFilter(FilterChainProxy.java:380) >> >> >> org.springframework.security.web.access.channel.ChannelProcessingFilt >> e >> r.doFilter(ChannelProcessingFilter.java:109) >> >> >> org.springframework.security.web.FilterChainProxy$VirtualFilterChain. >> d >> oFilter(FilterChainProxy.java:380) >> >> >> org.springframework.security.web.FilterChainProxy.doFilter(FilterChai >> n >> Proxy.java:169) >> >> >> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(D >> e >> legatingFilterProxy.java:237) >> >> >> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegat >> i >> ngFilterProxy.java:167) >> >> >> >> >> >> ---------------------------------------- >> >> David Chandek-Stark >> >> IT Analyst, Sr. - Perkins Library ITS, Discovery and Core Services >> >> Tel. 919-660-5859 >> >> IM: d...@jabber.duke.edu >> >> >> >> >> --------------------------------------------------------------------- >> - >> -------- >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions will include endpoint security, mobile security and the >> latest in malware threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Fedora-commons-users mailing list >> Fedora-commons-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users >> > > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > ---------------------------------------------------------------------- > -------- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions will include endpoint security, mobile security and the > latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users