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

-ApiKey on delete command line is not read/sent in 3.5.0-beta #3037

Closed
tkrick opened this Issue Jun 23, 2016 · 0 comments

Comments

Projects
None yet
3 participants
@tkrick

tkrick commented Jun 23, 2016

version that reproes: 3.5.0.1284
version that does not: 3.4.3.855

.\NuGet3.5.0-beta.exe delete CloudBuild 1.0.15 -source https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/tk1466719724/nuget/v3/index.json -ApiKey VSTS

WARNING: No API Key was provided and no API Key could be found for 'https://tktest1.me.tfsallin.net:30443/DefaultCollect
ion/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v2/'. To save an API Key for a source use the 'setApiKey' comm
and.
CloudBuild 1.0.15 will be deleted from the 'https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-
b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v2/'. Would you like to continue? (y/N) Y
WARNING: Deleting CloudBuild 1.0.15 from the 'https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42a
c-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v2/'.
DELETE https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v
2/CloudBuild/1.0.15
Unauthorized https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/n
uget/v2/CloudBuild/1.0.15 798ms
DELETE https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v
2/CloudBuild/1.0.15
BadRequest https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/nug
et/v2/CloudBuild/1.0.15 263ms
Response status code does not indicate success: 400 (Bad Request).

.\nuget34.exe delete CloudBuild 1.0.15 -source https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/tk1466719724/nuget/v3/index.json -ApiKey VSTS

CloudBuild 1.0.15 will be deleted from the 'https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-
b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v2/'. Would you like to continue? (y/N) y
WARNING: Deleting CloudBuild 1.0.15 from the 'https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42a
c-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v2/'.
DELETE https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v
2/CloudBuild/1.0.15
Unauthorized https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/n
uget/v2/CloudBuild/1.0.15 117ms
DELETE https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v
2/CloudBuild/1.0.15
OK https://tktest1.me.tfsallin.net:30443/DefaultCollection/_packaging/05ae42ac-b8c5-4d6e-9f9c-8f261a2a9f2e/nuget/v2/Cl
oudBuild/1.0.15 2641ms
CloudBuild 1.0.15 was deleted successfully.

In the second case X-NuGet-ApiKey: VSTS is sent, and first case it is not, so gets bad request from our service.

@tkrick tkrick changed the title from -ApiKey from command line is not read/sent in 3.5.3-beta to -ApiKey on delete command line is not read/sent in 3.5.3-beta Jun 23, 2016

@tkrick tkrick changed the title from -ApiKey on delete command line is not read/sent in 3.5.3-beta to -ApiKey on delete command line is not read/sent in 3.5.0-beta Jun 23, 2016

@rrelyea rrelyea added this to the 3.5 Beta2 milestone Jun 24, 2016

@rrelyea rrelyea added the Type:Bug label Jun 24, 2016

@rrelyea rrelyea modified the milestones: 3.5 RTM, 3.5 Beta2 Jun 24, 2016

@joelverhagen joelverhagen self-assigned this Jun 28, 2016

joelverhagen added a commit to NuGet/NuGet.Client that referenced this issue Jun 28, 2016

joelverhagen added a commit to NuGet/NuGet.Client that referenced this issue Jun 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment