-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Parameterise the XML-RPC parse method with the Media Type #5068
Conversation
e38288a
to
9641ef2
Compare
9641ef2
to
2a6f7d9
Compare
@reinhapa Thanks for the feature! |
Regarding backport to
The relevant parts are: |
@adamretter could you do review my enhancement adding the mime type again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@ohumbel I think we are just awaiting a backport to 6.x.x? Are backports to 5.x.x and 4.x.x also needed? |
The mime type that is available on the remote resource was not provided when calling the parse() procedure on the backend and has now been added. When calculating the mime type being stored the following order will be used: - mime type as given by the method call - mime type caclulated based on the file name extension - default mime type 'application/octet-stream' is used Co-authored-by: Otmar Humbel <[email protected]> Signed-off-by: Patrick Reinhart <[email protected]>
2a6f7d9
to
23c5a86
Compare
Kudos, SonarCloud Quality Gate passed! |
@adamretter I know for sure that backport to 6.x.x is necessary - I'll try to take care of that as soon as the develop one is merged. For 4.x.x, I know for sure that no backport is necessary. |
Actually it's better to provide the backports before we merge please.... Otherwise they tend to get mixed up or forgotten! |
Description:
Closes #5067.
Reference:
Since XML resources are always and only stored via the
parse()
method, we need to pass the Media Type as a parameter to this method.Type of tests:
A unit test in
exist-core/src/test/java/org/exist/xmlrpc
:MimeTypeTest
I successfully ran the full maven reactor locally.