-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OriginalDateTimeMetadataProvider unexpected null value #2225
Comments
I do have the same, reproducible problem with newest version of AIO (28.01) and can share a photo causing this problem if needed. |
I did a quick in-place hack to change array_key_exists etc on line 90 to be !empty instead, which allowed me to finish the import. I'd make a PR for it but it doesn't sound like anyone's listening. @EddyXorb if you're interested I'll make one 🎶 but if they don't merge (and it seems they won't merge) you'll be, on your own to fix that line. 🎶 We can hack if we wannu, we can leave old bugs behind 🎶 Ahem, sorry, got a little distracted there. |
Thanks for creating a PR for that. This seems like a reasonable and simple fix. However, another workaround (for others less proficient in these things) is to kill the client-app a couple of times and let nextcloud continue to upload for a while until the bug comes up again. Presumably this works if only a few files have this issue, as it could become cumbersome to proceed in this way. |
I'd like to officially correct the record. My comment above was based on the lack of interaction on this issue report over 3 week's time. However, when I actually created the PR to resolve this, it was merged within a few hours. My thanks to @artonge for the quick work there. Given my positive experience, I may look around for other issues to help out with. Nice job! Only suggestion for the maintainers would be to try to reply to bug reports a little quicker if possible. It seems like there are a lot of them. But I understand the focus on PR over bugs given the current status of the repository. |
…ull. Fixes #2225. Signed-off-by: JS Moore <[email protected]>
Describe the bug
When generating metadata for a file, an unhandled exception is thrown. OriginalDateTimeMetadataProvider.php on line 90 is assuming that because the array key exists, its corresponding value cannot be null, and passes it as arg 2 to dateToTimestamp.
To Reproduce
Steps to reproduce the behavior:
php occ files:scan --generate-metadata --all -v --path '/myuser/files/Photos/AFolder/PXL_20231225_235744352.jpg'
Expected behavior
Metadata is properly generated without any errors.
occ
proceeds on to the next file.Actual behavior
Unhandled exception is thrown, metadata isn't generated, stack trace is printed to console,
occ
exits non-zero.Stack Trace
Additional context
Problem is 100% reproducible Unfortunately due to privacy I cannot share the photo that is causing the problem. Other images are processed just fine.
The text was updated successfully, but these errors were encountered: