cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Reilles (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4979) WadlGenerator generates invalid xml for QueryParameters with a default value containing " characters
Date Tue, 23 Apr 2013 11:45:15 GMT
Antoine Reilles created CXF-4979:
------------------------------------

             Summary: WadlGenerator generates invalid xml for QueryParameters with a default
value containing " characters
                 Key: CXF-4979
                 URL: https://issues.apache.org/jira/browse/CXF-4979
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.6.7
         Environment: tomee-1.6.0-SNAPSHOT
            Reporter: Antoine Reilles


When defining a service with an {{@DefaultValue}} those value contains some double quotes,
for instance:
{code}
@GET
  public List<Task> tasks(
   @DefaultValue("-\"Created\" -\"Done\"") @QueryParam("states") String states) {
  ...
}
{code}
The wadl description generated by the {{WadlGenerator}} class is not valid xml: the value
should be xml encoded. It seems there are a lot of cases where the inputs are not correctly
xml encoded in the generator, {{@DefaultValue}} being the one that will most probably contain
offending values.

As a side note, {{WadlGenerator}} is really painful to extend. For instance, in order to support
custom "doc" annotations, one cannot override the handledocs method, but has to redefine all
its callers.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message