Skip to content

fix(gitlab): encode outbound project paths once - #4356

Merged
jujn merged 1 commit into
agentscope-ai:mainfrom
CryoThrust:fix/gitlab-note-project-encoding
Nov 24, 2026
Merged

jujn merged 1 commit into
agentscope-ai:mainfrom
CryoThrust:fix/gitlab-note-project-encoding

Conversation

@CryoThrust

Copy link
Copy Markdown
Contributor

Summary

Fixes #4354.

Let WebClient encode the original GitLab project path once. The previous code applied URLEncoder first, so team/project reached the server as team%252Fproject instead of team%2Fproject. No public API or outbound-address format changes.

Add loopback HTTP tests for issue notes, nested-group merge-request notes and hyphenated project names, including ordered delivery of two messages and a blank-message control. The tests assert the actual raw request path, authentication header and JSON body. Add matching EN/ZH guidance to pass original project paths.

Verification

  • Before the fix: the three path cases fail on %252F; the blank-message control passes.
  • After the fix: all four cases pass on JDK 17.
  • mvn -T1C -pl agentscope-extensions/agentscope-extensions-channel/agentscope-extensions-channel-gitlab -am clean verify passes all nine reactor modules, including Core, AG-UI, Harness, Channel Common and GitLab.
  • Docs: npm test (20 cases), npm run validate and npm run broken-links pass using Node 22.
  • git diff --check passes.

This exercises the real HTTP client against a local server; no live GitLab instance or credentials were used. The full repository reactor and hosted CI are not claimed by the scoped build above.

@mintlify

mintlify Bot commented Nov 24, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit a257f72.

Approve preview

@jujn
jujn merged commit 5f1a30b into agentscope-ai:main Nov 24, 2026
7 checks passed
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.

GitLab outbound notes double-encode project paths

2 participants