Set the correct media type for login response and parse the Accept header #801
Set the correct media type for login response and parse the Accept header #801marmoure wants to merge 1 commit into
Conversation
19914a1 to
bae133a
Compare
duncdrum
left a comment
There was a problem hiding this comment.
Thanks for the PR @marmoure. The Xqdoc is not well-formed.
We don't normally link elemental issues. Feel free to keep it in alongside an exist issue. But both should be properly formatted.
Please add a test. Did you test this against exist? Which version?
bae133a to
9fe078a
Compare
|
Thanks for the @duncdrum I fixed the xqdoc issue, this was tested on eXist-db 6.4.1. |
|
@marmoure could you add a test for the request to the testsuite, so we see how this plays in against different backends. |
|
@duncdrum I believe that @marmoure has mentioned in the past that the eXide test suite is flaky, but it doesn't look like that has been addressed since then. Therefore we don't have much confidence in the eXide test suite. We sent this code as a courtesy on behalf of one of your users of eXide. I am very reluctant to have @marmoure invest more time in this, because (a) we already have a fix for Elemental, and (b) previous attempts where we invested significant time into improving the eXist-db Apps in collaboration with you did not go well (i.e. eXist-db/monex#298). Can you provide any sort of assurance that if we invest further time and that if @marmoure provides a test for this, then you will merge it? Thanks. |
|
@adamretter our review policy hasn't changed. You can see #799 for reference. Comparing this here to the full rewrite of monex is comparing apples to oranges. What I can assure you is that I won't merge without a test. If you wish to invest more time into this version of eXide in light of #794 is up to you. |
This PR adds parsing for
Acceptheader and introduceslocal:accept-jsonandlocal:preferred-media-type, it build on top of #800 to fix #253.These functions allow more robust and future proof way for getting the appropriate header either the preferred one or a specific one.
Also when trying to set the correct headers for the login response using
I encountered a bug in the
RESTServerinwriteResultJSONwhich ignored theoutput:medita-typeoption, I added evolvedbinary/elemental#212 for elemental and the same should be done for eXist-db.In the mean time
is being used as workaround until this bug is resolved.