Last modified: 2012-04-12 13:56:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29668, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27668 - Manual account creation through e-mail results in bad link (French).
Manual account creation through e-mail results in bad link (French).
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Email (Other open bugs)
1.16.x
All All
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://peterdeli.com/uni/wiki/index.p...
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-23 21:37 UTC by pdeli
Modified: 2012-04-12 13:56 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
append a space after URL when sending external mails (900 bytes, patch)
2011-02-23 22:00 UTC, Antoine "hashar" Musso (WMF)
Details

Description pdeli 2011-02-23 21:37:44 UTC
Dear MediaWiki developer team,

For various reasons I am creating manually the accounts of the people who access a wiki on my site. Everything works fine. When I click "par courriel" (via e-mail), the mail is sent to the address of the intended person, however, the latter receives something like this:

QUOTE

Quelqu’un a créé un compte pour votre adresse de courriel sur My Wiki (http://peterdeli.com/uni/wiki/index.php) intitulé « ******** », avec le mot de passe « ******* ».
Vous devriez ouvrir une session et modifier dès à présent votre mot de passe.

Ignorez ce message si ce compte a été créé par erreur.

UNQUOTE

This is not rendered here, but the link is clickable, however, unfortunately, the closing parenthesis is taken into the link thus making the following in the URL field in the default web browser of the user:

http://peterdeli.com/uni/wiki/index.php%29

As you can see, the parenthesis is coded into the link leading to a "404 Not Found".

I am not sure whether the problem persists if the language is changed, however. I haven't tested it yet.

Hoping it helps to improve MediaWiki, I remain,

Yours faithfully,
Peter Deli

++++
Comment 1 Antoine "hashar" Musso (WMF) 2011-02-23 21:49:08 UTC
Which email client do you use?

Note: IIRC we send such emails in plain text, hence the <a> is rendered by the mail user agent. Some implementations might just end the link at the first white space encountered.

Possible way to fix it would be to add an extra space after the URL to prevent bad parsing from the clients.
Comment 2 Antoine "hashar" Musso (WMF) 2011-02-23 22:00:37 UTC
Created attachment 8201 [details]
append a space after URL when sending external mails

Attached patch adds a space after the URL for any messages using the LoginForm::mailPasswordInternal() method.
Comment 3 Antoine "hashar" Musso (WMF) 2011-02-23 22:01:16 UTC
+keywords
Not blocking 1.17 since it is a user side software issue.
Comment 4 pdeli 2011-02-24 18:29:39 UTC
Hello Ashar,

E-mail client is web-based and called Sun Convergence (provided by Sun Microsystems). It seems to be written in Java.

I would be very happy to fix the problem myself by adding the required space between the end of the URL and the closing parenthesis if only I knew how...

I didn't find any mention of a possibility of editing the text. I thought it was hardcoded.

Best regards,
Peter Deli

++++

(In reply to comment #1)
> Which email client do you use?
> 
> Note: IIRC we send such emails in plain text, hence the <a> is rendered by the
> mail user agent. Some implementations might just end the link at the first
> white space encountered.
> 
> Possible way to fix it would be to add an extra space after the URL to prevent
> bad parsing from the clients.
Comment 5 Antoine "hashar" Musso (WMF) 2011-02-24 20:52:52 UTC
Peter,
I have talked about this issue with other developers and, since it is an upstream issue (aka in the mail client), I am not willing to implements a workaround in MediaWiki code (inserting a space).

A workaround is to edit the createaccount-text MediaWiki message and add a space after the field replaced by the url ($4). In your case:

Edit:
http://peterdeli.com/uni/wiki/index.php?title=MediaWiki:Createaccount-text

At:
... adresse de courriel sur My Wiki ($4) intitué ...

Add a space after $4:
... adresse de courriel sur My Wiki ($4 ) intitué ...

Would solve the issue if your users mostly use the Sun Convergence mail client. You, or the user, might want to report the issue to Sun.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links