Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-331

bug found in StarteamUpdateCommand when doing a delete-local when a (view)label is used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-3
    • Fix Version/s: 1.1
    • Labels:
      None

      Description

      After a succesfull update the StarteamUpdateCommand fires a delete-local command.
      The command string that is created for the stcmd is wrong when a (view)label is used.
      stcmd delete-local -x -nologo -stop -p "username@host:port/Project/View/path" -fp path-to-working-directory -is "-cfgl " alpha-1-1 -filter N
      As you can see, the -cfgl option is between quotes and there is also an additional space character.

      The problem is in the StarteamUpdateCommand class file (also in the trunk version).
      The following line in the createDeleteLocalCommand method
      args.add( "-cfgl " );
      should be replaced with
      args.add( "-cfgl" );
      thus leaving out the additional space character.

      I can provide a patch when necessary.
      See also SCM-309 in which i indicate that i have a patch ready to be able to use promotion states instead of view labels

        Attachments

          Activity

            People

            • Assignee:
              evenisse Emmanuel Venisse
              Reporter:
              jedelbroek Jan Edelbroek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: