Last modified: 2013-12-29 19:25:29 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 T50469, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48469 - Many RDF link tags being added to page (in some cases thousands)
Many RDF link tags being added to page (in some cases thousands)
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-14 20:45 UTC by Jamie Thingelstad
Modified: 2013-12-29 19:25 UTC (History)
1 user (show)

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


Attachments
HTML generated showing the thousands of link tags. (602.32 KB, text/html)
2013-05-14 20:45 UTC, Jamie Thingelstad
Details

Description Jamie Thingelstad 2013-05-14 20:45:03 UTC
Created attachment 12314 [details]
HTML generated showing the thousands of link tags.

I'm using the master branch (current pull) of Semantic Forms on a complicated form at this URL:

http://wiki.planetkubb.com/w/index.php?title=Game:Pfälzer_Kubb_Open_2013_Final_Kubb%27Ings_v._Checkeletti_(Game_2)&action=formedit

when logged in and using edit with form the HTML output has 1,800+ lines of "application/rdf+xml" links like:

<link type="application/rdf+xml" title="Game:Pfälzer Kubb Open 2013 Final Kubb'Ings v. Checkeletti (Game 2)" href="/w/index.php?title=Special:ExportRDF/Game:Pf%C3%A4lzer_Kubb_Open_2013_Final_Kubb%27Ings_v._Checkeletti_(Game_2)&amp;xmlmime=rdf" />

In the example I just pulled via curl there are 1,844 link tags bloating the final HTML output to 616k.
Comment 1 Yaron Koren 2013-05-14 21:35:02 UTC
Yikes! That RDF stuff is weird, but it's not coming from Semantic Forms - I have no idea what's producing it.
Comment 2 Jamie Thingelstad 2013-05-14 22:12:29 UTC
Very weird. Perhaps it's something with Semantic Forms Inputs? I'm using regex validation extensively in that form. The excessive links are not there when the page is viewed, or when source is edited. They are only there with the form is displayed. Must be something to do with either Forms or Form Inputs I would think.
Comment 3 Yaron Koren 2013-05-14 22:42:16 UTC
Try removing the SFI input(s) from that form, then.
Comment 4 Jamie Thingelstad 2013-05-15 01:10:28 UTC
Yeah... no go. I disabled SFI entirely in LocalSettings and the edit page still had thousands of link tags added. Scanning the codebase for "rdf+xml" to see if I can come upon anything.
Comment 5 Jamie Thingelstad 2013-05-15 01:20:44 UTC
I just did a baseline update on all my extensions (groping for straws) but I still have thousands of link rdf+xml tags. I'm on 1.20.3 and I think 1.21 is dropping tomorrow. I'll upgrade and see if this persists, and then debug further if it is.
Comment 6 Jamie Thingelstad 2013-05-15 01:27:29 UTC
Okay, some information. I tracked down what is generating these links. SMW in ParserTextProcessor.php in the getRDFUrl function. I added a debug string to the title and generated the page and got the debug string, so this is the function that is being called 1,000+ times and adding stuff to the page. Looks like this should be moved to SMW bug. Doing that...
Comment 7 Jamie Thingelstad 2013-05-15 01:32:02 UTC

*** This bug has been marked as a duplicate of bug 48486 ***
Comment 8 MWJames 2013-05-15 02:44:37 UTC
Actually this is still a SF bug since it doesn't occur in SMW itself and only in connection with SF [1] moves the link generation to an appropriate place (out of ParserTextProcessor) but it doesn't explain the mass generation for when SF is involved.

PS: The only place where ParserTextProcessor is called is the InternalParseBeforeLinks hook.

[1] https://gerrit.wikimedia.org/r/#/c/63273/
Comment 9 Yaron Koren 2013-12-29 19:25:29 UTC
Judging from that other bug report, it looks like whatever was causing this to happen was changed/fixed on the SMW side, so I'm setting this back to "invalid".

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


Navigation
Links