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

Fix jobdir PUT #283

Merged
merged 2 commits into from
Aug 28, 2019
Merged

Fix jobdir PUT #283

merged 2 commits into from
Aug 28, 2019

Conversation

ato
Copy link
Collaborator

@ato ato commented Aug 28, 2019

The first patch fixes regression #282 where PUT and DELETE on jobdir files return 405 Method Not Allowed.

With the first patch applied PUT still doesn't behave correctly though as Restlet unhelpfully changes the file extension cxml to xml. This behaviour affected Restlet 1 for other file types as described in HER-1907 however was mitigated for .cxml by registering it as the application/xml content-type. Under Restlet 2 the extension resolution appears to have changed so that always .xml gets picked.

The second patch overrides PUT to disable the file extension manipulation entirely.

This was a regression introduced in the upgrade to Restlet 2. I
encountered a NullPointerException here when upgrading and misunderstood
the cause of it. Since PUT and DELETE return no content they are
actually supposed to return null.
@ato ato requested a review from nlevitt August 28, 2019 04:01
Copy link
Contributor

@nlevitt nlevitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@nlevitt nlevitt merged commit feea47b into master Aug 28, 2019
@nlevitt
Copy link
Contributor

nlevitt commented Aug 28, 2019

Yes! Thank you!

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.

None yet

2 participants