* fix(api): redact header cookie
This is a quick PoC for a fix. I am not sure if it's the best answer and have not added tests yet. If we feel good about it, I can add tests and open a PR. Please let me know how you'd like to proceed!
* cleaner
* rework to handle multiple inputs and add unit tests
* Added same redacting logic for teh response set-cookie
---------
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
* Fix deleting data on reupload
* only update folder when necessary
* run linter
* fix replacing filename_download and title
* run linter
* fix if statement
* clean up code
* Remove unused import of 'File'
* cleanup code
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
* Validate Operation Result is Serializable
* Enumerate Flow Error Object so it gets logged
* Add ability for error to be a JSON string and parse it
* Make the request operation throw useful error
* Revert DockerCompose in "Validate Operation Result is Serializable"
This partially reverts commit c7e76716a5.
* Fix Typescript Errors
* Move isValidJSON to Shared Util and add Tests
* return the error message excluding stack trace
* allow for non-exception errors
* Apply suggestions from code review
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
* Clean-up after wrong suggestion
* Clean-up processing of error data
* Use content-type json if body is object
* Reformat error data check
---------
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Brainslug <tim@brainslug.nl>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
* Write full item to revisions
* Get revision data/delta in single call
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* updated value to be required
* applied to other interfaces
* Made dropdown labels required too
* added required fields for other interfaces
* added required fields for field/collection translations
* Throw validation error after authorization
* Improve tests
* Refactor for deleteMany
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
* Refactor other usages in users service that errors before ForbiddenException
* Update tests
* Adjust test for 'deleteByQuery'
---------
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Add `getMilliseconds` util for safer value interpretation
* Test more data types
* Remove remnant
* Customizable fallback with default of undefined
* Clean-up
* Transform getMilliseconds to named export
---------
Co-authored-by: ian <licitdev@gmail.com>
* EXTENSIONS_CACHE_TTL: Add to allow list & decouple from other cache envs
* Remove unnecessary import
* Broaden getCacheControlHeader function, use it for assets & extensions
* Add unit tests
* Apply suggestions from code review
Consistent lowercase "cache-control" in test description
---------
Co-authored-by: ian <licitdev@gmail.com>