[jboss-jira] [JBoss JIRA] (AS7-3049) RESTEasy: Empty cfg. param resteasy.resources produces exception

Pavel Janousek (Moved) (JIRA) jira-events at lists.jboss.org
Thu Dec 15 10:12:10 EST 2011


     [ https://issues.jboss.org/browse/AS7-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Janousek moved JBPAPP-7765 to AS7-3049:
---------------------------------------------

              Project: Application Server 7  (was: JBoss Enterprise Application Platform)
                  Key: AS7-3049  (was: JBPAPP-7765)
             Workflow: GIT Pull Request workflow   (was: jira)
    Affects Version/s: 7.1.0.Beta1b
                           (was: EAP 6.0.0 DR 8)
          Component/s: REST
                           (was: RESTEasy)
             Security:     (was: JBoss Internal)
       Docs QE Status:   (was: NEW)

    
> RESTEasy: Empty cfg. param resteasy.resources produces exception
> ----------------------------------------------------------------
>
>                 Key: AS7-3049
>                 URL: https://issues.jboss.org/browse/AS7-3049
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 7.1.0.Beta1b
>            Reporter: Pavel Janousek
>            Assignee: Weinan Li
>            Priority: Blocker
>
> When I use empty content for configuration parameter of RESTEasy _resteasy.producers_ in web.xml like:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="false">
>    <servlet-mapping>
>       <servlet-name>javax.ws.rs.core.Application</servlet-name>
>       <url-pattern>/myjaxrs/*</url-pattern>
>    </servlet-mapping>
>                                                                                                                                                                              
>    <context-param>
>       <param-name>resteasy.produces</param-name>
>       <param-value></param-value>
>    </context-param>
> </web-app>"
> {code}
> I've got exception "java.lang.StringIndexOutOfBoundsException: String index out of range: 0" - this is very similar as in JBPAPP-7715.
> I think empty list of producers is also appropriate input (cfg), so AS7 should accommodate it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list