Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1999

Incorrect pattern regex for IDENTIFIER

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • coordinator
    • None

    Description

      The pattern value for IDENTIFIER in the oozie xml-schema is :
      "([a-zA-Z_]([\-_a-zA-Z0-9])*)

      {1,39}"
      (see http://oozie.apache.org/docs/4.0.0/WorkflowFunctionalSpec.html#Oozie_Schema_Version_0.5)

      It seems the idea was to limit the length of an identifier to 40 characters. Because of the '*', the limitation doesn't have any effect - strings with arbitrary length will match the pattern. This caused issues like OOZIE-781.

      In order the limit on length to be effective, the '*' should be removed, so the pattern should be:
      "[a-zA-Z_]([\-_a-zA-Z0-9]){1,39}

      "

      Attachments

        Activity

          People

            Unassigned Unassigned
            jszekren Jozsef Szekrenyes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: