Closed GoogleCodeExporter closed 8 years ago
While the documentation does not indicate this, what's going on here is that the
constructor for the DefaultEncoder is designed to take in a list of codecs for
*canonicalization*, not for regular encodeFor...() methods.
I don't see any information in the interface doc about this constructor
functionality, which is problem #1. I guess we just made this up for the
Default :-)
Problem #2 is that if someone wants to do something reasonable like you are
doing,
just replace a specific codec, they must also replace DefaultEncoder with their
own
implementation to press the new codec into use. I think it would be much better
to
move to a plug-in architecture where plug-ins register themselves with the
encoder
with a specific target ('javascript'), and the encoder, when called, can hand
the
request off to whichever plug-in is registered with the appropriate target.
Such a plug-in system wouldn't need to modify the API, and would make the
DefaultEncoder much easier to extend.
Original comment by cyounk...@gmail.com
on 22 Jul 2009 at 3:52
This should be resolved with the Encoder API Cleanup - Issue 68
http://code.google.com/p/owasp-esapi-java/issues/detail?id=68
If this does not address the problem fully, please reopen this issue, for the
time
being I am marking this as a duplicate and closing.
Original comment by chrisisbeef
on 2 Dec 2009 at 7:53
Original issue reported on code.google.com by
rpal...@gmail.com
on 21 May 2009 at 4:51Attachments: