eclipse-ee4j / eclipse-ee4j/wasp

messages with single quotes not logged correctly

Open
#22 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I found that some JSP message suffer from the same problem mentioned in GF IT
issue #9896: when a single quote is used in a message with an argument, the
message formatter treats the whole message as quoted text, and not substituting
the arguments. Also, single quotes are not printed.

The fix is to escape all single quotes with single quotes for messages that have
one or more arguments. (and heeding not do it for messages that have NO arguments).

I've prepared a patch.
#### Environment
Operating System: All
Platform: All
URL: [https://glassfish.dev.java.net/issues/show_bug.cgi?id=9896](https://glassfish.dev.java.net/issues/show_bug.cgi?id=9896)
#### Affected Versions
[current]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.