Bug 478232

Summary: MIGRATED_FROM_JIRA: Incorrect handling of \xx escape sequences in DNs
Product: [Retired] penrose Reporter: Chandrasekar Kannan <ckannan>
Component: EngineAssignee: Endi Sukma Dewata <edewata>
Status: CLOSED EOL QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: 2.0CC: benl, nmalki, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:36:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 471500    

Description Chandrasekar Kannan 2008-12-27 08:10:39 UTC
The DNBuilder unescapes \xx sequences in DNs as specified by RFC 4514. However, if the escape sequence represents a >1 byte UTF-8 sequence, the decoder fails to yield the correct result. The incorrect decoding is caused by treating each escaped character individually, instead of treating any consecutive number of characters as one UTF-8 sequence.

Example:
* {{cn=J\C3\B6rg Henne,...}} should yield {{cn=J

Comment 1 Chandrasekar Kannan 2008-12-27 08:10:41 UTC
Marking bug as MODIFIED as it was already resolved in Jira - PENROSE-262