You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A foodcoop at app.foodcoops.net tries to synchronize articles from the external (Sharedlists) database. It fails for one supplier with the following error message:
An ActiveModel::RangeError occurred in articles#update_synchronized:
6000000000 is out of range for ActiveModel::Type::Integer with limit 4 bytes
app/controllers/articles_controller.rb:194:in `block (2 levels) in update_synchronized'
Looking at the parameters from this request it shows entries like this one:
I have almost no insights into sharedlist yet, but maybe I can help debugging by digging into it a bit ...
So the unit_quantity is stored correctly in the sharedlists db, right? So I guess the bug is somewhere on the foodsoft side synchronizing the articles.
Because in the request params is already the wrong unit_quantity, I guess that the bug must be somewhere before update_synchronized is called. Was the unit_quantity correct in the sync form view? I think that must be the screen that shows the differences of the updated articles ... I'd guess that it's already wrong here?
can you maybe also provide the article details before syncing?
thanks for pinging again! My messy mind completely forgot about it, sorry!
I already managed to reproduce the error in ab1fc34
I'll look into it again!
A foodcoop at app.foodcoops.net tries to synchronize articles from the external (Sharedlists) database. It fails for one supplier with the following error message:
Looking at the parameters from this request it shows entries like this one:
There are others entries which have
unit_quantity"=>"6000000000.0
The XML file from the supplier lists the unit_quantity as
<sve>6</sve>
which is then saved to the Sharedlists database as6.0
.Any idea why this error happened?
The text was updated successfully, but these errors were encountered: