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(rest connector): add skip decoding field for rest outbound connector #3840

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ztefanie
Copy link

@ztefanie ztefanie commented Jan 10, 2025

Description

  • Added a skipEnding field to HttpCommonRequest
  • Adjusted gitlab connector json to always set skipEncoding to true
  • All github connectors now skip encoding
  • in XML skip encoding can be set for rest connectors, defaults to false if not set

Info

Questions

  • should I add tests for the UrlEncoder?
  • is it possible to add a test for the gitlab connector?

Related issues

closes #3694

Checklist

  • PR has a milestone or the no milestone label. (not sure which milestone i should set it too 🤔 )

@ztefanie ztefanie requested a review from a team as a code owner January 10, 2025 10:43
@CLAassistant
Copy link

CLAassistant commented Jan 10, 2025

CLA assistant check
All committers have signed the CLA.

@ztefanie ztefanie requested a review from johnBgood January 10, 2025 10:44
@ztefanie ztefanie changed the title fix: add skip decoding field for rest outbound connector fix(rest connector): add skip decoding field for rest outbound connector Jan 10, 2025
@ztefanie ztefanie force-pushed the 3694-add-skip-decoding-field-for-rest-outbound-connector branch from cf8fa7e to 9d46417 Compare January 10, 2025 11:05
@ztefanie ztefanie added this to the 8.7.0-alpha4 milestone Jan 10, 2025
Copy link
Collaborator

@johnBgood johnBgood left a comment

Choose a reason for hiding this comment

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

Great first one! Left a few comments 💯

@@ -407,6 +407,16 @@
"type" : "zeebe:input"
},
"type" : "Boolean"
}, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

just to be sure: did you run the maven command or did you add these lines manually?

Copy link
Author

Choose a reason for hiding this comment

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

This is added by the maven command. The changes in the gitlab connector json are done manually.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe should we update the version in HttpJsonFunction ?

Copy link
Author

Choose a reason for hiding this comment

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

I updated the version and ran maven generate templates command, but now the changes to the ".json" files are removed? Is it correct to run the command in the http/rest/ subfolder? I am confused, why they were added first and now they are removed 🤔

Copy link
Contributor

@sbuettner sbuettner left a comment

Choose a reason for hiding this comment

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

Congrats to your first PR! Great work! 🚀

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.

REST Connector automatic URL decoding removes already encoded elements
4 participants