[Webkit-unassigned] [Bug 170000] New: A null compound index value breaks Safari >= 10.1 (and iOS 10.3 beta)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 23 03:12:37 PDT 2017


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

            Bug ID: 170000
           Summary: A null compound index value breaks Safari >= 10.1 (and
                    iOS 10.3 beta)
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: me at caseylink.com

Posting this here at the recommendation of @beidson here: https://github.com/dfahlander/Dexie.js/issues/494

----

If you specify a compound index, and then subsequently attempt to store a record in IDB and the value for that index is null, Safari >= 10.1 blows up with the error message:

"UnknownError – "An unknown error occurred within Indexed Database."

After this point the database is unusable. It still reports it self as open, but any subsequent calls (e.g., adding an item, opening a transaction) result in further errors.

This affects the iOS 10.3 beta as well.

On Chrome and Firefox, and Safari < 10.1 there is no error, and it works as expected.

--

Sorry for not submitting a pure IDB test case, but I'm only familiar with the Dexie API. Hopefully this can help.

== Test Case ==

source: https://github.com/Ramblurr/dexie-null-compound-index/blob/master/test-case.html
run directly: https://rawgit.com/Ramblurr/dexie-null-compound-index/master/test-case.html

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


More information about the webkit-unassigned mailing list