config: remove trailing slashes from URLs
ClosedPublic

Authored by kparal on Jul 2 2015, 11:40 AM.

Details

Summary

This fixes double-slash issues in URLs served over werkzeug (used inside
Flask).

Test Plan

test suite works, I also ran rpmlint and upgradepath

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to config: remove trailing slashes from URLs.Jul 2 2015, 11:40 AM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: jskladan, tflink, mkrizek.
tflink accepted this revision.Jul 7 2015, 3:32 AM

Overall, looks good to me. Listed some thoughts on the comments in the example yaml but I'm not terribly attached to the changes - either way is fine.

conf/taskotron.yaml.example
58–59

I'm not sure this has to be after every entry. I also think that changing the warning to something along the lines of "Trailing slashes at the end of URLs will lead to double slashes when rendered and not all application servers handle that gracefully" would be more precise than "don't do this!" written before every entry.

This revision is now accepted and ready to land.Jul 7 2015, 3:32 AM
kparal added inline comments.Jul 7 2015, 10:05 AM
conf/taskotron.yaml.example
58–59

I have added a longer explanation under the Resources section, so people read the whole config file, they will find it.

I'd rather keep the short note alongside every affected item, because it's very easy to overlook this and you don't always read the whole config file. And if you don't know about this issue, it might take you quite some time to figure out.

This revision was automatically updated to reflect the committed changes.