directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1143479 - in /directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions: PaDataInit.java StorePaDataValue.java
Date Wed, 06 Jul 2011 16:07:03 GMT
Author: kayyagari
Date: Wed Jul  6 16:07:03 2011
New Revision: 1143479

URL: http://svn.apache.org/viewvc?rev=1143479&view=rev
Log:
o PA-DATA can be optional (DIRSERVER-1631)

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/PaDataInit.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/StorePaDataValue.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/PaDataInit.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/PaDataInit.java?rev=1143479&r1=1143478&r2=1143479&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/PaDataInit.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/PaDataInit.java
Wed Jul  6 16:07:03 2011
@@ -58,17 +58,6 @@ public class PaDataInit extends GrammarA
      */
     public void action( PaDataContainer paDataContainer ) throws DecoderException
     {
-        TLV tlv = paDataContainer.getCurrentTLV();
-
-        // The Length should not be null
-        if ( tlv.getLength() == 0 )
-        {
-            LOG.error( I18n.err( I18n.ERR_04066 ) );
-
-            // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( I18n.err( I18n.ERR_04067 ) );
-        }
-
         PaData paData = new PaData();
         paDataContainer.setPaData( paData );
 

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/StorePaDataValue.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/StorePaDataValue.java?rev=1143479&r1=1143478&r2=1143479&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/StorePaDataValue.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/padata/actions/StorePaDataValue.java
Wed Jul  6 16:07:03 2011
@@ -36,7 +36,7 @@ public class StorePaDataValue extends Ab
      */
     public StorePaDataValue()
     {
-        super( "PaData's padata-value" );
+        super( "PaData's padata-value", true ); // PaData value can be null 
     }
 
 



Mime
View raw message