jeff377 / owaspantisamy

Automatically exported from code.google.com/p/owaspantisamy
0 stars 0 forks source link

Errors when loading included policy files #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a complex AntiSamy policy that uses multiple included files
2. Attempt to load the policy

What is the expected output? What do you see instead?

Errors will be thrown during parsing if global-tag-attributes, 
common-attributes, or tag-rules reference other attributes, or regexps that 
have not yet been loaded from included files or the master file. 

Original issue reported on code.google.com by augu...@gmail.com on 19 Oct 2010 at 10:28

GoogleCodeExporter commented 8 years ago
Proposed patch attached. 

This patch separates out load and parse actions for global-tag-attributes, 
common-attributes, and tag-rules into separate methods. Attributes and tag 
rules are loaded first from all included policy files and the main policy file 
and then parsed as a whole. 

Original comment by augu...@gmail.com on 19 Oct 2010 at 10:33

Attachments:

GoogleCodeExporter commented 8 years ago
What's the status on this?

Original comment by arshan.d...@gmail.com on 3 Feb 2011 at 8:32