Struts 2
  1. Struts 2
  2. WW-3841

Struts 2 losing timestamp in java.util.Date when validation failed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.3
    • Fix Version/s: 2.3.12
    • Component/s: Core Interceptors
    • Labels:
      None
    • Environment:

      jdk 1.6, windows

      Description

      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.

        Issue Links

          Activity

          J. Garcia created issue -
          J. Garcia made changes -
          Field Original Value New Value
          Attachment struts-test_5.zip [ 12531648 ]
          Lukasz Lenart made changes -
          Link This issue is duplicated by WW-3836 [ WW-3836 ]
          J. Garcia made changes -
          Attachment struts-test_5.zip [ 12531648 ]
          J. Garcia made changes -
          Attachment struts-test_6.zip [ 12545560 ]
          J. Garcia made changes -
          Comment [ The field to consider in the example is user.date, which is of Date type. ]
          Lukasz Lenart made changes -
          Fix Version/s 2.3.6 [ 12323249 ]
          Fix Version/s 2.3.5 [ 12321274 ]
          Lukasz Lenart made changes -
          Fix Version/s 2.3.7 [ 12323448 ]
          Fix Version/s 2.3.6 [ 12323249 ]
          Lukasz Lenart made changes -
          Fix Version/s 2.3.8 [ 12323480 ]
          Fix Version/s 2.3.7 [ 12323448 ]
          Lukasz Lenart made changes -
          Fix Version/s 2.3.9 [ 12323841 ]
          Fix Version/s 2.3.8 [ 12323480 ]
          Lukasz Lenart made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Lukasz Lenart [ lukaszlenart ]
          Resolution Won't Fix [ 2 ]
          Lukasz Lenart made changes -
          Fix Version/s 2.3.11 [ 12323903 ]
          Fix Version/s 2.3.10 [ 12323841 ]
          Lukasz Lenart made changes -
          Fix Version/s 2.3.12 [ 12324067 ]
          Fix Version/s 2.3.11 [ 12323903 ]
          Lukasz Lenart made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Lukasz Lenart
              Reporter:
              J. Garcia
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development