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

Maestro logs that VSTS build queueing was successful even when sign-in failed #82

Open
naamunds opened this issue Oct 5, 2016 · 1 comment

Comments

@naamunds
Copy link
Member

naamunds commented Oct 5, 2016

Steps to reproduce the issue

  1. Run the Maestro WebAPI app without valid VSO credentials (e.g. with the VsoUser and VsoPassword app settings empty).
  2. Send an HTTP request to Maestro that represents a commit-pushed event which triggers an action in subscriptions.json and thus attempts to queue a build.

Expected behavior

Maestro logs a message saying that the build was not successfully queued due to invalid credentials.

Actual behavior

Maestro logs "Successfully queued VSO build."

@naamunds
Copy link
Member Author

naamunds commented Oct 5, 2016

The Maestro code currently checks that the HTTP response from VSO has a success status code; in the case where the credentials were invalid, the HTTP response has a 203 status (which is considered successful), and its content appears to be a sign-in page.

A possible fix is to parse the content and look for “Sign In” or some other indicative string. Or, perhaps the 203 status code is specific to the invalid credential case, but I’m not sure we should assume that without further investigation.

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

No branches or pull requests

1 participant