You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Michael Haeusler (JIRA)" <ji...@apache.org> on 2013/11/24 03:22:37 UTC

[jira] [Created] (SANTUARIO-371) Junit test fails on 2.0 branch

Michael Haeusler created SANTUARIO-371:
------------------------------------------

             Summary: Junit test fails on 2.0 branch
                 Key: SANTUARIO-371
                 URL: https://issues.apache.org/jira/browse/SANTUARIO-371
             Project: Santuario
          Issue Type: Bug
          Components: Java
    Affects Versions: Java 2.0.0
            Reporter: Michael Haeusler
            Assignee: Colm O hEigeartaigh
             Fix For: Java 2.0.0


I tried to build the Java 2.0.0 branch and found that two of the BaltimoreEnvTest test cases fail with this error:

Maximum (50) allowed XML Structure size exceeded.

the test-cases are:
test_five_content_aes128_cbc_rsa_15 
test_five_data_3des_cbc_rsa_oaep


I checked the AbstractDecryptInputProcessor which is causing this error and found that this limit is hardcoded.

now the question is:
why does this limit exist and why is this so small ?

the xml-enc structure in test_five_content_aes128_cbc_rsa_15  has 54 XML-events and the other has 58.

I also noticed that the "maximumAllowedXMLStructureDepth" is configurable and has a default of 100.
However, with a limit of 50 xml-events this theoretical structure-depth can never be reached even remotely.





--
This message was sent by Atlassian JIRA
(v6.1#6144)