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

GenericInterface: PATCH and PUT requests fail #1657

Closed
reneeb opened this issue Mar 10, 2022 · 3 comments
Closed

GenericInterface: PATCH and PUT requests fail #1657

reneeb opened this issue Mar 10, 2022 · 3 comments
Assignees
Labels
bug Something isn't working as intended
Milestone

Comments

@reneeb
Copy link
Contributor

reneeb commented Mar 10, 2022

The transport class HTTP::REST tries to get the value for the POSTDATA param. But for PATCH and PUT requests that param does not exist. The body is stored in PATCHDATA/PUTDATA.

See PR #1656

@bschmalhofer bschmalhofer added the bug Something isn't working as intended label Mar 10, 2022
@bschmalhofer
Copy link
Contributor

This bug seems to have been introduced in rel-10_1. In rel-10_0 the content was read from STDIN which seems to have worked fine for PUT and PATCH too.

@reneeb : please go ahead and merge the PR

@bschmalhofer
Copy link
Contributor

bschmalhofer commented Mar 11, 2022

TODO:

  • add tests for PATCH and PUT

@bschmalhofer bschmalhofer reopened this Mar 11, 2022
bschmalhofer added a commit that referenced this issue Mar 11, 2022
in addition to GET and POST
bschmalhofer added a commit that referenced this issue Mar 11, 2022
@bschmalhofer
Copy link
Contributor

Tests were added. Closing this issue again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

3 participants