Uh oh!
There was an error while loading. Please reload this page.
fix(files): handle multidimensional arrays in scanner - #43794
Conversation
Another potential approach: iterating over each element in the |
This comment was marked as resolved.
This comment was marked as resolved.
lavigne958
left a comment
There was a problem hiding this comment.
I tried this fix on my instance and it works. no more error logs from array_diff_assoc.
artonge
left a comment
There was a problem hiding this comment.
Thanks for the investigation and lengthy explanation. It makes sense IMO. :)
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
ecd52e6 to
e70375bCompare
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as resolved.
This comment was marked as resolved.
icewind1991
commented
Mar 4, 2024
I'm not a fan of round-tripping data through serialize if we can avoid it |
ahcm
commented
Apr 3, 2024
Sorry, if this in the wild, I just skimmed through the code. Is it really worthwhile to only updating the diff? |
This comment was marked as outdated.
This comment was marked as outdated.
DaanSelen
commented
May 2, 2024
Is this patch slated to release for version 30 or any minor patches for 29? |
Uh oh!
There was an error while loading. Please reload this page.
0c018d5 to
6ff46abComparejoshtrichards
commented
May 5, 2024
Reimplemented w/o serialization. Tests reasonably in my test bed. Mostly housekeeping items left.
It'll likely make it into the next monthly maintenance releases for v27/v28/v29 (well before v30 is formally published). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lavigne958
left a comment
There was a problem hiding this comment.
This code has been running on my instance for the past 12h and not a single line of error has raised, it works fine 👍
afa43e0 to
1c515bfComparejoshtrichards
commented
May 8, 2024
/backport to stable29 |
joshtrichards
commented
May 8, 2024
/backport to stable28 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fixes#43408 Signed-off-by: Josh <josh.t.richards@gmail.com>
1c515bf to
3c3e45fCompare
occ files:scan#43408Summary
array_diff_assoc()doesn't support multidimensional arrays on its own (and, when attempted, it internally casts any embedded array elements to strings to attempt to compare them - not only generating warnings like "Array to string conversion" but also then overlooking differences).But sometimes we're passing it a multidimensional array.
I think the reason this became a new problem in v28 is because the
metadata(#40761 / etc) gets embedded as a second level array here. It happens that triggering a scan on an Object Store is one way to trigger this code path just right to see the behavior found in #43408. (In other words: there may be other cases where an n-level array ends up here, but I don't know of one off-hand; and this should accommodate any of them in any case).TODO
Checklist