Issue Details (XML | Word | Printable)

Key: DIRSERVER-583
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Lecharny
Reporter: Norval Hope
Votes: 0
Watchers: 0
Operations

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

org.apache.ldap.common.message.SearchRequestImpl needs to implement toString()

Created: 21/Feb/06 10:26 AM   Updated: 03/Dec/08 11:18 PM
Return to search
Component/s: ldap
Affects Version/s: 1.0-RC1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works searchreq_tostring.patch 2006-02-21 02:58 PM Norval Hope 2 kB
Text File Licensed for inclusion in ASF works searchreq_tostring2.patch 2006-02-21 03:34 PM Norval Hope 2 kB
Environment: N/A

Resolution Date: 22/Feb/06 08:02 AM


 Description  « Hide
The other message classes implement friendly toString()s, but the search request doesn't meaning the default INFO level is of very little use for debugging. I set the priority as major because this severely impacts debugging system behaviour, and certainly will be noticed by new users installing RC1 (and may prevent them for providing the raw material to help in raising JIRA issues).

Some example output (notice the RECEIVED message is a generic java.lang.Object.toString()):

[21/02/2006 11:06:42] [/155.35.171.101:2351] SENT: BindResponse
        Ldap Result
            Result code : (ResultCodeEnum[SUCCESS=0]) success
            Matched DN : 'null'
            Error message : 'null'

[21/02/2006 11:06:42] [/155.35.171.101:2351] RECEIVED: org.apache.ldap.common.message.SearchRequestImpl@132ae7
[21/02/2006 11:06:42] [/155.35.171.101:2351] WRITE: Search Result Entry
        Object Name : 'cn=ETA1,dc=example,dc=com'
        Attributes
Attributes

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.