directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r802425 - /directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java
Date Sat, 08 Aug 2009 17:49:14 GMT
Author: kayyagari
Date: Sat Aug  8 17:49:13 2009
New Revision: 802425

URL: http://svn.apache.org/viewvc?rev=802425&view=rev
Log:
added a fix for displaying entryUUID attribute value when received as a string instead of
byte[]

Modified:
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java?rev=802425&r1=802424&r2=802425&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/uuid/InPlaceUuidValueEditor.java
Sat Aug  8 17:49:13 2009
@@ -46,6 +46,12 @@
      */
     public String getDisplayValue( IValue value )
     {
+    	// OpenLDAP returns entryUUID as a String instead of byte[]
+    	if( value.getRawValue() instanceof String )
+    	{
+    		return ( String ) value.getRawValue();	
+    	}
+    	
         byte[] displayValue = value.getBinaryValue();
 
         if ( !showRawValues() )



Mime
View raw message