Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4626

Wrong Date handling in SimpleTypeMapper

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: databinding
    • Labels:
      None
    • Environment:
      Not relevant

      Description

      Class SimpleTypeMapper

      Line 113 to 115:

      } else if (name.equals(W_DATE))

      { return makeDate(text); }

      Line 312 to 314:

      public static Object makeDate(String source)

      { return ConverterUtil.convertToDateTime(source).getTime(); }

      I think the latter should return the result from ConverterUtil.convertToDate(source) not from convertToDateTime. If that is not possible, I'd expect ConverterUtil.convertToDateTime to also accept a date in the format "yyyy-mm-dd" not only in the long 19 character version? or am I wrong here?

      As Axis2 serializes Date Objects in my case (POJO Webservice) in the "yyyy-mm-dd" format to String, this format should definitely be accepted on clientside in my opinion.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cruxy Bernhard Schauer

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment