<html>
<head>
<base href="https://bugs.webkit.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - A null compound index value breaks Safari >= 10.1 (and iOS 10.3 beta)"
href="https://bugs.webkit.org/show_bug.cgi?id=170000">170000</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>A null compound index value breaks Safari >= 10.1 (and iOS 10.3 beta)
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari Technology Preview
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebCore Misc.
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>me@caseylink.com
</td>
</tr></table>
<p>
<div>
<pre>Posting this here at the recommendation of @beidson here: <a href="https://github.com/dfahlander/Dexie.js/issues/494">https://github.com/dfahlander/Dexie.js/issues/494</a>
----
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: <a href="https://github.com/Ramblurr/dexie-null-compound-index/blob/master/test-case.html">https://github.com/Ramblurr/dexie-null-compound-index/blob/master/test-case.html</a>
run directly: <a href="https://rawgit.com/Ramblurr/dexie-null-compound-index/master/test-case.html">https://rawgit.com/Ramblurr/dexie-null-compound-index/master/test-case.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>