Page MenuHomePhabricator

implement URL data type in the backend
Closed, ResolvedPublic

Description

Implement the URL datatype.

IMPORTANT: Make sure it works nicely with abusefilter and url blacklist.

Version: master
Severity: enhancement

Details

Reference
bz49306

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone
ResolvedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 1:59 AM
bzimport set Reference to bz49306.
bzimport added a subscriber: Unknown Object (MLST).

...also, URLs need to be checked against wfUrlProtocols(). Check what the Sanitizer class does to keep evil links out.

Requirements:

  • Validate against wfUrlProtocols() on input
  • Sanitize using wfUrlProtocols() etc on output
  • Register as external link in ParserOutput
  • Make sure it works as expected with SpamBlacklist
  • Make sure it works as expected with AbuseFilter

Change 73993 had a related patch set uploaded by Daniel Kinzler:
(bug 49306) introducing URL data type

https://gerrit.wikimedia.org/r/73993

Change 74276 had a related patch set uploaded by Daniel Werner:
(bug 49306) Support for nicer handling of URL data type values in the frontend

https://gerrit.wikimedia.org/r/74276

Change 74277 had a related patch set uploaded by Daniel Werner:
(bug 49306) valueview Expert for handling values for URL data type

https://gerrit.wikimedia.org/r/74277

Change 74276 abandoned by Daniel Werner:
(bug 49306) Support for nicer handling of URL data type values in the frontend

https://gerrit.wikimedia.org/r/74276

Change 73993 merged by Daniel Werner:
(bug 49306) introducing URL data type

https://gerrit.wikimedia.org/r/73993

Change 74394 had a related patch set uploaded by Daniel Kinzler:
Introducing ReferencedUrlFinder

https://gerrit.wikimedia.org/r/74394

Patches I2d26307ad4 and Ia040b891e05 (when merged) complete the backend support for the URL data type, I9ab14abc adds (basic) UI support. Together, these changes should be enough to close this ticket (even though a dedicated backend formatter is still pending).

However, for deployment, we are also blocked on bug 51621: deploying without the SpamBlacklist picking up those links would be quite bad.

Change 74394 merged by jenkins-bot:
(bug 49306) Introducing ReferencedUrlFinder

https://gerrit.wikimedia.org/r/74394

  • Bug 48850 has been marked as a duplicate of this bug. ***