• Piotr Pawliczek's avatar
    Default port for ipps protocol in printer URIs · 1514dcc5
    Piotr Pawliczek authored
    When a port value in printer URI is not specified, the default port
    number assigned to the URI protocol is assumed. However, for ipps
    protocol the default port number in ChromeOS is 443, while in CUPS
    the value 631 is assumed. As a results, CUPS tries to connect to
    port 631 when the port 443 is specified on ChromeOS side. This patch
    solves this issue by enforcing presence of port number in all URI
    sent to CUPS.
    
    BUG=b:172961564
    TEST=tested on atlas device by checking URIs in CUPS with lpstat -v
    
    Change-Id: I0a00ab2f9230a8a159483da4370df15d86f58bab
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2538254
    Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org>
    Reviewed-by: default avatarSean Kau <skau@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#828411}
    1514dcc5
printing_api_utils.cc 8.92 KB