Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

fix: backward compatibility with IMS v1.x & v2.x for upload endpoint#46

Merged
geektortoise merged 2 commits intocytomine:masterfrom
Cytomine-ULiege:fix-upload-endpoint
May 11, 2022
Merged

fix: backward compatibility with IMS v1.x & v2.x for upload endpoint#46
geektortoise merged 2 commits intocytomine:masterfrom
Cytomine-ULiege:fix-upload-endpoint

Conversation

@urubens
Copy link
Contributor

@urubens urubens commented May 5, 2022

This PR ensures the compatibility with IMS upload endpoint (see e.g https://github.com/cytomine/Cytomine-IMS/blob/6ddab936d12e67ea7e9da4a1ca7de6a0e42bcb9a/grails-app/controllers/be/cytomine/storage/StorageController.groovy#L124) whatever the version (v1.x & v2.x) and the edition (Community & ULiege). It also ensure it is working with PIMS.

In the response parsing, attribute presence or not is checked to avoid KeyError.

@geektortoise geektortoise self-requested a review May 5, 2022 14:40
@geektortoise geektortoise merged commit c4aca9f into cytomine:master May 11, 2022
@urubens urubens deleted the fix-upload-endpoint branch June 7, 2022 12:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants