diff --git a/README.md b/README.md index 83e60d8..c606bdc 100644 --- a/README.md +++ b/README.md @@ -79,4 +79,6 @@ So those need to be updated on your installation. The compute checksum allows a A Docker deploy option was added. This involves a Dockerfile added to the project, along with a 'runit.sh' as the endpoint. The Docker image is alpine:tomcat8. The image mounts the /etc/irods-ext/irods-rest.properties from the host system, as well as an optional cert directory that will cause the import of an SSL cert if you are working with self signed certs. See the Docker.md file for Docker instructions. Please give that a whirl and report results and thoughts. +#### issue posting metada updates #69 +Fixes for metadata update, removing old XML namespace semantics. diff --git a/src/main/java/org/irods/jargon/rest/commands/collection/CollectionService.java b/src/main/java/org/irods/jargon/rest/commands/collection/CollectionService.java index b1cf680..29af9f9 100644 --- a/src/main/java/org/irods/jargon/rest/commands/collection/CollectionService.java +++ b/src/main/java/org/irods/jargon/rest/commands/collection/CollectionService.java @@ -44,8 +44,6 @@ import org.irods.jargon.rest.domain.MetadataQueryResultEntry; import org.irods.jargon.rest.domain.PermissionListing; import org.irods.jargon.rest.utils.DataUtils; -import org.jboss.resteasy.annotations.providers.jaxb.json.Mapped; -import org.jboss.resteasy.annotations.providers.jaxb.json.XmlNsMap; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -86,7 +84,8 @@ public class CollectionService extends AbstractIrodsService { @GET @Path("{path:.*}") @Produces({ "application/json" }) - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public CollectionData getCollectionData(@HeaderParam("Authorization") final String authorization, @PathParam("path") final String path, @QueryParam("offset") @DefaultValue("0") final int offset, @QueryParam("listing") @DefaultValue("false") final boolean isListing, @@ -203,7 +202,8 @@ public CollectionData getCollectionData(@HeaderParam("Authorization") final Stri @PUT @Path("{path:.*}") @Produces({ "application/json" }) - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public CollectionData addCollection(@HeaderParam("Authorization") final String authorization, @PathParam("path") final String path) throws JargonException { @@ -363,7 +363,8 @@ public MetadataListing getCollectionMetadata(@HeaderParam("Authorization") final @Path("{path:.*}/metadata") @Consumes({ "application/json" }) @Produces({ "application/json" }) - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public List deleteCollectionMetadata( @HeaderParam("Authorization") final String authorization, @PathParam("path") final String path, final MetadataOperation metadataOperation) throws JargonException { @@ -446,7 +447,8 @@ public List deleteCollectionMetadata( @Path("{path:.*}/metadata") @Consumes({ "application/json" }) @Produces({ "application/json" }) - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public List addCollectionMetadata( @HeaderParam("Authorization") final String authorization, @PathParam("path") final String path, final MetadataOperation metadataOperation) throws JargonException { @@ -527,7 +529,8 @@ public List addCollectionMetadata( */ @DELETE @Path("{path:.*}") - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public void removeCollection(@HeaderParam("Authorization") final String authorization, @PathParam("path") final String path, @QueryParam("force") @DefaultValue("false") final boolean force) throws JargonException { @@ -581,7 +584,8 @@ public void removeCollection(@HeaderParam("Authorization") final String authoriz @GET @Path("{path:.*}/acl") @Produces({ "application/json" }) - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public PermissionListing getCollectionAcl(@HeaderParam("Authorization") final String authorization, @PathParam("path") final String path) throws FileNotFoundException, JargonException { @@ -638,7 +642,8 @@ public PermissionListing getCollectionAcl(@HeaderParam("Authorization") final St @PUT @Path("{path:.*}/acl/{userName}") @Produces({ "application/json" }) - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public void addCollectionAcl(@HeaderParam("Authorization") final String authorization, @PathParam("path") final String path, @PathParam("userName") final String userName, @QueryParam("recursive") @DefaultValue("false") final boolean recursive, @@ -722,7 +727,8 @@ public void addCollectionAcl(@HeaderParam("Authorization") final String authoriz @DELETE @Path("{path:.*}/acl/{userName}") @Produces({ "application/json" }) - @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", jsonName = "irods-rest") }) + // @Mapped(namespaceMap = { @XmlNsMap(namespace = "http://irods.org/irods-rest", + // jsonName = "irods-rest") }) public void deleteCollectionAcl(@HeaderParam("Authorization") final String authorization, @PathParam("path") final String path, @PathParam("userName") final String userName, @QueryParam("recursive") @DefaultValue("false") final boolean recursive)