[richfaces-issues] [JBoss JIRA] (RF-13648) Graph Validator + Tomcat 8.0.8: interpret empty strings as null is ignored

Tony Cramer (JIRA) issues at jboss.org
Mon Jun 2 10:59:16 EDT 2014


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

Tony Cramer updated RF-13648:
-----------------------------

    Description: 
{{javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL}} is ignored during Graph validating.

Some debugging info:
Object being validated ({{value}} argument) in method {{org.richfaces.validator.BeanValidatorServiceImpl.validateObject}} contains empty strings ("").
Expected behavior: There should be nulls in properties, because interpreting empty strings as null is enabled.

This causes validation to not pass.

Something has changed in _jasper-el_ in Tomcat 8.0.8 which I updated recently from 8.0.5. If I replace _jasper-el.jar_ from Tomcat 8.0.5, everything works.
Tomcat bug or RF bug?

Edit:
It's definitely JSF/RF's issue. Tomcat EL has changed to meet EL spec.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56522

Edit:
Simple project for reproducing the issue included (rf-demo.zip).
- Build WAR with Maven (3.2.1 tested)
- Get a clean Tomcat 8.0.8, unpack
- Place WAR into webapps
- Run tomcat
- Open http://localhost:8080/rf-demo-1.0-SNAPSHOT

  was:
{{javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL}} is ignored during Graph validating.

Some debugging info:
Object being validated ({{value}} argument) in method {{org.richfaces.validator.BeanValidatorServiceImpl.validateObject}} contains empty strings ("").
Expected behavior: There should be nulls in properties, because interpreting empty strings as null is enabled.

This causes validation to not pass.

Something has changed in _jasper-el_ in Tomcat 8.0.8 which I updated recently from 8.0.5. If I replace _jasper-el.jar_ from Tomcat 8.0.5, everything works.
Tomcat bug or RF bug?

Edit:
It's definitely JSF/RF's issue. Tomcat EL has changed to meet EL spec.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56522



> Graph Validator + Tomcat 8.0.8: interpret empty strings as null is ignored
> --------------------------------------------------------------------------
>
>                 Key: RF-13648
>                 URL: https://issues.jboss.org/browse/RF-13648
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.7
>         Environment: Tomcat 8.0.8, OpenJDK 7, OpenSuse 13.1 x64
>            Reporter: Tony Cramer
>            Assignee: Juraj Húska
>              Labels: waiting_on_user
>         Attachments: rf-demo.zip
>
>
> {{javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL}} is ignored during Graph validating.
> Some debugging info:
> Object being validated ({{value}} argument) in method {{org.richfaces.validator.BeanValidatorServiceImpl.validateObject}} contains empty strings ("").
> Expected behavior: There should be nulls in properties, because interpreting empty strings as null is enabled.
> This causes validation to not pass.
> Something has changed in _jasper-el_ in Tomcat 8.0.8 which I updated recently from 8.0.5. If I replace _jasper-el.jar_ from Tomcat 8.0.5, everything works.
> Tomcat bug or RF bug?
> Edit:
> It's definitely JSF/RF's issue. Tomcat EL has changed to meet EL spec.
> https://issues.apache.org/bugzilla/show_bug.cgi?id=56522
> Edit:
> Simple project for reproducing the issue included (rf-demo.zip).
> - Build WAR with Maven (3.2.1 tested)
> - Get a clean Tomcat 8.0.8, unpack
> - Place WAR into webapps
> - Run tomcat
> - Open http://localhost:8080/rf-demo-1.0-SNAPSHOT



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)



More information about the richfaces-issues mailing list