[Webkit-unassigned] [Bug 185869] New: IndexedDB: breaks if binary data (Uint8Array) and autoIncrement key in store

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 22 08:24:35 PDT 2018


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

            Bug ID: 185869
           Summary: IndexedDB: breaks if binary data (Uint8Array) and
                    autoIncrement key in store
           Product: WebKit
           Version: Safari 11
          Hardware: Macintosh
                OS: macOS 10.13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: maxime.rety at gmail.com

Created attachment 340983

  --> https://bugs.webkit.org/attachment.cgi?id=340983&action=review

Test case

There's a bug in Safari 11.1 when you try to add a record with binary data (Uint8Array) into an indexedDB store having an autoIncrement key.

The triggered error is "UnknownError: An internal error was encountered in the Indexed Database server", and then the whole database is broken and can't be reopened/reused.

This issue neither happens if you have binary data and a store without autoIncrement, nor non-binary data and a store with autoIncrement. Only having both is an issue.

Breaks (at least) on Safari Version 11.1 (13605.1.33.1.4) on macOS High Sierra 10.13.4.

Full test case: https://gist.github.com/maximerety/2332ed4660652f57ef6e12e3194e28e4

Related issue: https://github.com/dfahlander/Dexie.js/issues/656

-- 
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/20180522/e3bffb48/attachment-0001.html>


More information about the webkit-unassigned mailing list