Skip to content
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

merge 2023.06.x into main #2069

Merged
merged 11 commits into from
Feb 21, 2024
Merged

merge 2023.06.x into main #2069

merged 11 commits into from
Feb 21, 2024

Conversation

kkrebs
Copy link
Contributor

@kkrebs kkrebs commented Feb 20, 2024

No description provided.

Mewel and others added 10 commits February 2, 2024 12:25
* MCR-3037 Added getUsableSpace() to MCRXMLFunctions

* MCR-3037 Use getStringOrThrow() rather that get() on MCRConfiguration2
* MCR-3039 fix upload size detection and fix error messages

* MCR-3039 extract new translation keys to constant

* MCR-3039 fix file upload validation

* use ready check and status instead of onerror to check for errors
* move error messages to the file upload window instead of alert()
* use FileSystemFileEntry.file() to detect file size (should now work in firefox)
* make error message corners rounded

* MCR-3039 Improved types and added log for special case fileEntry == null

* MCR-3039 fix drag and drop events which contains strings which lead to npe

* MCR-3039 allow multiselect(already intended by code) and optimized validation message display
* Missing XSL3 version of IViewConfig-js.xsl

* mcr-module-startIview2.xsl is missing in components-3 include

* wrong include in response.xsl (<xsl:include href="resource:xslt/MyCoReLayout.xsl" />)
* isolated the http-client in use by MCRRESTResolver and allow to config-override the used class, consult the added MCRHTTPClient interface to see the simple abstraction

* applied eclipse autoformat with active mycore preferences

* cleaned everything for checkstyle, removed unused variable relict

* restructured the MCRHTTPClient classes

* http client config name in static var

* MCRHTTPClient properties populated in config via annotations

* MCR.URIResolver -> MCR.HTTPClient : added 3 properties as deprecated

* MCRDefaultHTTPClient refactored get method for less "dangerous" return

* MCRDefaultHTTPClient minor issue and license added

* just removed comments

* license in MCRHTTPClient interface

---------

Co-authored-by: vsc <[email protected]>
* Bad Request for invalid MCRObjectID

e.g. api/v2/objects/xx

* fix MCRObject not found

catch IOException that is thrown if MCRObject does not exist

* provide X-Error-* header for MCRErrorResponse

allows to submit some details of the error also via HTTP header

* validate derivate relation for derivate content access

re-uses MCRRestDerivates.validateDerivateRelation(mcrId, derid)

* fixed CORS-preflight request detection

OPTIONS is not enough also Access-Control-Request-Method header is required

* use MCRErrorResponse when invalid MCRObjectID
* expose all X- header for CORS requests

* only add WWW-Authenticate header when unauthorized
* MCR-3046 allow id generation independent from actual storage

* MCR-3046 removed junit5 code

* MCR-3046 some improvements

* store ids as strings to make debugging easier
* add a docs to setNextFreeId
* add missing copyrights

* MCR-3046 add javadoc

* reverted unwanted change
* 2022.06.x:
  MCR-3011 fix duplicate dateModified
  MCR-3035 fix empty p tags in wcms
  MCR-3038 MCRMETSDefaultGenerator.structureMets generates double logical ids
@sebhofmann sebhofmann merged commit 9623571 into main Feb 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants