gvlproject / genomespace

Test suite & Issues for GenomeSpace Australia
0 stars 1 forks source link

Deleting a swift directory using CDK is causing a 404 error #58

Closed madisonkeene closed 7 years ago

madisonkeene commented 8 years ago

@DELETE request to datamanager

madisonkeene commented 7 years ago

this is most likely a server-side issue.

madisonkeene commented 7 years ago

dmClient.delete(dmClient.getMetadata(containerPath+dirToMake));

ykowsar commented 7 years ago

Ok Deleting a directory has not been built at all for CDK. Inside the GUI there is a whole new mechanism that delete a directory through a post request on fileop which we need to build from the scratch for the CDK :)

ykowsar commented 7 years ago

in cdk->DataMangerClientImpl replace line 1125 to: //this.builder(FILES_SEGMENT, gsRemoteFilePath).delete(String.class); Form form = new Form(); form.param("target", gsRemoteFilePath); form.param("recursive", "true"); Response r =this.builder("fileops/delete").post(Entity.entity(form,MediaType.APPLICATION_FORM_URLENCODED_TYPE));