Commit ede798c7 authored by Joshua Pawlicki's avatar Joshua Pawlicki Committed by Chromium LUCI CQ

Omaha client: Catch IAException

Bug: 1149863
Change-Id: Idd49249653a3b5d845dd4bc9a87601de35cfbc05
Fixed: 1149863
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2563876
Auto-Submit: Joshua Pawlicki <waffles@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Reviewed-by: default avatarSorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831929}
parent 54a1e612
...@@ -577,9 +577,11 @@ public class OmahaBase { ...@@ -577,9 +577,11 @@ public class OmahaBase {
writer.write(request, 0, request.length()); writer.write(request, 0, request.length());
StreamUtil.closeQuietly(writer); StreamUtil.closeQuietly(writer);
checkServerResponseCode(urlConnection); checkServerResponseCode(urlConnection);
} catch (IOException | SecurityException | IndexOutOfBoundsException e) { } catch (IOException | SecurityException | IndexOutOfBoundsException
| IllegalArgumentException e) {
// IndexOutOfBoundsException is thought to be triggered by a bug in okio. // IndexOutOfBoundsException is thought to be triggered by a bug in okio.
// TODO(crbug.com/1111334): Record IndexOutOfBoundsException specifically. // TODO(crbug.com/1111334): Record IndexOutOfBoundsException specifically.
// IllegalArgumentException is triggered by a bug in okio. crbug.com/1149863.
throw new RequestFailureException("Failed to write request to server: ", e, throw new RequestFailureException("Failed to write request to server: ", e,
RequestFailureException.ERROR_CONNECTIVITY); RequestFailureException.ERROR_CONNECTIVITY);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment