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

Conversation

@G4m30v3r-p
Copy link
Contributor

@G4m30v3r-p G4m30v3r-p commented Aug 29, 2018

What does this PR do?

The TP field validation currently requires httpBypassFqdn to start with http:// or https://, but the field is an FQDN not a URL. This PR fixes that form validation to verify it's an FQDN.

Fixes #2768

Which TC components are affected by this PR?

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

What is the best way to verify this PR?

Add a bypass FQDN to a http delivery service.

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

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.

the new form validation works

@rawlinp rawlinp merged commit 5bd10a7 into apache:master Aug 29, 2018
@rawlinp rawlinp added bug something isn't working as intended Traffic Portal v1 related to Traffic Portal version 1 labels Aug 29, 2018
@dangogh
Copy link
Member

dangogh commented Aug 29, 2018

@saoyag001 @rawlinp for future PRs, can you describe the change in the title rather than the issue # ? Note the issue in the description as you've done, but give the title something that'll be meaningful without having to look up the issue a year down the road

@rawlinp rawlinp changed the title 2768 fix Fix TP Delivery Service form field validation for httpBypassFqdn Aug 29, 2018
@rawlinp
Copy link
Contributor

rawlinp commented Aug 29, 2018

+1, edited the title and description to be more descriptive of the issue.

@G4m30v3r-p
Copy link
Contributor Author

Tested in staging. Works as designed.

@G4m30v3r-p G4m30v3r-p deleted the 2768 branch September 7, 2018 20:16
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 Portal v1 related to Traffic Portal version 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using bypass fqdn option on a delivery service requires http(s) in the form field

3 participants