microsoft / tfs-cli

Cross-platform CLI for Microsoft Team Foundation Server and Visual Studio Team Services
MIT License
371 stars 131 forks source link

login service-url parameter rejects trailing slash #131

Open daughey opened 8 years ago

daughey commented 8 years ago

When logging in using a trailing slash on the service-url parameter (like this) tfx login --auth-type basic --service-url https://fabrikam.visualstudio.com/DefaultCollection/

I get the error:

Error: Invalid service url - path is too long. A service URL should include the account/application URL and the collecti
on, e.g. https://fabrikam.visualstudio.com/DefaultCollection or http://tfs-server:8080/tfs/DefaultCollection

This is a problem when trying to automate it from the TFS Release or Build process because the $(System.TeamFoundationCollectionUri) variable includes a trailing slash.

Could tfx be updated to accept the trailing slash?

JohannBlais commented 6 years ago

I have the same issue :/