https://dev.arvados.org/https://dev.arvados.org/favicon.ico?15576888422019-03-27T12:43:59ZArvadosArvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=728042019-03-27T12:43:59ZChrystian Klingenberg
<ul><li><strong>File</strong> <a href="/attachments/2375">properties.mp4</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2375/properties.mp4">properties.mp4</a> added</li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/72804/diff?detail_id=69767">diff</a>)</li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=728112019-03-27T13:15:35ZJan Kuentzer
<ul></ul><p>The same is true for deleting properties ... <br />The first time something goes wrong is due to the following error "Failed to load resource: the server responded with a status of 422 (Unprocessable Entity)" in <a class="external" href="https://wb2.ardev.services.caasnq.emea.roche.com/static/node_modules/axios/lib/adapters/xhr.js">https://wb2.ardev.services.caasnq.emea.roche.com/static/node_modules/axios/lib/adapters/xhr.js</a> line 178<br />When that happened once the page is not working anymore and need to be reloaded.</p>
<p>I do not really see a pattern when it happens and when it works smoothly. Most of the time only one change works and then it is broken due to the mentioned error ... reloading of the page helps to reset the thing</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729082019-03-29T14:14:42ZMoritz Gilsdorfmoritz.gilsdorf@roche.com
<ul></ul><p>It seems there is an issue related to the versioning features. The response message of the api is<br /><pre><code class="text syntaxhl">{errors: ["Version cannot be updated"], error_token: "1553868569+72636ad3"}
</code></pre></p>
<p>This indicates the frontend is updating an older version of the current collection instead of the latest version (old versions are immutable). However the API call is using the same UUID which should always refer to the latest version.</p>
<p>Another indication that this is frontend related is that the issue can be worked around by reloading the page. Maybe this can be fixed by replacing the object in memory by the response of the update api. It could be that the second update is sending outdated fields (e.g. the version number)</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729102019-03-29T14:16:44ZMoritz Gilsdorfmoritz.gilsdorf@roche.com
<ul></ul><p>Reflecting on the error message it might be that the only issue is that the API is complaining that the workbench is trying to update the "version" field. If this can be removed from the PUT Request Payload I assume it solves the issue.</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729122019-03-29T14:29:14ZPeter Amstutzpeter.amstutz@curii.com
<ul></ul><p>Moritz Gilsdorf wrote:</p>
<blockquote>
<p>Reflecting on the error message it might be that the only issue is that the API is complaining that the workbench is trying to update the "version" field. If this can be removed from the PUT Request Payload I assume it solves the issue.</p>
</blockquote>
<p>I agree, the "version" cannot be updated by the client and should not be sent in the PUT request.</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729162019-03-29T15:09:22ZPeter Amstutzpeter.amstutz@curii.com
<ul></ul><p>One comment on the video, if the API server is returning an error, workbench2 should be reporting that an error occurred and not silently ignoring it (which leads to more confusion).</p>
<p>I will investigate a little bit more and see if I can confirm Moritz's theory.</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729222019-03-29T16:02:05ZPeter Amstutzpeter.amstutz@curii.com
<ul></ul><p>Yes, I see a more general problem that workbench2 is sending back a number of parameters which are present in the GET response but are not legal for the client to update:</p>
<p>created_at <br />current_version_uuid <br />delete_at <br />etag <br />href <br />is_trashed <br />kind <br />modified_at <br />modified_by_client_uuid <br />modified_by_user_uuid <br />preserve_version <br />replication_confirmed <br />replication_confirmed_at <br />storage_classes_confirmed <br />storage_classes_confirmed_at <br />version</p>
<p>To avoid errors, the PUT should only include the fields the client explicitly intends to update.</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729452019-04-01T14:39:56ZPeter Amstutzpeter.amstutz@curii.com
<ul><li><strong>Subject</strong> changed from <i>[Data operations] Properties - unknown behaviour</i> to <i>Attempting to set read-only properties</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729462019-04-01T14:40:14ZPeter Amstutzpeter.amstutz@curii.com
<ul><li><strong>Subject</strong> changed from <i>Attempting to set read-only properties</i> to <i>Error attempting to set read-only attributes</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729622019-04-02T07:36:41ZChrystian Klingenberg
<ul><li><strong>Target version</strong> set to <i>Backlog Q1, Q2</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729692019-04-02T10:49:45ZChrystian Klingenberg
<ul><li><strong>Subject</strong> changed from <i>Error attempting to set read-only attributes</i> to <i>[Data operations]Error attempting to set read-only attributes</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=729732019-04-02T12:39:20ZChrystian Klingenberg
<ul><li><strong>Subject</strong> changed from <i>[Data operations]Error attempting to set read-only attributes</i> to <i>[Data operations] Error attempting to set read-only attributes</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=731582019-04-08T12:07:18ZPawel Kowalczyk
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Assigned To</strong> set to <i>Pawel Kowalczyk</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=731752019-04-09T08:04:41ZPawel Kowalczyk
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=733272019-04-16T13:34:06ZChrystian Klingenberg
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=758942019-06-26T14:10:32ZTom Morristfmorris@veritasgenetics.com
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>In Progress</i></li><li><strong>Assigned To</strong> deleted (<del><i>Pawel Kowalczyk</i></del>)</li><li><strong>Target version</strong> changed from <i>Backlog Q1, Q2</i> to <i>Workbench2 Q3, Q4</i></li></ul><p>We need a more complete fix here so that only attributes which are being updated (and no unmodifiable attributes) are sent with the update.</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=769622019-08-14T15:14:01ZTom Morristfmorris@veritasgenetics.com
<ul><li><strong>Target version</strong> changed from <i>Workbench2 Q3, Q4</i> to <i>2019-08-28 Sprint</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=769692019-08-14T15:36:06ZWard Vandewegeward@curii.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>New</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=769702019-08-14T15:37:13ZWard Vandewegeward@curii.com
<ul><li><strong>Subject</strong> changed from <i>[Data operations] Error attempting to set read-only attributes</i> to <i>[WB2] [Data operations] Error attempting to set read-only attributes</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=769752019-08-14T15:42:23ZLucas Di Pentimalucas.dipentima@curii.com
<ul><li><strong>Assigned To</strong> set to <i>Lucas Di Pentima</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=770072019-08-19T18:09:16ZLucas Di Pentimalucas.dipentima@curii.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=772172019-08-22T19:48:36ZLucas Di Pentimalucas.dipentima@curii.com
<ul></ul><p>Updates at <a class="changeset" title="15027: Fixes user admin toggles to only send is_admin or is_active on updates. Arvados-DCO-1.1-S..." href="https://dev.arvados.org/projects/arvados-workbench-2/repository/arvados-workbench2/revisions/49f27beea17ab1ef448f3c485dcdf9bea0a740b9">49f27be</a> (wb2 repo) - branch <code>15027-object-update-fix</code></p>
<ul>
<li>Reviewed all the update calls to the API server so that only the data being updated is sent and not the entire records.</li>
<li>Because <a class="issue tracker-1 status-3 priority-4 priority-default closed parent" title="Bug: [WB2] Property keys on collections are getting translated from snake_case to camelCase (Resolved)" href="https://dev.arvados.org/issues/15407">#15407</a> is already merged, the collection's tag creation/deletion issues originally reported on this ticket are fixed as the <code>properties</code> (and other similar attributes) aren't being translated to back and forth between camel and snake case. Sometimes, the <code>properties</code> field was being translated to camel case when being received from the API server but not translated back when updated.</li>
<li>Also fixed a pending typo on the group's <code>writable_by</code> field.</li>
</ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=772202019-08-22T21:04:00ZEric Biagiotti
<ul></ul><p>This LGTM. One small nit is that some of the imports are no longer needed in the files you updated. Seems to be a problem in a lot of places, but might as well clean up where we can. Thanks!</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=772242019-08-23T14:52:03ZLucas Di Pentimalucas.dipentima@curii.com
<ul></ul><p>Updates at <a class="changeset" title="15027: Fixes unused declarations errors. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipen..." href="https://dev.arvados.org/projects/arvados-workbench-2/repository/arvados-workbench2/revisions/239ccc433d865ca165aac949cb66d7a03f86c721">239ccc4</a></p>
<ul>
<li>Removes unused imports</li>
<li>Installs & configures tslint to prohibit unused declarations in general</li>
<li>Fixes pending unused declaration errors.</li>
</ul> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=772272019-08-23T16:09:35ZLucas Di Pentimalucas.dipentima@curii.com
<ul></ul><p>Removed commented out code at <a class="changeset" title="15027: Removes commented out code. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@v..." href="https://dev.arvados.org/projects/arvados-workbench-2/repository/arvados-workbench2/revisions/c354d605e3a09baa791be57443c2a0ea32d5bd67">c354d605</a></p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=772302019-08-23T16:21:26ZEric Biagiotti
<ul></ul><p>Lucas Di Pentima wrote:</p>
<blockquote>
<p>Removed commented out code at <a class="changeset" title="15027: Removes commented out code. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@v..." href="https://dev.arvados.org/projects/arvados-workbench-2/repository/arvados-workbench2/revisions/c354d605e3a09baa791be57443c2a0ea32d5bd67">c354d605</a></p>
</blockquote>
<p>LGTM! Thanks for cleaning it up!</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=772332019-08-23T17:19:36ZAnonymous
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li></ul><p>Applied in changeset <a class="changeset" title="Merge branch '15027-object-update-fix' Closes #15027 Arvados-DCO-1.1-Signed-off-by: Lucas Di Pen..." href="https://dev.arvados.org/projects/arvados-workbench-2/repository/arvados-workbench2/revisions/02fe86a56f080ed1d5770ad6c6856a15f50ab508">arvados-workbench2|02fe86a56f080ed1d5770ad6c6856a15f50ab508</a>.</p> Arvados Workbench 2 - Bug #15027: [WB2] [Data operations] Error attempting to set read-only attributeshttps://dev.arvados.org/issues/15027?journal_id=783122019-10-15T14:29:20ZLucas Di Pentimalucas.dipentima@curii.com
<ul><li><strong>Release</strong> set to <i>27</i></li></ul>