-
Notifications
You must be signed in to change notification settings - Fork 4
Bug/cite 229 - Checking access of an upload in progress should be possible with the upload id. #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
this.documentIds = documentIds; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still
.../src/main/java/edu/asu/diging/citesphere/core/service/giles/impl/GilesUploadCheckerImpl.java
Outdated
Show resolved
Hide resolved
.../src/main/java/edu/asu/diging/citesphere/core/service/giles/impl/GilesUploadCheckerImpl.java
Outdated
Show resolved
Hide resolved
continue; | ||
ObjectMapper mapper = new ObjectMapper(); | ||
String jsonBody = response.getBody(); | ||
GilesCheckUploadResponse processed = new GilesCheckUploadResponse(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does not need to be initialized here does it? it either is set in line 147 or processed will never be used?
@@ -153,6 +168,7 @@ public void checkUploads() { | |||
logger.error("Could not deserialize response.", e); | |||
upload.setDocumentStatus(GilesStatus.FAILED); | |||
checkedUploads.add(upload); | |||
continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this is added here, then processed does not need to be initialized in line 164, does it?
this.documentIds = documentIds; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still
Guidelines for Pull Requests
If you haven't yet read our code review guidelines, please do so, You can find them here.
Please confirm the following by adding an x for each item (turn
[ ]
into[x]
).Please provide a brief description of your ticket
Checking access of an upload in progress should be possible with the upload id.
... Put ticket description here and add link to ticket ...
Right now, you need the documentId of a finished uploaded document or a progress id to check if a user has access to a giles upload. Citesphere, when checking the progress of an upload, needs to store the upload id (after the initial submission, there is just a progress id). And then in the CheckAccessController, it needs to also be possible to send the Upload Id.
(this is for the API endpoint)
https://diging.atlassian.net/browse/CITE-229
Are there any other pull requests that this one depends on?
diging/citesphere-model#56
Anything else the reviewer needs to know?
... describe here ...