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 invalide use of encode on bytes object #651

Merged
merged 2 commits into from
Apr 11, 2022

Conversation

gschwind
Copy link
Collaborator

Within the pywps.inout.inputs.ComplexInput the json convertion function
use encode where decode should be used. The patch fix this issue.

same as #647 but main branch as base

Overview

Related Issue / Discussion

Additional Information

Contribution Agreement

(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to PyWPS. I confirm that my contributions to PyWPS will be compatible with the PyWPS license guidelines at the time of contribution.
  • I have already previously agreed to the PyWPS Contributions and Licensing Guidelines

@coveralls
Copy link

coveralls commented Mar 24, 2022

Coverage Status

Coverage increased (+0.03%) to 81.253% when pulling 42b7508 on gschwind:main-fix-request-storage into c8d1fe1 on geopython:main.

@cehbrecht cehbrecht self-requested a review March 29, 2022 09:52
@cehbrecht
Copy link
Collaborator

@gschwind Tests are all passing. Would you like to add a test to prove it is doing the right thing?

1 similar comment
@cehbrecht
Copy link
Collaborator

@gschwind Tests are all passing. Would you like to add a test to prove it is doing the right thing?

@gschwind
Copy link
Collaborator Author

I will have a look to add test, best regards

@gschwind gschwind force-pushed the main-fix-request-storage branch from b5d9dc3 to ff8d3cc Compare March 30, 2022 10:19
@gschwind
Copy link
Collaborator Author

I did a test but I'm not satisfied because the serialization-deserialition is not symmetric :)

and the test is not symmetric too.

gschwind added 2 commits April 9, 2022 00:12
Add test that check if binary data are correctly serialized to json in
ComplexInput. The case append when json input are base64 encoded in the
XML request.
Within the pywps.inout.inputs.ComplexInput the json convertion function
use encode where decode should be used. The patch fix this issue.
@gschwind gschwind force-pushed the main-fix-request-storage branch from ff8d3cc to 42b7508 Compare April 8, 2022 22:12
@gschwind
Copy link
Collaborator Author

gschwind commented Apr 8, 2022

I updated the test to only test the decoding, it should be fine now

@cehbrecht cehbrecht merged commit 61a8f0c into geopython:main Apr 11, 2022
@gschwind gschwind deleted the main-fix-request-storage branch April 13, 2022 19:51
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.

3 participants