Last modified: 2014-11-19 12:52: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 T74124, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72124 - Calling mw.wikibase.entity.formatPropertyValues on Property fails with wikibase-error-invalid-entity-id
Calling mw.wikibase.entity.formatPropertyValues on Property fails with wikiba...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
master
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks: 49554
  Show dependency treegraph
 
Reported: 2014-10-16 09:38 UTC by snaevar
Modified: 2014-11-19 12:52 UTC (History)
4 users (show)

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


Attachments

Description snaevar 2014-10-16 09:38:32 UTC
mw.wikibase.getEntityObject(Q161192) gives an nil as an output on wikidata.org, even though visiting that item [[d:Q161192]] does show up with an result.

This is an error on [[d:Wikidata:List of properties/Works]], and the cause behind the single invalid ID error on that page.
Comment 1 Marius Hoch 2014-10-16 22:57:17 UTC
The actual problem is something like:

mw.log(mw.wikibase.getEntityObject('P447'):formatPropertyValues('P1'))
The ID entered is unknown to the system. Please use a valid entity ID.



The example given above works, btw:

mw.log(mw.wikibase.getEntityObject('Q161192'):getLabel())
007 Legends
Comment 2 Marius Hoch 2014-10-17 00:25:10 UTC
I had another look, the thing seen here was simply that the template call {{List of properties/Row|id=444|example-subject=Q161192|example-object=7.0/10}} passed "7.0/10" as entity id, which is clearly an invalid value.

But still there's the other bug I discovered...
Comment 3 Gerrit Notification Bot 2014-11-01 02:19:27 UTC
Change 170504 had a related patch set uploaded by Hoo man:
Make mw.wikibase.entity.formatPropertyValues work for non-items

https://gerrit.wikimedia.org/r/170504
Comment 4 Gerrit Notification Bot 2014-11-19 12:41:53 UTC
Change 170504 merged by jenkins-bot:
Make mw.wikibase.entity.formatPropertyValues work for non-items

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

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


Navigation
Links