liaoxin01 opened a new pull request, #71168: URL: https://github.com/apache/doris/pull/71168
### Background FE forwards MySQL Load to the BE Stream Load endpoint, whose URL contains the target database and table. ### What problem does this PR solve? Issue Number: None Related PR: #15511 (introduced MySQL Load) PR Type: Bugfix Problem Summary: Reserved characters in a target name could change how BE parsed the request path. Encode each name as one path segment so BE receives the original identifiers. ### Details - **Frequency:** Affects names containing URL delimiters or characters that need escaping. - **Root cause:** `selectBackendForMySqlLoad` appended raw SQL identifiers to the URL. - **Why existing tests missed it:** The URL unit tests and the MySQL Load permission regression used simple names. - **Fix:** Percent-encode each identifier in UTF-8 before joining the path segments. - **Other paths and branches:** Both FE request builders use this method. The same raw concatenation exists on branches 3.1, 4.0, 4.1 and 4.2. ### Testing Before rebasing, both `MysqlLoadManagerTest` tests passed locally. The updated assertion covers Unicode, URL delimiters, spaces, literal plus and percent signs. A local path round-trip check failed before the fix and passed afterward. ### Release note MySQL Load preserves special characters in database and table names when forwarding requests to BE. ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Ready ### AI Disclosure - Tool: OpenAI Codex (GPT-6) - Generated: Implementation, unit test and PR description. - Human review: The author identified the URL construction concern, discussed the encoding and reviewed the test scope. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
