Page MenuHomePhabricator

mwe-upwiz-license-cc-zero: Parse error at position 28 (<br /> unsupported)
Closed, ResolvedPublic

Description

mwe-upwiz-license-cc-zero: Parse error at position 28 (on beta cluster)

While uploading a file on beta ( http://commons.wikimedia.beta.wmflabs.org/ ) I noticed the CC-0 text is producing an error:

mwe-upwiz-license-cc-zero: Parse error at position 28 in input: Creative Commons CC0 Waiver <br />(release all rights, like public domain: [$2 legal code]

Screenshot attached.

UploadWizard runs out of master on the beta cluster.


Version: master
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=42107

Attached:

Details

Reference
bz47132

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:30 AM
bzimport added projects: UploadWizard, I18n.
bzimport set Reference to bz47132.
hashar created this task.Apr 11 2013, 6:28 PM

Visible enough to give it high prio, though minor issue.

I think this was a transient thing caused by some i18n bug. CC'ing Siebrand and Nemo

Looks similar to bug 43746? Maybe the message is not loaded.

(In reply to comment #3)

Looks similar to bug 43746? Maybe the message is not loaded.

I don't think so, if the message isn't loaded it mostly displays the message key but its showing the message in here. I thought this is part of some i18n issue

It works fine on my local wiki (core not up to date)..

Strangely the license messages have a $2 but no $1

Updated core and now I see the bug :)

mediawiki.jqueryMsg does not support <br />. <br> doesn't cause syntax error but will be escaped.

Possible solutions:

  • Remove <br />
  • Add support for self closing tags

Related URL: https://gerrit.wikimedia.org/r/64551 (Gerrit Change I42fb4a8d86f2955e1daf35f919b7581425cbf4e6)

Removing <br />

Change Merged

Gilles raised the priority of this task from High to Unbreak Now!.Dec 4 2014, 10:21 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to High.Dec 4 2014, 11:22 AM