james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r938339 - /james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java
Date Tue, 27 Apr 2010 07:30:53 GMT
Author: bago
Date: Tue Apr 27 07:30:52 2010
New Revision: 938339

URL: http://svn.apache.org/viewvc?rev=938339&view=rev
Log:
Improve "fail" message for i= tag domain mismatch d= domain.

Modified:
    james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java

Modified: james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java
URL: http://svn.apache.org/viewvc/james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java?rev=938339&r1=938338&r2=938339&view=diff
==============================================================================
--- james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java
(original)
+++ james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java
Tue Apr 27 07:30:52 2010
@@ -68,7 +68,7 @@ public class SignatureRecordImpl extends
                 ("@" + getValue("d")).toLowerCase())
                 && !getIdentity().toString().toLowerCase().endsWith(
                         ("." + getValue("d")).toLowerCase()))
-            throw new IllegalStateException("Domain mismatch");
+            throw new IllegalStateException("Identity (i=) domain mismatch: expected [optional]@[optional.]domain-from-d-attribute");
 
         // when "x=" exists and signature expired then return PERMFAIL
         // (signature expired)



---------------------------------------------------------------------
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