2 Replies Latest reply on Mar 25, 2014 9:30 AM by ghetolay

    undertow getHeader() on EL expression


      It seems like a bug on undertow or el expression implementation but I didn't found any issue tracker nor support forum for any.


      When I want to get some header proprieties on a jsf page like that :

      <h:outputText value="#{ request.getHeader( 'user-agent' ) }" />


      I got this error :

      java.lang.IllegalArgumentException: Cannot convert user-agent of type class java.lang.String to class io.undertow.util.HttpString


      Since undertow's HttpServletRequest implementation has 2 getHeader() signature :

      public String getHeader(final String name) 
      public String getHeader(final HttpString name)


      It seems the EL eval is trying to use the second instead of the first one.


      Using Wildfly 8.0.0.Final release.