Last modified: 2014-08-18 20:53:52 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 T71608, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69608 - Exception: Can only construct MonolingualTextValue with a language code of non-zero length
Exception: Can only construct MonolingualTextValue with a language code of no...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-15 14:35 UTC by Aude
Modified: 2014-08-18 20:53 UTC (History)
2 users (show)

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


Attachments

Description Aude 2014-08-15 14:35:02 UTC
such as when requesting http://test.wikidata.org/w/api.php/?action=wbparsevalue&format=json&parser=monolingualtext&values=foo&options=%7B%22valuelang%22%3A%22%22%7D

which happens when entering a value and not yet a language.

2014-08-15 13:08:14 mw1017 testwikidatawiki: [9f4b9093] /w/api.php?action=wbparsevalue&format=json&parser=monolingualtext&values=fd&options=%7B%22valuelang%22%3A%22%22%7D   Exception from line 46 of /usr/local/apache/common-local/php-1.24wmf17/extensions/Wikidata/vendor/data-values/common/src/DataValues/MonolingualTextValue.php: Can only construct MonolingualTextValue with a language code of non-zero length
#0 /usr/local/apache/common-local/php-1.24wmf17/extensions/Wikidata/extensions/Wikibase/lib/includes/parsers/MonolingualTextParser.php(39): DataValues\MonolingualTextValue->__construct('', 'fd')
#1 /usr/local/apache/common-local/php-1.24wmf17/extensions/Wikidata/vendor/data-values/common/src/ValueParsers/StringValueParser.php(51): Wikibase\Parsers\MonolingualTextParser->stringParse('fd')
#2 /usr/local/apache/common-local/php-1.24wmf17/extensions/Wikidata/extensions/Wikibase/repo/includes/api/ParseValue.php(86): ValueParsers\StringValueParser->parse('fd')
#3 /usr/local/apache/common-local/php-1.24wmf17/extensions/Wikidata/extensions/Wikibase/repo/includes/api/ParseValue.php(56): Wikibase\Api\ParseValue->parseValue(Object(Wikibase\Parsers\MonolingualTextParser), 'fd')
#4 /usr/local/apache/common-local/php-1.24wmf17/includes/api/ApiMain.php(907): Wikibase\Api\ParseValue->execute()
#5 /usr/local/apache/common-local/php-1.24wmf17/includes/api/ApiMain.php(363): ApiMain->executeAction()
#6 /usr/local/apache/common-local/php-1.24wmf17/includes/api/ApiMain.php(334): ApiMain->executeActionWithErrorHandling()
#7 /usr/local/apache/common-local/php-1.24wmf17/api.php(85): ApiMain->execute()
#8 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')
#9 {main}
Comment 1 Gerrit Notification Bot 2014-08-15 15:22:17 UTC
Change 154277 had a related patch set uploaded by Aude:
Handle MonolingualTextParser errors for values with language not set

https://gerrit.wikimedia.org/r/154277
Comment 2 Gerrit Notification Bot 2014-08-15 15:23:08 UTC
Change 154279 had a related patch set uploaded by Aude:
Handle MonolingualTextParser errors for values with language not set

https://gerrit.wikimedia.org/r/154279
Comment 3 Gerrit Notification Bot 2014-08-15 23:04:36 UTC
Change 154277 merged by Jeroen De Dauw:
Handle MonolingualTextParser errors for values with language not set

https://gerrit.wikimedia.org/r/154277
Comment 4 Gerrit Notification Bot 2014-08-18 13:50:06 UTC
Change 154279 merged by Aude:
Handle MonolingualTextParser errors for values with language not set

https://gerrit.wikimedia.org/r/154279
Comment 5 Gerrit Notification Bot 2014-08-18 14:03:39 UTC
Change 154813 had a related patch set uploaded by Aude:
Update Wikidata, fix uncaught exception in MonolingualTextParser

https://gerrit.wikimedia.org/r/154813
Comment 6 Gerrit Notification Bot 2014-08-18 14:34:04 UTC
Change 154813 merged by jenkins-bot:
Update Wikidata, fix uncaught exception in MonolingualTextParser

https://gerrit.wikimedia.org/r/154813

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


Navigation
Links