woodstox icon indicating copy to clipboard operation
woodstox copied to clipboard

Generic fault messages

Open scristofaro opened this issue 3 years ago • 2 comments

Hello,

I would like to ask if there's a option to disable faultstring messages. For example, turn messages like this:

throwParseError("Unexpected '<' character in element (missing closing '>'?)");

to a generic or empty one, so as to avoid details in Internal Server Error response.

Thanks in advance. S.

scristofaro avatar May 07 '21 13:05 scristofaro

There is currently no way to do that at this point; you would need to catch exception and create a replacement.

If someone wanted to implement a feature like that ("property"), I would accept it -- or maybe some kind of handler that would be given proposed message and could replace it with something else.

cowtowncoder avatar May 07 '21 19:05 cowtowncoder

Added a label to indicate that I probably won't have time to work on such a feature myself, but would be happy to help getting a PR merged (and suggests ways to approach this).

cowtowncoder avatar Nov 20 '21 17:11 cowtowncoder