You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/09/04 20:06:02 UTC
svn commit: r1840061 -
/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
Author: tilman
Date: Tue Sep 4 20:06:02 2018
New Revision: 1840061
URL: http://svn.apache.org/viewvc?rev=1840061&view=rev
Log:
PDFBOX-4308: improve comment that describes the file and what happened
Modified:
pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java?rev=1840061&r1=1840060&r2=1840061&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/encryption/TestSymmetricKeyEncryption.java Tue Sep 4 20:06:02 2018
@@ -211,11 +211,12 @@ public class TestSymmetricKeyEncryption
/**
* PDFBOX-4308: test that index colorspace table string doesn't get
- * corrupted when encrypting. This happened because the table was used by
- * two dictionaries, and when saving one string ended up as a direct object
- * and the other (but same java object) ended up as an indirect object.
- * Encryption used the wrong object number and/or the object was encrypted
- * twice.
+ * corrupted when encrypting. This happened because the colorspace was
+ * referenced twice, once in the resources dictionary and once in an image
+ * in the resources dictionary, and when saving the PDF the string was saved
+ * twice, once as a direct object and once as an indirect object (both from
+ * the same java object). Encryption used the wrong object number and/or the
+ * object was encrypted twice.
*
* @throws IOException
*/