Page MenuHomePhabricator

Preferences return "Invalid raw signature. Check HTML tags." error, when the HTML is alright.
Closed, InvalidPublic

Description

Author: alvareo

Description:
Hi,

I have a problem with entering a signature. The Preferences tell me it's invalid and that it has wrong HTML tags when a sandbox test tells me it's totally valid.

The steps to reproduce are:

  1. Go to the Preferences
  2. Enter:

<span style="background:Black">&nbsp;<span style="color:White">&nbsp;'''≤'''&nbsp;</span><sup>[[User:alvareo|<span style="color:White">&nbsp;alvareo&nbsp;</span>]]</sup><small>[[User_talk:alvareo|<span style="color:White">&nbsp;[talk to me]&nbsp;</span>]]</small><span style="color:White">&nbsp;'''≥'''&nbsp;</span></span>
as a signature.

  1. Click Save, and the named error will show up.

The expected result is having the signature available for me to use.

The actual result is the named error, "Invalid raw signature. Check HTML tags."

Thank you.


Version: unspecified
Severity: minor
URL: http://en.wikipedia.org/wiki/Special:Preferences

Details

Reference
bz16941

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:26 PM
bzimport set Reference to bz16941.
bzimport added a subscriber: Unknown Object (MLST).

Signature length is limited (by default to 255 characters). Your example is longer than that, so it is cut off before all tags are closed.

It would be good if cut-off signatures were detected this and more useful error message ([[MediaWiki:badsiglength]]) was displayed.

Changing to MediaWiki, not a Wikimedia issue.

alvareo wrote:

Is there any way to make the signature limit longer if it's composed majorly by HTML tags?

alvareo wrote:

Is there any way to make the signature limit longer if it's composed majorly by HTML tags?

Is there any way to make the signature limit longer if it's composed majorly by
HTML tags?

I doubt that would be done. It's still a long signature even though it isn't shown.
Note that you can bypass the limit, setting a template substitution as signature.

EN.WP.ST47 wrote:

Closing invalid as the signature is being length-limited, and therefore is not a valid signature.

sumanah wrote:

Alvaro, can you still reproduce this problem?

matmarex subscribed.

Per the comments in 2011 :)

Also, I submitted a patch to hopefully make the length limit more obvious: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/549663