struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stéphane Meny (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (WW-3745) Server validation potentially broken since 2.3.1
Date Tue, 17 Jan 2012 13:15:39 GMT

    [ https://issues.apache.org/jira/browse/WW-3745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187646#comment-13187646
] 

Stéphane Meny commented on WW-3745:
-----------------------------------

So here are the steps I followed to fix the problem :
I browsed http://struts.apache.org/dtds/ to check all the last DTDs.

I changed validators.xml with :
{code:xml}
  <!DOCTYPE validators PUBLIC
        "-//Apache Struts//XWork Validator Config 1.0//EN"
        "http://struts.apache.org/dtds/xwork-validator-config-1.0.dtd">
{code}

and the action validator with:
{code:xml}
<!DOCTYPE validators PUBLIC 
  		"-//Apache Struts//XWork Validator 1.0.2//EN"
  		"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
{code}

Now the problem is fixed, issue was the following definition in validators.xml:
{code:xml}
<!DOCTYPE validators PUBLIC
        "-//OpenSymphony Group//XWork Validator Config 1.0//EN"
        "http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd">
{code}
as written in the documentation.

So I guess it should be updated.
Thanks a lot Lenart for pointing out the issue :)

                
> Server validation potentially broken since 2.3.1
> ------------------------------------------------
>
>                 Key: WW-3745
>                 URL: https://issues.apache.org/jira/browse/WW-3745
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Validators
>    Affects Versions: 2.3.1, 2.3.1.1
>         Environment: Windows 7 / JDK 1.7u2 / Tomcat 7.0.24 x64 / Maven 3.0.2
>            Reporter: Stéphane Meny
>            Priority: Critical
>             Fix For: 2.3.2
>
>
> We started to migrate our project from Struts 2.2.3.1 to 2.3.1 (also tested with 2.3.1.1)
> We currently use the server validation using XML validators with ActionClass-alias-validator.xml
syntax.
> Our interceptor stack is correctly configured having :
> ...
> <interceptor-ref name="validation" />
> <interceptor-ref name="workflow" />
> ...
> Since this migration, our tests are resulting in database constraints violation because
it seems that the validation is not called anymore.
> Problem is solved when coming back to version 2.2.3.1
> I have checked online documentation (http://struts.apache.org/2.3.1.1/docs/validation.html)
but I can't see any change done from 2.2.3.1
> The only similar issue I have found is https://issues.apache.org/jira/browse/WW-3736
but is on Client side, could be a potential clue.
> Best regards,
> Stéphane

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

       

Mime
View raw message