Issue Details (XML | Word | Printable)

Key: DIRSERVER-258
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Emmanuel Lecharny
Reporter: Giamma
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

NormalizationService is not handling correctly a Name with a comma followed by a space in it: for instance "text1, text2"

Created: 19/Nov/05 08:20 AM   Updated: 21/Apr/07 11:19 AM
Return to search
Component/s: None
Affects Version/s: pre-1.0
Fix Version/s: 1.5.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Direct Report View.ldif 2005-11-19 09:39 AM Giamma 2 kB
Environment: XP

Resolution Date: 01/Jul/06 03:38 PM


 Description  « Hide
In my custom partition I have organizations with various special characters in their name, for instance:
"text1=text2"
"text1 text2"
"text1,text2"
The 3 above all work fine.

But the following won't be normilized correctly:
"text1= text2"
"text2, text2"

They are normilized by NormalizationService.search or NormalizationService.hasEntry as this:
"text1= text2" --> "text1=text2"
"text2, text2" --> "text1,text2"

The space after the = or the , are skipped.
I think the code doing this is coming from antrl.
I tried using the latest 2.7.5 but the problem is still there.

I think the actual class with the bug is LLKParser.
I didn't download the code so i am not sure what's wrong.
I believe this is a regression as the same test case used to work with a previous
version of apache DS.

Let me know if you need anything more from me.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #375441 Tue Feb 07 01:31:10 UTC 2006 akarasulu added tests to try to reproduce bug in DIREVE-308 but failed to do so
Files Changed
MODIFY /directory/sandbox/akarasulu/rc1refactor/common/ldap/src/test/java/org/apache/ldap/common/name/DnParserTest.java
ADD /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/normalization/NormalizationServiceTest.java
ADD /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/normalization/testDireve308Example.ldif
ADD /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/normalization
MODIFY /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/schema/SchemaServiceTest.java
ADD /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/schema (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/core/schema)
DEL /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/core/schema
ADD /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/normalization
ADD /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/schema (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/core/schema)
DEL /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/core/schema
MODIFY /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/main/java/org/apache/ldap/server/unit/AbstractTestCase.java

Repository Revision Date User Message
ASF #375522 Tue Feb 07 07:05:51 UTC 2006 akarasulu Merging from private branch for RC1 fixes:

 o fixes for DIREVE-328
 o test cases to try to reproduce DIREVE-308
Files Changed
ADD /directory/trunks/apacheds/core-unit/src/test/java/org/apache/ldap/server/schema (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/schema)
DEL /directory/trunks/apacheds/core-unit/src/test/java/org/apache/ldap/server/core/schema
DEL /directory/trunks/apacheds/core-unit/src/test/resources/org/apache/ldap/server/core/schema
REPLACE /directory/trunks/apacheds/core-unit/src/test/resources/org/apache/ldap/server/schema/nonspecific.ldif (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/schema/nonspecific.ldif)
MODIFY /directory/trunks/common/ldap/src/test/java/org/apache/ldap/common/name/DnParserTest.java
REPLACE /directory/trunks/apacheds/core-unit/src/test/java/org/apache/ldap/server/normalization/NormalizationServiceTest.java (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/normalization/NormalizationServiceTest.java)
MODIFY /directory/trunks/apacheds/core-unit/src/test/java/org/apache/ldap/server/authz/SearchAuthorizationTest.java
REPLACE /directory/trunks/apacheds/core-unit/src/test/java/org/apache/ldap/server/schema/SchemaServiceTest.java (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/schema/SchemaServiceTest.java)
MODIFY /directory/trunks/apacheds/core-unit/src/main/java/org/apache/ldap/server/unit/AbstractTestCase.java
REPLACE /directory/trunks/apacheds/core-unit/src/test/resources/org/apache/ldap/server/normalization/testDireve308Example.ldif (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/normalization/testDireve308Example.ldif)
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/authz/AuthorizationService.java
ADD /directory/trunks/apacheds/core-unit/src/test/java/org/apache/ldap/server/normalization (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/java/org/apache/ldap/server/normalization)
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/ldap/server/authz/support/RelatedUserClassFilter.java
ADD /directory/trunks/apacheds/core-unit/src/test/resources/org/apache/ldap/server/schema (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/schema)
ADD /directory/trunks/apacheds/core-unit/src/test/resources/org/apache/ldap/server/normalization (from /directory/sandbox/akarasulu/rc1refactor/apacheds/core-unit/src/test/resources/org/apache/ldap/server/normalization)