thiemowmde edited projects, added DataValues, Technical-Debt; removed MediaWiki-extensions-WikibaseRepository.
thiemowmde moved this task from incoming to needs discussion or investigation on the Wikidata board.
thiemowmde triaged this task as "Normal" priority.
thiemowmde added a comment.

The message is from the DecimalValue constructor, which is used in the QuantityValue constructor. This situation can happen when an edit is made via the API, and a quantity is submitted as a floating point number instead of a string. The code in the DecimalValue that converts floats to strings, but does this in a way so it can violate it's own limitations. Basically: The float is converted to a string with 100 decimal places. If the number before the decimal point is longer than 27 characters, the conversion fails with said error message.

This is very closely related to T155910: Erroneous digits in QuantityValue. I already prepared a fix in https://github.com/DataValues/Number/pull/115, which might solve both issues.


TASK DETAIL
https://phabricator.wikimedia.org/T187888

WORKBOARD
https://phabricator.wikimedia.org/project/board/71/

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: thiemowmde
Cc: thiemowmde, Aklapper, hoo, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to