plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
Errors parsing JSON for EXIF in Gallery  (#12002)
Issue

Uploading some photo's, results in an error like this:

Could not parse JSON data for EXIF in Photo 'untitled' (wydQWkJxDsyJ_tM1HC-wtg): > '"' expected, at character offset 401 ["4,"MIMEType":"image/..."] at > /data/wre/prereqs/lib/perl5/site_perl/5.10.0/JSON.pm line 154

With many photo's the EXIF data is not coded well as JSON string. An example is the BrightnessValue. This can be a negative value, e.g. -0.4 and therefore the value should be quoted, but is not. Like so:

"BitsPerSample":8,"BrightnessValue":-0,4,"MIMEType":"image/jpeg"

I found this bug, while working in a slightly older version, 7.8.16, but since this bug is nog reported yet, I suppose it's also there in the most recent stable and beta. If not already fixed next week, by someone else, I'll do some additional testen.

Solution Summary
Comments
perlDreamer
0
1/10/2011 1:01 pm
Can you please post a photo with the bad EXIF data?
perlDreamer
0
1/10/2011 1:06 pm
Also, this is probably a JSON encoder bug, where it's localizing the number instead of converting it to a valid number format.
perlDreamer
0
1/10/2011 3:06 pm
Added an eval around the JSON serialization as a stop-gap measure

Fixed in 7.9.20 (88c6c32)
Fixed in 7.10.7 (a0119e9e)
perlDreamer
0
1/10/2011 3:17 pm
What versions of JSON and JSON::XS are you using, Arjan?
Details
Ticket Status Resolved  
Rating0.0 
Submitted Byarjan 
Date Submitted2010-12-22 
Assigned To unassigned  
Date Assigned2023-05-30 
Assigned By 
Severity Cosmetic (misspelling, formatting problems)  
What's the bug in? WebGUI Stable  
WebGUI / WRE Version 7.8.16  
URLuse/bugs/tracker/12002
Keywords
Ticket History
2/2/2011
7:13 PM
Resolved perlDreamer
1/10/2011
9:17 PM
Feedback Requested perlDreamer
1/10/2011
7:06 PM
Pending perlDreamer
1/10/2011
7:01 PM
Feedback Requested perlDreamer
12/22/2010
8:33 AM
Ticket created arjan
© 2023 Plain Black Corporation | All Rights Reserved