New issue
Advanced search Search tips

Issue 892211 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 5
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 1
Type: Bug

Blocking:
issue 888545



Sign in to add a comment

Fix Open In failure detection

Project Member Reported by mrefaat@chromium.org, Oct 4

Issue description

Currently if Open in downloaded a corrupted file (due to authentication or other reasons) 
it will consider that download as a success. 

We need to be able to check if the pdf file downloaded is a valid pdf.
 
Blocking: 888545
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 4

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

commit 38a17abcb0954496c6c655388e9d199242a5d725
Author: mrefaat <mrefaat@chromium.org>
Date: Thu Oct 04 23:28:11 2018

Fix "Open in" feature to treat downloading corrupted files as failure.

Also fixed "Open in" unit test as the existing test was already passing a
corrupted PDF data to the UrlLoader. the reason was that the generated
pdf data had null characters, So when casting it to char* then converting
that to string it produced 8 letters Data stream.

Added unittest for the corrupted pdf case.

Bug:  892211 
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: I4fff1e22f617e6a0b2c08d9c6412e14265b8aab4
Reviewed-on: https://chromium-review.googlesource.com/c/1261926
Commit-Queue: Mohammad Refaat <mrefaat@chromium.org>
Reviewed-by: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596918}
[modify] https://crrev.com/38a17abcb0954496c6c655388e9d199242a5d725/ios/chrome/browser/ui/open_in_controller.mm
[modify] https://crrev.com/38a17abcb0954496c6c655388e9d199242a5d725/ios/chrome/browser/ui/open_in_controller_unittest.mm

Status: Fixed (was: Started)

Sign in to add a comment