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

Clean up processing of input of string-to-document Automation type adapter

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Automation
    • Story Points:
      1

      Description

      StringToDocModel (or TypeAdapterHelper after NXP-21528 refactoring) has curious code using with value.startsWith(".").

      This code should be cleaned up because the actual intent seems to be to test for relative paths, which means that it needs to test value.equals(".") || value.equals("..") || value.startsWith("./") || value.startsWith("../"). In addition, unit tests for these case should be added, because for instance a value of ".foobar" shouldn't be resolved as a relative path (it should raise an exception).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: