cytomine / Cytomine-java-client

Cytomine Java client
Apache License 2.0
12 stars 14 forks source link

Wrong UploadedFile URL when deleting after a fetchByAbstractImage #18

Open geektortoise opened 4 years ago

geektortoise commented 4 years ago

The following code

    UploadedFile uf = UploadedFile.getByAbstractImage(idAbstractImage)
    uf.delete()

doesn't work because the model still have the filter "image" and doesn't return the standard URL https://github.com/cytomine/Cytomine-java-client/blob/master/src/main/java/be/cytomine/client/models/UploadedFile.java#L176

Solution : in the UploadedFile.java Remove the image filter at the end of the getByAbstractImage method or add condition in the getJSONResourceURL method to apply the filter only for the fetch case.

Umang228 commented 3 years ago

Assign this to me. I know how to solve it.

Umang228 commented 3 years ago

I have solved the issue plz merge the PR#22