Links don't reflect target existence (EasyTimeline)
OpenPublic

Description

Author: xmlizer

Description:
in easyTimeline a link like [[TotoX]] (which do not exists) appear as if it
exists in the wiki


Version: unspecified
Severity: enhancement

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz4.
bzimport created this task.Via LegacyAug 10 2004, 4:27 PM
brion added a comment.Via ConduitAug 13 2004, 11:50 PM

The bulk of EasyTimeline is an external Perl program; to check for the existence
of links it would have to communicate back to PHP. This could be done over
stdin/stdout, perhaps.

siebrand added a comment.Via ConduitAug 13 2008, 11:49 AM

Assigned to extension developer.

bzimport added a comment.Via ConduitJul 24 2009, 1:49 PM

happy.melon.wiki wrote:

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

Dereckson added a comment.Via ConduitJan 17 2013, 2:40 PM

[ Assignee reseted by timeout. Marking the bug as easy. ]

matmarex added a comment.Via ConduitJan 17 2013, 2:53 PM

This isn't easy. The timelines are generated by a 4000-line perl script, which doesn't communicate with MW apart from taking command-line arguments, so it has no way of knowing whether those pages exist.

To fix this, we'd have to implement either interprocess communication between these two, or some sort of two-phase processing.

bzimport added a comment.Via ConduitJan 17 2013, 4:06 PM

xmlizer wrote:

May be the two phase processing with a link post-processing would do the trick and would be easily generalized

MZMcBride added a comment.Via ConduitJul 30 2013, 4:21 AM

(In reply to comment #5)

This isn't easy. The timelines are generated by a 4000-line perl script,
which doesn't communicate with MW apart from taking command-line arguments, so
it has no way of knowing whether those pages exist.

Out of curiosity, can you estimate how much time would be required to rewrite this script in PHP? Ten hours? Fifty hours?

And somewhat tangentially: would a rewritten script in PHP help resolve this bug?

matmarex added a comment.Via ConduitAug 1 2013, 5:49 PM

(In reply to comment #7)

Out of curiosity, can you estimate how much time would be required to rewrite
this script in PHP? Ten hours? Fifty hours?

A man-week or two seems reasonable, but I don't really know the extension well enough to judge this accurately. It also depends on how much rewriting you wanna do (one could try to get rid of the [[Ploticus]] program it uses).

And somewhat tangentially: would a rewritten script in PHP help resolve this
bug?

It would at least avoid the issues I outlined in comment 5.

gerritbot added a comment.Via ConduitApr 28 2014, 2:57 AM

Change 130027 had a related patch set uploaded by Gerrit Patch Uploader:
Make broken wikilinks in timelines red

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

Add Comment