-
Notifications
You must be signed in to change notification settings - Fork 358
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
Wraith fails on any URL containing "path", eg "/some-path" #536
Comments
Paths containing "path" in them break Wraith: bbc/wraith#536 Search API incorrectly returns government-frontend as renderer for travel advice index, this will always give a difference between live and a review app.
See bbc/wraith#536 for detail
Paths containing "path" in them break Wraith: bbc/wraith#536 Search API incorrectly returns government-frontend as renderer for travel advice index, this will always give a difference between live and a review app.
This is an old issue, so you've probably worked around it by now, but just for future reference because I came across it this morning and was a bit stumped. I think it's this line that causes a problem: You can work around it by swapping something like: paths:
some_page: /page?path=xyz to: paths:
some_page:
path: /page?path=xyz |
I guess the ruby code should check |
To match the changes to CaptureOptions. For bbc#536
(This is using Wraith 4.0.1 on Ruby 2.3.1)
Any path in the config that contains the string "path" doesn't load correctly.
Found when trying to do a comparison of the valid URL:
https://www.gov.uk/drug-safety-update/corticosteroids-rare-risk-of-central-serous-chorioretinopathy-with-local-as-well-as-systemic-administration
Wraith was requesting:
https://www.gov.ukpath
It seems to error on anything containing the word "path", eg "/some-path"
Issue checklist:
I have validated my config file against YAML Validator to make sure it is valid YAML.
I have run the
wraith info
command and pasted the output below:wraith info
returns an error:verbose: true
to my config) and pasted the output below:The text was updated successfully, but these errors were encountered: