Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52861

p4sync's depotSource doesn't handle exclusionary mappings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • p4-plugin
    • None

       

      See client/ViewMapHelper.getClientView() - there's no check for a leading "-".

      Workaround:  use a template workspace.

      Repro:   make a p4sync with "Depot Sources" with one good line and one exclusionary path

      //depot/cases/...

      -//depot/cases/diff2/...

      p4sync then has:

      source: depotSource('''//depot/cases/...
      -//depot/cases/diff2/...''')

      Console log errro is:

      P4: Unable to setup workspace: com.perforce.p4java.exception.RequestException: Error in client specification.
      Error detected at line 17.
      Null directory (//) not allowed in '///depot/cases/diff2/...'.
      Null directory (//) not allowed in '///depot/cases/diff2/...'.

       

       

            p4paul Paul Allen
            joel_brown Joel Brown
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: