[Webkit-unassigned] [Bug 174621] IndexedDB: fails to open database after restart [wincairo]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 18 03:18:23 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=174621

--- Comment #2 from isaac+webkit at devinesystems.co.nz ---
Stepping through the debugger, using my application code (which is similar to the example above, except that the datastore is called 'events' and the keypath is 'eventid'. 

It looks like it fails in WebCore\Modules\indexeddb\server\IDSerialization.cpp line 72, in deserializeIDBKeyPath.

This is because decoder->decodeEnum("type") returns false.

Investigating even further I stepped through the KeyedDecoder::decoder constructor and it failed to correctly parse the provided data as a binary plist.

However copying the data from the debugger and providing it to plutil, verified that the plist was valid.

For reference the hex (from the debugger) is the following:  

62 70 6c 69 73 74 30 30 d2 01 02 03 04 54 74 79 70 65 56 73 74 72 69 6e 67 10 01 57 65 76 65 6e 74 49 64 08 0d 12 19 1b 00 00 00 00 00 00 01 01 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 23

After using a hex editor to place that in a file, then using plutil -lint it returns:
keypath.plist: OK

And using plutil -p returns:
{
  "type" => 1
  "string" => "eventId"
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170718/f3354549/attachment.html>


More information about the webkit-unassigned mailing list