james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r644945 - /james/server/trunk/imap-codec-library/src/main/java/org/apache/james/imapserver/codec/decode/main/DefaultImapDecoder.java
Date Fri, 04 Apr 2008 21:50:17 GMT
Author: rdonkin
Date: Fri Apr  4 14:50:15 2008
New Revision: 644945

URL: http://svn.apache.org/viewvc?rev=644945&view=rev
Log:
Commented code

Modified:
    james/server/trunk/imap-codec-library/src/main/java/org/apache/james/imapserver/codec/decode/main/DefaultImapDecoder.java

Modified: james/server/trunk/imap-codec-library/src/main/java/org/apache/james/imapserver/codec/decode/main/DefaultImapDecoder.java
URL: http://svn.apache.org/viewvc/james/server/trunk/imap-codec-library/src/main/java/org/apache/james/imapserver/codec/decode/main/DefaultImapDecoder.java?rev=644945&r1=644944&r2=644945&view=diff
==============================================================================
--- james/server/trunk/imap-codec-library/src/main/java/org/apache/james/imapserver/codec/decode/main/DefaultImapDecoder.java
(original)
+++ james/server/trunk/imap-codec-library/src/main/java/org/apache/james/imapserver/codec/decode/main/DefaultImapDecoder.java
Fri Apr  4 14:50:15 2008
@@ -59,6 +59,10 @@
         }
         catch ( ProtocolException e ) {
             logger.debug("Cannot parse tag", e);
+            
+            // When the tag cannot be read, there is something seriously wrong.
+            // It is probably not possible to recover
+            // and (since this may indicate an attack) wiser not to try
             message = messageFactory.bye(HumanReadableTextKey.ILLEGAL_TAG);
         }
         return message;



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message