Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Fixed GET api/3.1/cdns/routing endpoint to avoid incorrect success response (return all zeros) #5709

Merged
zrhoffman merged 4 commits intoapache:masterfrom
rimashah25:bugfix/CDN-12487
Apr 5, 2021
Merged

Fixed GET api/3.1/cdns/routing endpoint to avoid incorrect success response (return all zeros) #5709
zrhoffman merged 4 commits intoapache:masterfrom
rimashah25:bugfix/CDN-12487

Conversation

@rimashah25
Copy link
Contributor

@rimashah25 rimashah25 commented Apr 2, 2021

What does this PR (Pull Request) do?

  • This PR fixes a bug found during ATC v5.1 Release Validation

Which Traffic Control components are affected by this PR?

  • Traffic Ops
  • Traffic Router

What is the best way to verify this PR?

Test GET API endpoint: api/3.1/cdns/routing against CIAB or local TR and if TR is not up an running or has any other issue, one should see the right error response and http code.

If this is a bug fix, what versions of Traffic Control are affected?

The following criteria are ALL met by this PR

  • This PR does not includes tests.
  • I have explained why documentation is unnecessary
  • This PR includes an update to CHANGELOG.md
  • This PR includes any and all required license headers
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

Logic didn't change, hence there was no test or documentation added.

@rimashah25 rimashah25 marked this pull request as ready for review April 2, 2021 19:29
@rimashah25 rimashah25 requested a review from rawlinp April 2, 2021 20:15
@mitchell852 mitchell852 added Traffic Ops related to Traffic Ops Traffic Router related to Traffic Router bug something isn't working as intended labels Apr 5, 2021
@mitchell852 mitchell852 added this to the 5.1.2 milestone Apr 5, 2021
Copy link
Contributor

@mattjackson220 mattjackson220 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! tests pass and it should fix the issue! nice!

Copy link
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed GET api/3.1/cdns/routing endpoint

Since it gets written to the git history, would you please edit the title to describe what issue with the /api/3.1/cdns/routing endpoint is fixed by this PR?

Copy link
Contributor

@rawlinp rawlinp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once more details are included in the title as @zrhoffman suggests.

@rimashah25 rimashah25 changed the title Fixed GET api/3.1/cdns/routing endpoint Fixed GET api/3.1/cdns/routing endpoint to avoid incorrect success response. Apr 5, 2021
@rimashah25 rimashah25 changed the title Fixed GET api/3.1/cdns/routing endpoint to avoid incorrect success response. Fixed GET api/3.1/cdns/routing endpoint to avoid incorrect success response Apr 5, 2021
@rimashah25 rimashah25 changed the title Fixed GET api/3.1/cdns/routing endpoint to avoid incorrect success response Fixed GET api/3.1/cdns/routing endpoint to avoid incorrect success response (return all zeros) Apr 5, 2021
@zrhoffman zrhoffman merged commit b31db78 into apache:master Apr 5, 2021
ocket8888 pushed a commit that referenced this pull request Apr 7, 2021
…sponse (return all zeros) (#5709)

* Added debug statements

* Removed debug fmt statements and updated the return error as it was returning incorrect err value.

* Updated TR's stat tracker to include long int
Update CHANGELOG.md
Removed unnecessary new lines

* Updated TR's stat tracker to include long int-1

(cherry picked from commit b31db78)
@rimashah25 rimashah25 deleted the bugfix/CDN-12487 branch April 8, 2021 19:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug something isn't working as intended Traffic Ops related to Traffic Ops Traffic Router related to Traffic Router

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants