Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-19046

Error triggering a rule when the criteria is a date field

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2 Enterprise
    • Fix Version/s: 4.2 Enterprise
    • Component/s: Rules and Actions
    • Security Level: external (External user)
    • Labels:
      None
    • Resource:
      External
    • Resolution Time Custom Field:
      4 weeks, 6 days, 22 hours, 49 minutes, 18 seconds

      Description

      Rule execution fails when triggering based on a date value.

      To reproduce:
      Create the following rule on a folder:

      • When: Items are updated
      • If all criteria are met:
        • Effective From greater than Sun 1 Jan 2012 00:00:00 (note: tried several dates, doesn't seem to matter, all fail)
      • Perform action: Set property value Property: Description Value: MYTEXT
        (note: the action does not seem to matter, other actions also fail)
      • Create a document in the folder
      • Add the Effectivity aspect
      • Set a value for the Effective From field e.g. 7/6/2013 (to trigger the rule)

      Result:
      Failure: 05072452 Failed to parse date 2012-01-01 (in Share UI)
      Java Exception: Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 10
      See attached parse-date-exception.txt for full exception

      Expected Result:
      Rule and action are trigger.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                mfarman Mike Farman
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m