Last modified: 2014-02-04 18:11:47 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 T62816, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60816 - Flow: ParsoidUtils exception "ID XXX already defined"
Flow: ParsoidUtils exception "ID XXX already defined"
Status: RESOLVED DUPLICATE of bug 60785
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-04 06:43 UTC by spage
Modified: 2014-02-04 18:11 UTC (History)
7 users (show)

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


Attachments

Description spage 2014-02-04 06:43:13 UTC
I saw this in exception.log:
  2014-02-03 21:38:32 mw1132 enwiki: [89292370] /w/api.php   Exception from line 208 of /usr/local/apache/common-local/php-1.23wmf11/extensions/Flow/includes/ParsoidUtils.php: ID searchbox already defined

Maybe the HTML of the templates we added on enwiki today had two search boxes. pandiculation, do you recall seeing any errors?

You can reproduce by trying to add a post with
  <span id="FLOW">first one</span>
  <span id="FLOW">same ID</span>

two identical IDs is "illegal" HTML, so Parsoid rejects it. That's technically correct, but you can add the same wikitext without complaint to a regular page, so maybe this is a Parsoid bug and there should be some way to get Parsoid to be more relaxed.

Clicking Preview gives me
  An unexpected error occurred.
(seems like another bug this should include the error message.)
Clicking Reply gives me a more helpful
  An error occurred.
  The error message received was: Exception Caught: ID searchbox already defined

FWIW invoking Parsoid from the command line with this HTML: 
  curl --dump-header - \
    -d 'wt=<span id="FLOW">first one</span> <span id="FLOW">same ID</span>'\
    -d 'body=1'  localhost:8000/localhost/Main_Page

doesn't report any errors or exceptions.


Here's the rest of the log

#0 /usr/local/apache/common-local/php-1.23wmf11/extensions/Flow/includes/ParsoidUtils.php(108): Flow\ParsoidUtils::createDOM('<!DOCTYPE html>...')
#1 /usr/local/apache/common-local/php-1.23wmf11/extensions/Flow/includes/ParsoidUtils.php(51): Flow\ParsoidUtils::parsoid('wikitext', 'html', '{{Flow-enabled}...', Object(Title))
#2 /usr/local/apache/common-local/php-1.23wmf11/extensions/Flow/includes/api/ApiParsoidUtilsFlow.php(13): Flow\ParsoidUtils::convert('wikitext', 'html', '{{Flow-enabled}...', Object(Title))
#3 /usr/local/apache/common-local/php-1.23wmf11/includes/api/ApiMain.php(861): ApiParsoidUtilsFlow->execute()
#4 /usr/local/apache/common-local/php-1.23wmf11/includes/api/ApiMain.php(362): ApiMain->executeAction()
#5 /usr/local/apache/common-local/php-1.23wmf11/includes/api/ApiMain.php(333): ApiMain->executeActionWithErrorHandling()
#6 /usr/local/apache/common-local/php-1.23wmf11/api.php(76): ApiMain->execute()
#7 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')
#8 {main}
Comment 1 Quiddity 2014-02-04 06:50:07 UTC
(In reply to comment #0)
> pandiculation, do you recall seeing any errors?

I submitted that as bug 60785
Comment 2 Erik Bernhardson 2014-02-04 18:11:47 UTC
This is the underlying exception caused by the error in 60785

*** This bug has been marked as a duplicate of bug 60785 ***

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


Navigation
Links