Last modified: 2012-03-04 05:16:40 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 T30019, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28019 - inputbox with type=commenttitle and page=Special:MyPage loses the input comment heading
inputbox with type=commenttitle and page=Special:MyPage loses the input comme...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-13 00:42 UTC by Lars Aronsson
Modified: 2012-03-04 05:16 UTC (History)
3 users (show)

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


Attachments
Proposed Fix of the bug (982 bytes, patch)
2012-03-04 05:04 UTC, Bagariavivek
Details

Description Lars Aronsson 2011-03-13 00:42:23 UTC
<inputbox>
type=commenttitle
page=Special:MyPage
...
</inputbox>

With the combination above, where Special:MyPage redirects to the user's own page, the text entered into the box does not appear as preloadtitle= in the resulting the URL and thus doesn't show up as the heading for the new message/comment. With page=User:LA2 it works just fine, but now I wanted to create an inputbox that adds a new section to the user's own page, not LA2's user page. Other parameters, such as preload= and editintro= are passed through just fine.

This was tested on sv.wikipedia.org in March 2011.
Comment 1 Lars Aronsson 2011-03-13 14:26:31 UTC
This bug is now also documented under
http://www.mediawiki.org/wiki/Extension:InputBox#Known_bugs
Comment 2 db [inactive,noenotif] 2011-03-14 19:40:55 UTC
related bug 25829
Comment 3 Mark A. Hershberger 2011-06-14 00:22:36 UTC
unassigned Trevor from Inputbox extension.
Comment 4 Bagariavivek 2012-03-03 20:23:50 UTC
(In reply to comment #0)
Special Pages *cannot* be edited.But Special:MyPage will redirect us to the current users page(which can be edited).When we use above InputBoxForm for editing Special:MyPage , it redirects us to another link by a *302* error.During this process the value of preloadtitle is lost.
Comment 5 db [inactive,noenotif] 2012-03-03 21:39:17 UTC
SpecialMypage in SpecialPage.php (core) has a list of "allowedRedirectParams" which contains "preload", but not "preloadtitle".

Adding "preloadtitle" to the list of SpecialMypage and SpecialMytalk would fix this.
Comment 6 Bagariavivek 2012-03-04 05:04:41 UTC
Created attachment 10169 [details]
Proposed Fix of the bug

Added preloadtitle in allowedparaters list of SpecialMyPage and SpecialMyTalk
I guess we have to add few more parameters in the allowedparameters of specialmypage and specialmytalk..which may be causing few more problems somewhere else
Comment 7 Bawolff (Brian Wolff) 2012-03-04 05:16:40 UTC
applied r112967. Thank you for the patch.

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


Navigation
Links