Skip to content

WEBUI-157: Fix vocabulary management when the entry key starts with @ [LTS-2023]#3193

Open
AnilKumarVanga wants to merge 5 commits into
maintenance-3.1.xfrom
WEBUI-157-fix-vocabulary-management-when-the-entry-key-starts-with
Open

WEBUI-157: Fix vocabulary management when the entry key starts with @ [LTS-2023]#3193
AnilKumarVanga wants to merge 5 commits into
maintenance-3.1.xfrom
WEBUI-157-fix-vocabulary-management-when-the-entry-key-starts-with

Conversation

@AnilKumarVanga
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings May 26, 2026 05:19
@AnilKumarVanga AnilKumarVanga requested a review from a team as a code owner May 26, 2026 05:19
@AnilKumarVanga AnilKumarVanga requested review from naveen-konda and swarnadipa-dev and removed request for a team May 26, 2026 05:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses WEBUI-157 by ensuring directory/vocabulary entry paths are correctly URL-encoded (notably when an entry id starts with @), preventing failures in vocabulary management CRUD operations.

Changes:

  • Add _encodePathSegment() to safely encode individual directory/id path segments without double-encoding.
  • Route create/update/delete requests through a new _executeDirectoryRequest() helper to avoid path re-encoding issues.
  • Expand unit tests to cover encoding behavior and CRUD path construction (including @-prefixed ids).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/nuxeo-vocabulary-management.test.js Adds tests for path-segment encoding and verifies encoded paths are used for save/delete flows and request execution.
elements/directory/nuxeo-vocabulary-management.js Encodes directory/id segments when building directory entry URLs and introduces a helper to execute requests without re-encoding the already-encoded path.

Comment thread test/nuxeo-vocabulary-management.test.js Outdated
Comment thread elements/directory/nuxeo-vocabulary-management.js
@AnilKumarVanga AnilKumarVanga force-pushed the WEBUI-157-fix-vocabulary-management-when-the-entry-key-starts-with branch from 7feb472 to 5d899c9 Compare May 26, 2026 07:48
…starts-with' of https://github.com/nuxeo/nuxeo-web-ui into WEBUI-157-fix-vocabulary-management-when-the-entry-key-starts-with
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

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.

4 participants