New issue
Advanced search Search tips

Issue 740730 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task
Proj-Servicification

Blocking:
issue 611935



Sign in to add a comment

Don't use BlobStatus::ERR_FILE_WRITE_FAILED for two completely unrelated errors

Project Member Reported by mek@chromium.org, Jul 10 2017

Issue description

Currently this same blob status is used for:
1) the renderer failed to write data to a file
2) the renderer tried creating a blob referencing a file the renderer doesn't have access to.

Since those cases are really completely different, it probably makes more sense to not use the same error code for both.
 

Comment 1 by laforge@google.com, Nov 7 2017

Components: Internals>Network>Service

Comment 2 by laforge@google.com, Nov 7 2017

Components: -Internals>Network>Service Internals>Services>Network
Apologies, applied the wrong component in bulk.

Comment 3 by laforge@google.com, Nov 8 2017

Components: Internals>Services>Storage
Setting Internals>Services>Storage to all children of issue 611935
Project Member

Comment 4 by bugdroid1@chromium.org, Jan 10 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/4f28782d5fe8e508e75f82e49c78b4fbc060c8de

commit 4f28782d5fe8e508e75f82e49c78b4fbc060c8de
Author: Marijn Kruisselbrink <mek@chromium.org>
Date: Wed Jan 10 22:16:07 2018

Stop using BlobStatus::ERR_FILE_WRITE_FAILED for two unrelated reasons.

Instead introduce ERR_REFERENCED_FILE_UNAVAILABLE for the case where a
blob tries to reference a file it doesn't have access to.

Bug:  740730 
Change-Id: I66616c5fcfcbf788a53d1a22fb0b2af618edffb5
Reviewed-on: https://chromium-review.googlesource.com/860279
Commit-Queue: Daniel Murphy <dmurph@chromium.org>
Reviewed-by: Daniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#528443}
[modify] https://crrev.com/4f28782d5fe8e508e75f82e49c78b4fbc060c8de/content/browser/blob_storage/blob_dispatcher_host.cc
[modify] https://crrev.com/4f28782d5fe8e508e75f82e49c78b4fbc060c8de/storage/browser/blob/blob_reader.cc
[modify] https://crrev.com/4f28782d5fe8e508e75f82e49c78b4fbc060c8de/storage/browser/blob/blob_registry_impl.cc
[modify] https://crrev.com/4f28782d5fe8e508e75f82e49c78b4fbc060c8de/storage/browser/blob/blob_registry_impl_unittest.cc
[modify] https://crrev.com/4f28782d5fe8e508e75f82e49c78b4fbc060c8de/storage/browser/blob/view_blob_internals_job.cc
[modify] https://crrev.com/4f28782d5fe8e508e75f82e49c78b4fbc060c8de/storage/common/blob_storage/blob_storage_constants.h
[modify] https://crrev.com/4f28782d5fe8e508e75f82e49c78b4fbc060c8de/tools/metrics/histograms/enums.xml

Comment 5 by mek@chromium.org, Jan 10 2018

Status: Fixed (was: Available)

Sign in to add a comment