Skip to content

fix: use new header for folder paths containing non-ascii chars#1451

Merged
dianagrecu-uipath merged 12 commits intomainfrom
fix/http-headers-sanitization
Mar 19, 2026
Merged

fix: use new header for folder paths containing non-ascii chars#1451
dianagrecu-uipath merged 12 commits intomainfrom
fix/http-headers-sanitization

Conversation

@dianagrecu-uipath
Copy link
Contributor

@dianagrecu-uipath dianagrecu-uipath commented Mar 16, 2026

If a solution name contains non-ascii characters, these will get in the x-uipath-folder-path header value, breaking the spec requiring headers to have only ascii chars.

Solution: For solutions that contain non-ascii characters the x-uipath-folder-path-encoded header needs to be used instead of x-uipath-folder-path.

@github-actions github-actions bot added the test:uipath-langchain Triggers tests in the uipath-langchain-python repository label Mar 16, 2026
@dianagrecu-uipath dianagrecu-uipath force-pushed the fix/http-headers-sanitization branch from 7a7b079 to 2e57a11 Compare March 16, 2026 16:28
@dianagrecu-uipath dianagrecu-uipath marked this pull request as draft March 16, 2026 16:30
@dianagrecu-uipath dianagrecu-uipath marked this pull request as ready for review March 17, 2026 10:39
@dianagrecu-uipath dianagrecu-uipath force-pushed the fix/http-headers-sanitization branch from d7c0501 to 78016f6 Compare March 17, 2026 10:52
@github-actions github-actions bot added the test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository label Mar 17, 2026
@dianagrecu-uipath dianagrecu-uipath force-pushed the fix/http-headers-sanitization branch from 3baf065 to 53d15da Compare March 19, 2026 12:51
app_folder_key: Optional[str], app_folder_path: Optional[str]
) -> Dict[str, str]:
headers = {}
headers: Dict[str, str] = {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: let's use python built-in primitives for types

Suggested change
headers: Dict[str, str] = {}
headers: dict[str, str] = {}

@dianagrecu-uipath dianagrecu-uipath merged commit 2c18dfa into main Mar 19, 2026
75 of 91 checks passed
@dianagrecu-uipath dianagrecu-uipath deleted the fix/http-headers-sanitization branch March 19, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants