New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 834911 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug

Blocking:
issue 830527



Sign in to add a comment

NOTREACHED() reached in CUPS Edit Printer Dialog

Project Member Reported by skau@chromium.org, Apr 19 2018

Issue description

When editing printers, it seems be possible to reach NOTREACHED() in the edit printer dialog for an autoconf printer.  We expect printerAutoconf to be set but it seems to be empty.
 

Comment 1 by skau@chromium.org, Apr 19 2018

Blocking: 830527

Comment 2 by skau@chromium.org, Apr 19 2018

Labels: M-67
Project Member

Comment 3 by bugdroid1@chromium.org, Apr 24 2018

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

commit 5b724a7fcfa98dc94e9e941d21e7717242761e2b
Author: David Valleau <valleau@chromium.org>
Date: Tue Apr 24 03:29:36 2018

Fixing GetPrinterInfo to include the autoconf and ppd_url fields

GetPrinterInfo was omitting the autoconf field which was causing
a "NOTREACHED" to be hit when attempting to edit an autoconf printer.
This change adds this field and also moves the GetPrinterInfo function
to be a free function in printer_translator so that it can be tested
more easily.

BUG= chromium:834911 
R=michaelpg@chromium.org, skau@chromium.org

Change-Id: I37145b71228afdeb6de9628365bf311d2e98b190
Reviewed-on: https://chromium-review.googlesource.com/1023118
Commit-Queue: David Valleau <valleau@chromium.org>
Reviewed-by: Michael Giuffrida <michaelpg@chromium.org>
Reviewed-by: Sean Kau <skau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552989}
[modify] https://crrev.com/5b724a7fcfa98dc94e9e941d21e7717242761e2b/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc
[modify] https://crrev.com/5b724a7fcfa98dc94e9e941d21e7717242761e2b/chromeos/printing/printer_translator.cc
[modify] https://crrev.com/5b724a7fcfa98dc94e9e941d21e7717242761e2b/chromeos/printing/printer_translator.h
[modify] https://crrev.com/5b724a7fcfa98dc94e9e941d21e7717242761e2b/chromeos/printing/printer_translator_unittest.cc

Comment 4 by skau@chromium.org, Apr 24 2018

Status: Fixed (was: Assigned)

Comment 5 by skau@chromium.org, Apr 25 2018

Landed in 68.0.3406.0
Labels: Merge-Request-67
Not sure if we requested this merge back? Adding the tag in for M67 to be sure.
Project Member

Comment 7 by sheriffbot@chromium.org, Apr 30 2018

Labels: -Merge-Request-67 Merge-Review-67 Hotlist-Merge-Review
This bug requires manual review: M67 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), kbleicher@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Assume this has been tested per #5 and confirmed no ill effects.  Is this a M67 regression or tied to a feature launch?

Comment 9 by skau@chromium.org, May 1 2018

I can confirm that we can now change protocols and the port number for printers and there are no ill effects.  Verified on 68.0.3416.0.

I did notice that changing the hostname for some printers does not work  crbug.com/838677  but that bug is not new.
Still not clear if this is a bug introduced in M67 or in support of M68?

Comment 11 by skau@chromium.org, May 2 2018

The bug was introduced in M67.
Labels: -Merge-Review-67 Merge-Approved-67
Approving merge to M67 Chrome OS.

Project Member

Comment 14 by sheriffbot@chromium.org, May 7 2018

Cc: weifangsun@chromium.org kbleicher@chromium.org
This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 15 by bugdroid1@chromium.org, May 7 2018

Labels: -merge-approved-67 merge-merged-3396
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/70ec54edfc4595b8d00980e5d5ce7b6fda933e95

commit 70ec54edfc4595b8d00980e5d5ce7b6fda933e95
Author: David Valleau <valleau@chromium.org>
Date: Mon May 07 23:19:38 2018

Fixing GetPrinterInfo to include the autoconf and ppd_url fields

GetPrinterInfo was omitting the autoconf field which was causing
a "NOTREACHED" to be hit when attempting to edit an autoconf printer.
This change adds this field and also moves the GetPrinterInfo function
to be a free function in printer_translator so that it can be tested
more easily.

BUG= chromium:834911 
R=​michaelpg@chromium.org, skau@chromium.org

Change-Id: I37145b71228afdeb6de9628365bf311d2e98b190
Reviewed-on: https://chromium-review.googlesource.com/1023118
Commit-Queue: David Valleau <valleau@chromium.org>
Reviewed-by: Michael Giuffrida <michaelpg@chromium.org>
Reviewed-by: Sean Kau <skau@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#552989}(cherry picked from commit 5b724a7fcfa98dc94e9e941d21e7717242761e2b)
Reviewed-on: https://chromium-review.googlesource.com/1048706
Cr-Commit-Position: refs/branch-heads/3396@{#508}
Cr-Branched-From: 9ef2aa869bc7bc0c089e255d698cca6e47d6b038-refs/heads/master@{#550428}
[modify] https://crrev.com/70ec54edfc4595b8d00980e5d5ce7b6fda933e95/chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc
[modify] https://crrev.com/70ec54edfc4595b8d00980e5d5ce7b6fda933e95/chromeos/printing/printer_translator.cc
[modify] https://crrev.com/70ec54edfc4595b8d00980e5d5ce7b6fda933e95/chromeos/printing/printer_translator.h
[modify] https://crrev.com/70ec54edfc4595b8d00980e5d5ce7b6fda933e95/chromeos/printing/printer_translator_unittest.cc

Sign in to add a comment