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)
|
@pdurbin : adding an API for to add descriptions/tags to existing files is low-hanging fruit but am avoiding scope creep for now. (literally thought through the code line by line but wrote nothing and have now blanked it out:) |
|
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
pdurbin
left a comment
There was a problem hiding this comment.
I'm wondering if it's possible to stick to the Java EE Standard (JAX-RS).
| 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.
@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