<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9882</bug_id>
          
          <creation_ts>2010-06-08 17:22:42 +0000</creation_ts>
          <short_desc>Behavior when attempting to write data to an objectStore opened as read only unspecified</short_desc>
          <delta_ts>2010-11-08 18:15:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Orlow">jorlow</reporter>
          <assigned_to name="Nikunj Mehta">nikunj.mehta</assigned_to>
          <cc>jonas</cc>
    
    <cc>jorlow</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>sdwilsh</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36051</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-06-08 17:22:42 +0000</bug_when>
    <thetext>When you open an objectStore with a read only mode, any subsequent write operation should probably result in an error.  I don&apos;t see anywhere in the spec that specifically says this or mentions what error code should be used.  Currently in the spec, writing with the noOverwrite flag set causes a CONSTRAINT_ERR, so I&apos;m guessing that&apos;s the best one to go with for this condition as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42281</commentid>
    <comment_count>1</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-11-08 18:14:18 +0000</bug_when>
    <thetext>I introduced a specific READ_ONLY_ERR to cover this. It seems worth having a separate error rather than throwing NOT_ALLOWED_ERR since it&apos;s a very easy mistake to make to forget to specify the optional &apos;mode&apos; parameter when creating a transaction, and so I think it&apos;s worth making this error easy to diagnose.

http://dvcs.w3.org/hg/IndexedDB/rev/0901d0b89904</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42282</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-11-08 18:15:18 +0000</bug_when>
    <thetext>I introduced a specific READ_ONLY_ERR to cover this. It seems worth having a
separate error rather than throwing NOT_ALLOWED_ERR since it&apos;s a very easy
mistake to make to forget to specify the optional &apos;mode&apos; parameter when
creating a transaction, and so I think it&apos;s worth making this error easy to
diagnose.

http://dvcs.w3.org/hg/IndexedDB/rev/0901d0b89904</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>