You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "J. Garcia (JIRA)" <ji...@apache.org> on 2012/06/11 09:41:43 UTC

[jira] [Created] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

J. Garcia created WW-3841:
-----------------------------

             Summary: Struts 2 losing timestamp in java.util.Date when validation failed
                 Key: WW-3841
                 URL: https://issues.apache.org/jira/browse/WW-3841
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors
    Affects Versions: 2.3.3
         Environment: jdk 1.6, windows
            Reporter: J. Garcia
             Fix For: 2.3.5


A full example based on struts2 blank archetype attached.
Run with maven2: mvn jetty:run
Url: http://localhost:8080/struts-test/example/Login

Enter as year of birth a bad integer: 1980aaa
You'll see the timestamp still there, BUT the milliseconds are set to zero. 


--
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

        

[jira] [Commented] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

Posted by "J. Garcia (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456861#comment-13456861 ] 

J. Garcia commented on WW-3841:
-------------------------------

The field to consider in the example is user.date, which is of Date type.
                
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3841
>                 URL: https://issues.apache.org/jira/browse/WW-3841
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.3
>         Environment: jdk 1.6, windows
>            Reporter: J. Garcia
>             Fix For: 2.3.5
>
>         Attachments: struts-test_5.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero. 

--
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

[jira] [Updated] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-3841:
------------------------------

    Fix Version/s:     (was: 2.3.5)
                   2.3.6
    
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3841
>                 URL: https://issues.apache.org/jira/browse/WW-3841
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.3
>         Environment: jdk 1.6, windows
>            Reporter: J. Garcia
>             Fix For: 2.3.6
>
>         Attachments: struts-test_6.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero. 

--
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

[jira] [Updated] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

Posted by "J. Garcia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J. Garcia updated WW-3841:
--------------------------

    Comment: was deleted

(was: The field to consider in the example is user.date, which is of Date type.)
    
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3841
>                 URL: https://issues.apache.org/jira/browse/WW-3841
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.3
>         Environment: jdk 1.6, windows
>            Reporter: J. Garcia
>             Fix For: 2.3.5
>
>         Attachments: struts-test_6.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero. 

--
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

[jira] [Updated] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

Posted by "J. Garcia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J. Garcia updated WW-3841:
--------------------------

    Attachment: struts-test_6.zip

Previous source was incomplete. Sorry!
                
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3841
>                 URL: https://issues.apache.org/jira/browse/WW-3841
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.3
>         Environment: jdk 1.6, windows
>            Reporter: J. Garcia
>             Fix For: 2.3.5
>
>         Attachments: struts-test_6.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero. 

--
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

[jira] [Commented] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456069#comment-13456069 ] 

Lukasz Lenart commented on WW-3841:
-----------------------------------

The example is invalid, user.born is an Integer not a Date
                
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3841
>                 URL: https://issues.apache.org/jira/browse/WW-3841
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.3
>         Environment: jdk 1.6, windows
>            Reporter: J. Garcia
>             Fix For: 2.3.5
>
>         Attachments: struts-test_5.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero. 

--
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

[jira] [Updated] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

Posted by "J. Garcia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J. Garcia updated WW-3841:
--------------------------

    Attachment:     (was: struts-test_5.zip)
    
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3841
>                 URL: https://issues.apache.org/jira/browse/WW-3841
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.3
>         Environment: jdk 1.6, windows
>            Reporter: J. Garcia
>             Fix For: 2.3.5
>
>         Attachments: struts-test_6.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero. 

--
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

[jira] [Updated] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed

Posted by "J. Garcia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J. Garcia updated WW-3841:
--------------------------

    Attachment: struts-test_5.zip
    
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3841
>                 URL: https://issues.apache.org/jira/browse/WW-3841
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.3
>         Environment: jdk 1.6, windows
>            Reporter: J. Garcia
>             Fix For: 2.3.5
>
>         Attachments: struts-test_5.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero. 

--
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