-
Notifications
You must be signed in to change notification settings - Fork 490
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
#1612 - Add or Replace File via API #3415
Conversation
…ual method. Added direct method for checking a single file--that's for #2290
…heck that the state of the Dataset is correct, etc
…ReplaceFileHelper.java
…n -- e.g. why is it not going through DataFileServiceBean.save
…ecently published Dataset--e.g. was deleted. #2290
… for tests (to fake actual api upload)
fyi: found a bug with ADD. REPLACE is retricted to a single file--even if a single '.zip' is "unzipped into multiple files. Fix:
|
…ve status http error codes to add/replace api calls
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.
I'm wondering if it's possible to stick to the Java EE Standard (JAX-RS).
@@ -1,8 +1,18 @@ | |||
package edu.harvard.iq.dataverse.api; | |||
|
|||
import javax.ws.rs.ApplicationPath; | |||
import javax.ws.rs.core.Application; | |||
import org.glassfish.jersey.media.multipart.MultiPartFeature; | |||
import org.glassfish.jersey.server.ResourceConfig; |
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.
@scolapasta are we consciously switching from a JAVA EE standard (JAX-RS) to an specific implementation (Jersey)?
Post code review checklist
Include in this ticket?
Important Prov. note related #3238
|
…sting categories, remove it from this class. rename to
…dataset object--pass directly to AddReplaceHelper instead of the id
…e_dataset_command and step_080_run_update_dataset_command_for_replace
…command. Adjusted test as necessary
…s and categories. also hits #3067
… use native JSON. GSON results removed
This is frozen. Dev has switched to https://github.com/IQSS/dataverse/tree/2290-file-replace |
RFI Checklist
Before submitting the pull request, fill out sections (1.) Related Issues and (2.) Pull Request Checklist.
1. Related Issues
#1612 Allow file uploads for non-zip files through the API
2. Pull Request Checklist
3. Review Checklist
After the pull request has been submitted, fill out this section.
Connects to #1612