Closed Bug 1137162 Opened 11 years ago Closed 11 years ago

The regex for TinderboxPrint links should match even when there are spaces in the title/name

Categories

(Tree Management :: Treeherder: Data Ingestion, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

Broken out from bug 1124799 comment 6. This regex: RE_LINK_HTML = re.compile( (r"((?P<title>[A-Za-z/\.0-9\-_]+): )?" r"<a .*href=['\"](?P<url>http(s)?://.+)['\"].*>(?P<value>.+)</a>") ) Doesn't match: TinderboxPrint: hazard results: https://ftp-ssl.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-central-linux64-br-haz/20150226025813 Due to the space in 'hazard results'. I think it should.
Comment 0 should have referred to RE_LINK_TEXT, but the same issue affects both it and RE_LINK_HTML, so I'll fix both anyway :-)
Attachment #8569836 - Flags: review?(cdawson)
Sorry for the delay. I will review this tomorrow.
Attachment #8569836 - Flags: review?(cdawson) → review+
Commit pushed to master at https://github.com/mozilla/treeherder-service https://github.com/mozilla/treeherder-service/commit/8d156fd9b4edeacab840aac76dad6e0d7eff9a8b Bug 1137162 - Allow spaces in TinderboxPrint link titles Currently if a TinderboxPrint line contains a space in the link title, eg in 'hazard results' here: TinderboxPrint: hazard results: https://ftp-ssl.mozilla.org/... ...then we ingest it as content_type 'raw_html' rather than 'link'.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: