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

Fix ordering of DS matchlists to match the Perl#3066

Merged
dneuman64 merged 1 commit into
apache:masterfrom
rawlinp:fix-matchlist-ordering
Nov 29, 2018
Merged

Fix ordering of DS matchlists to match the Perl#3066
dneuman64 merged 1 commit into
apache:masterfrom
rawlinp:fix-matchlist-ordering

Conversation

@rawlinp
Copy link
Copy Markdown
Contributor

@rawlinp rawlinp commented Nov 29, 2018

What does this PR do?

The DS matchlist needs to be ordered by the set_number just like it was
done in the Perl. There are clients that depend on that specific
ordering. For example, Traffic Portal uses the first exampleURL to create
the hostName field of an "add cert to DS" request. Since the exampleURLs
are created from the DS's matchlist, this can cause the cert request to
contain an alias which makes ORT unhappy.

Which TC components are affected by this PR?

  • Documentation
  • Grove
  • Traffic Analytics
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault
  • Other _________

What is the best way to verify this PR?

Run the unit tests, make sure they pass.
Create a DSes of type HTTP and DNS and add HOST_REGEXP aliases to them. Verify that the <routing_name>.<xml_id>.<cdn_domain> fqdn(s) are at the top of the list of the DS's example URLs.

Check all that apply

  • This PR includes tests
  • This PR includes documentation updates
  • This PR includes an update to CHANGELOG.md
  • This PR includes all required license headers
  • This PR includes a database migration (ensure that migration sequence is correct)
  • This PR fixes a serious security flaw. Read more: www.apache.org/security

The DS matchlist needs to be ordered by the set_number just like it was
done in the Perl. There are clients that depend on that specific
ordering, e.g. Traffic Portal which uses the first exampleURL to create
the hostName field of an "add cert to DS" request.
@rawlinp rawlinp added bug something isn't working as intended Traffic Ops related to Traffic Ops labels Nov 29, 2018
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Nov 29, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2851/
Test PASSed.

@dneuman64 dneuman64 self-assigned this Nov 29, 2018
@dneuman64
Copy link
Copy Markdown
Contributor

❤️ for tests

@dneuman64 dneuman64 merged commit 53e9e32 into apache:master Nov 29, 2018
@rawlinp rawlinp deleted the fix-matchlist-ordering branch November 29, 2018 19:00
rawlinp added a commit to rawlinp/trafficcontrol that referenced this pull request Nov 29, 2018
The DS matchlist needs to be ordered by the set_number just like it was
done in the Perl. There are clients that depend on that specific
ordering, e.g. Traffic Portal which uses the first exampleURL to create
the hostName field of an "add cert to DS" request.

(cherry picked from commit 53e9e32)
dg4prez pushed a commit that referenced this pull request Nov 29, 2018
The DS matchlist needs to be ordered by the set_number just like it was
done in the Perl. There are clients that depend on that specific
ordering, e.g. Traffic Portal which uses the first exampleURL to create
the hostName field of an "add cert to DS" request.

(cherry picked from commit 53e9e32)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants