History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XPR-407
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jacques Morel
Reporter: Jeremy K. Truax
Votes: 0
Watchers: 1
Operations

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

LDAP Authentication variable userSubtree always comes up false no matter what

Created: 13/Jun/07 02:45 PM   Updated: 14/Jun/07 11:02 AM
Component/s: Security
Affects Version/s: 0.7
Fix Version/s: 0.8b4

Time Tracking:
Not Specified

File Attachments: 1. Text File fixUserSubtreeAndShowStackTrace.patch (0.7 kb)


JDK version and platform: 1.6 on CentOS Linux
Database: MySQL
Application server: Tomcat 5.5.9
Testcase included: yes
Patch attached: Yes


 Description  « Hide
When using LDAP Authentication properties in xplanner.properties, the following property even if it's set to true is always false in the code:

xplanner.security.login[1].option.userSubtree=true

The reason for this is found in: com/sabre/security/jndi/JNDIAuthenticaterImpl.java Line 137:

> this.userSubtree = Boolean.getBoolean(userSubtree);

From what I read on getBoolean it looks at a system property or something? Anyway, I believe it should use parseBoolean like below:

> this.userSubtree = Boolean.parseBoolean(userSubtree);

This fix worked for me when I made it and recompiled and redeployed it.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeremy K. Truax - 14/Jun/07 10:48 AM
Patch to fix the bug.

Also adds a stack trace in the currently empty catch for setOptions (see XPR-408)