Last modified: 2014-11-19 20:45:48 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 T74912, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72912 - Flow: Score vorbis content gets expanded
Flow: Score vorbis content gets expanded
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-03 19:09 UTC by Quiddity
Modified: 2014-11-19 20:45 UTC (History)
6 users (show)

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


Attachments
HTML in the wikitext edit box (26.11 KB, image/png)
2014-11-13 04:54 UTC, Matthew Flaschen
Details
When bogus wikitext is resaved result is wrong (40.41 KB, image/png)
2014-11-13 04:54 UTC, Matthew Flaschen
Details

Description Quiddity 2014-11-03 19:09:55 UTC
If I paste the short example from [[mw:Extension:Score]]:

<score vorbis="1">\relative c' { f d f a d f e d cis a cis e a g f e }</score>

into a Flow post, save, and then re-edit that post, then it shows all of this in the edit-area:

<score vorbis="1">\relative c' { f d f a d f e d cis a cis e a g f e }</score>
<span></span><div class="mediaContainer" style="position:relative;display:block;width:300px"><audio id="mwe_player_0" style="width:300px" poster="//bits.wikimedia.org/static-1.25wmf6/resources/assets/file-type-icons/fileicon-ogg.png" controls="" preload="none" class="kskin" data-durationhint="11.600453514739" data-disablecontrols="options,timedText"><source src="//upload.wikimedia.org/score/j/q/jqn99bwy8777srpv45hxjoiu24f0636/jqn99bwy.ogg" type="audio/ogg; codecs=&quot;vorbis&quot;"></source>Sorry, your browser either has JavaScript disabled or does not have any supported player.<br>
You can [//upload.wikimedia.org/score/j/q/jqn99bwy8777srpv45hxjoiu24f0636/jqn99bwy.ogg download the clip] or [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download download a player] to play the clip in your browser.</audio></div>


None of that new content should be there.
Comment 1 Matthew Flaschen 2014-11-03 19:18:22 UTC
Do you actually see the raw HTML (i.e. do you actually see the text <span> in the normal view), or is is rendered?
Comment 2 Quiddity 2014-11-03 19:25:07 UTC
(In reply to Matthew Flaschen from comment #1)
> Do you actually see the raw HTML (i.e. do you actually see the text <span>
> in the normal view), or is is rendered?

It looks normal after the first save. 

But if I re-save it, then everything breaks.

test posts (and one unrelated File: test) at: https://www.mediawiki.org/wiki/Topic:S3s627my4r0vumio#flow-post-s5fhw7x6j7xsbrkv
Comment 3 Matthew Flaschen 2014-11-13 04:54:00 UTC
Created attachment 17108 [details]
HTML in the wikitext edit box

Thanks.  I see what you mean now.  Basically, it's not back-converted to wikitext properly.  That means that what should be wikitext in the edit box includes HTML.

When this is resaved, it gives predictably nonsensical results (e.g. treating the HTML5 source tag as the SyntaxHighlight Geshi source tag).
Comment 4 Matthew Flaschen 2014-11-13 04:54:53 UTC
Created attachment 17109 [details]
When bogus wikitext is resaved result is wrong
Comment 5 Matthew Flaschen 2014-11-13 05:02:03 UTC
I tested with http://parsoid-lb.eqiad.wikimedia.org/ (the round-trip form is down, but I could do wikitext -> HTML and HTML -> wikitext), and it works.  So the error seems to be on our side.

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


Navigation
Links