Page MenuHomePhabricator

Don't add empty parameters to citation in extension
Closed, ResolvedPublic1 Estimated Story Points

Description

Some citoid citations have empty strings, particularily in the author field. The extension should not add these as parameters.

To test, try adding:

http://foodcoop.com/go.php?id=101

In the extension.

https://en.wikipedia.org/w/index.php?title=User:Josve05a/sandbox&oldid=659359728

Citing adding empty parameters causes template errors.

Event Timeline

Josve05a raised the priority of this task from to Needs Triage.
Josve05a updated the task description. (Show Details)
Josve05a added a project: Citoid.
Josve05a subscribed.
Josve05a renamed this task from Citing http://foodcoop.com/go.php?id=101 adds empty |last = causing red error. to Citing specific url's adds empty |last = causing red error..Apr 27 2015, 8:55 AM
Josve05a set Security to None.
Josve05a moved this task from Site specific issues to Backlog on the Citoid board.

By default, we put author values that can't be split into two strings as the first element in the array; doing it the other way around could potentially fix this but while it might improve things for en it might worsen things for other languages; not sure exactly the right thing to do here.

Mvolz renamed this task from Citing specific url's adds empty |last = causing red error. to Don't add empty parameters to citation in extension.Jul 12 2015, 6:40 PM
Mvolz claimed this task.
Mvolz updated the task description. (Show Details)
Mvolz moved this task from Site specific issues to Service on the Citoid board.

Change 224389 had a related patch set uploaded (by Mvolz):
Stop adding empty strings as params

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

Mvolz updated the task description. (Show Details)

Change 224389 merged by jenkins-bot:
Stop adding empty strings as params

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

Mvolz removed a project: Patch-For-Review.