Last modified: 2014-07-15 01:41:38 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 T64576, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62576 - SemanticForms lies about content model (Title::getContentModel gives wikitext, yet it is json)
SemanticForms lies about content model (Title::getContentModel gives wikitext...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-12 20:01 UTC by Krinkle
Modified: 2014-07-15 01:41 UTC (History)
5 users (show)

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


Attachments

Description Krinkle 2014-03-12 20:01:59 UTC
Clicking "Edit" (VisualEditor) on https://wikitech.wikimedia.org/wiki/Shell_Request/Rxy shows an error from the server about content model json being incompatible.

However VisualEditor shouldn't initialise that far in the first place, we know the content model (conf.wgPageContentModel).
Comment 1 Krinkle 2014-03-12 20:03:49 UTC
Hm... Looks like a bug with Semantic MediaWiki.

It is exporting mw.config wgPageContentModel = 'wikitext', and yet when you really ask it it admits its JSON.

> > mw.config.get( 'wgPageContentModel' );
> < "wikitext"

> click "Edit"
> < AJAX Eror
> {
>   .. Exception Caught: The content format json is not supported by the content model wikitext.
Comment 2 Krinkle 2014-03-12 20:05:27 UTC
OutputPage.php exports:

> 'wgPageContentModel' => $title->getContentModel(),
Comment 3 Yaron Koren 2014-03-13 12:29:34 UTC
Well, "lies" is a strong word. :) What makes you think this problem comes from Semantic Forms? Is it just the fact that the page uses a form?

Also, you wrote, "it admits its JSON", meaning that the page really holds JSON but claims that it's holding wikitext. Isn't the problem the other way around?
Comment 4 Krinkle 2014-03-22 01:39:47 UTC
(In reply to Yaron Koren from comment #3)
> Well, "lies" is a strong word. :) What makes you think this problem comes
> from Semantic Forms?


The wiki uses Semantic MediaWiki, and this is FormEdit-able page (Special:Formedit). That's Semantic Forms, right?

Or is the turning the page itself into semantic data done (json content model) done by another Semantic extension and Semantic Forms only provides the special page and edit button?
Comment 5 Yaron Koren 2014-03-24 11:42:32 UTC
Yes, Semantic Forms only provides the edit button/page - it doesn't affect the actual content page. If any SMW-related extension is causing this error, I would assume it's Semantic MediaWiki itself.
Comment 6 Yaron Koren 2014-07-14 22:57:53 UTC
I'm marking this as "invalid" - I would change the component to Semantic MediaWiki, but that's not longer on Bugzilla. If you want to submit it as an SMW bug, you need to go to the SMW GitHub page.
Comment 7 James Forrester 2014-07-15 01:41:38 UTC
(In reply to Yaron Koren from comment #6)
> I'm marking this as "invalid" - I would change the component to Semantic
> MediaWiki, but that's not longer on Bugzilla. If you want to submit it as an
> SMW bug, you need to go to the SMW GitHub page.

Since the bug was filed it appears the page linked has been converted to actually be wikitext-based – Krinkle, can we leave this closed or do we need to raise a GitHub issue?

(I note that it is actually wikitext, not JSON, content; perhaps us having a year-old version of SMW doesn't help.)

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


Navigation
Links