Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix] on-prem TFS missing collections #453

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShawnMcGough
Copy link

The TfsConnection constructor allows for invalid serviceUrl when using on-prem server. Subsequent commands will report success, even though they fail to do anything.

Testing setup:
On-prem server with a serviceUrl in the following format: http://www.example.com/tfs
PAT token created at the server level ex: http://www.example.com/tfs/_usersSettings/tokens

tfx login
Service URL: {http://www.example.com/tfs}

it should fail here, because there is no collection path, but it does not

enter PAT token and run a command. for example, this one will incorrectly report success.
tfx build tasks upload --task-zip-path {path to task}

With this PR, login will correctly fail if no collection path is provided when using on-prem.a

@ShawnMcGough ShawnMcGough requested review from a team as code owners March 25, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants