-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Rest-Api throws error when upload a new File #988
Comments
Thanks for your feedback. Can you please check the deegree version? If the version is 3.4.4 or later the issue you are reporting may be caused by the following PR #955. |
I was using Version 3.4.7.
Maybe i am wrong, but i read this code like: I do not get the connection to the Security of the REST interface. Sure it was a PR to secure the Rest-Interface, but the Problem is not caused by a missing Security-configuration |
The changes you are referring to were merged into master with PR #955 to resolve #942 and #943. The changes were done on purpose as pointed out in the deegree documentation. |
@roesgTo We have have discussed your proposal during todays TMC meeting. We will look for a solution asap. Can you post a |
We are using neither Curl nor wget. But this curl may work: |
The file upload of configuration files via the REST-API does not work correctly. The Response is HTTP 200 , but there is also this error message: "Unable to upload file: datasources / feature / test-upload.xml". The file is not written to the workspace (as expected with HTTP 200).
I checked the code. Two tests are carried out:
If one of the two checks fails, the above error message will appear.
Example:
"http://serverurl/config/upload/datasources/feature/test-upload2.xml"
Upload in Default-Workspace(workspace-path exists :true)
File "$Workspace/datasources/feature/test-upload2.xml" was not found (file-path exists: false
However, if this file has been previously created in the workspace, it will be successfully overwritten by the upload process (HTTP 200: "test-upload.xml uploaded")
Solution:
The file-path must be checked without the file.
current Check:
does the file "$Workspace/datasources/feature/test-upload2.xml" exist?
new Check:
does the folder "$Workspace/datasources/feature exist?
In addition, it would be very helpfull, if if another HTTP StatusCode will be returned when this error message appears (HTTP 400,404)
The text was updated successfully, but these errors were encountered: