You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce upload size limit on putResourceFromUrl api (#8562)
* Check content-length of resource at url
* Remove unnecessary throw
* Fallback to InputStream.available() if content length is not found or smaller
* Fallback maxUploadSize for unit tests
* Fix default value always used
* Remove content-length check as it cannot be trusted
* Download file to a temp file to check size
* Add back the content-length check as a preliminary check
* Stream file instead of using temp file
* Rollback for JCloud
* Fix rollback for JCloud
* Fix abstract store and implement jcloud rollback
* Fix typo and remove unused import
* Fix unit tests
* Fix tests (mock response code)
* Fix unit test, refactor, and add docs
* Fix exception handling and use bounded input stream instead of custom input stream
* Improvements
* Add documentation
* Rename exception
* Remove unneeded changes
* Update docs
* Fix comment
Co-authored-by: Ian <[email protected]>
* Update exception handling
* Update jcloud exception handling and comments
* Add file header
* Add comment
* Fix whitespace
---------
Co-authored-by: Ian <[email protected]>
Copy file name to clipboardexpand all lines: core/src/test/resources/org/fao/geonet/api/Messages_fre.properties
+1
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,7 @@ api.exception.unsatisfiedRequestParameter=Param\u00E8tre de demande non satisfai
172
172
api.exception.unsatisfiedRequestParameter.description=Param\u00E8tre de demande non satisfait.
173
173
exception.maxUploadSizeExceeded=La taille maximale du t\u00E9l\u00E9chargement de {0} a \u00E9t\u00E9 exc\u00E9d\u00E9e.
174
174
exception.maxUploadSizeExceeded.description=La demande a \u00E9t\u00E9 refus\u00E9e car sa taille ({0}) exc\u00E8de le maximum configur\u00E9 ({1}).
175
+
exception.maxUploadSizeExceededUnknownSize.description=La demande a \u00E9t\u00E9 refus\u00E9e car sa taille exc\u00E8de le maximum configur\u00E9 ({0}).
String.format("Put(2) blob '%s' with version label '%s'.", key, properties.get(jCloudConfiguration.getExternalResourceManagementVersionPropertyName())));
310
312
311
-
// Upload the Blob in multiple chunks to supports large files.
0 commit comments