Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23987

DateType.convert method needs better error handling

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core

      Description

      DateType.convert method assume you will pass in either a Date or Calendar otherwise it assumes you are passing a String that can be converted to an Integer.

      If you pass in an invalid date string it will just return null and hide the error. We should either support a date string or throw an error.

      There is a similar problem for other type converters, for instance IntegerType.convert returns null on invalid input but it should throw.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gjames Gethin James
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: