RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2006987 - Unauthenticated users can't move print jobs in Web UI
Summary: Unauthenticated users can't move print jobs in Web UI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cups
Version: 8.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Zdenek Dohnal
QA Contact: Petr Dancak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-22 18:58 UTC by Bryan Mason
Modified: 2022-05-23 20:14 UTC (History)
2 users (show)

Fixed In Version: cups-2.2.6-41.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2018948 (view as bug list)
Environment:
Last Closed: 2022-05-10 15:21:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pdancak: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github OpenPrinting cups pull 257 0 None open cgi-bin/ipp-var.c: Use "guest" user for Move Job when no REMOTE_USER given 2021-09-22 18:58:55 UTC
Red Hat Issue Tracker RHELPLAN-97965 0 None None None 2021-09-22 18:59:49 UTC
Red Hat Knowledge Base (Solution) 6957388 0 None None None 2022-05-23 20:14:21 UTC
Red Hat Product Errata RHBA-2022:2032 0 None None None 2022-05-10 15:21:38 UTC

Description Bryan Mason 2021-09-22 18:58:56 UTC
Description of problem:

  If an administrator wants to allow unfettered access to allow
  unauthenticated users to perform administration functions, they can do
  this by removing Require user entries from cupsd.conf.  This works for
  everything but the "Move Job" operation in the "Jobs" page. Because
  cgiMoveJob() returns 401 when REMOTE_USER is not supplied, it is
  impossible to move the job using the Web UI.

Version-Release number of selected component (if applicable):

  cups-2.2.6-38.el8

How reproducible:

  100%

Steps to Reproduce:

 1. Remove all "Require user" entries in cupsd.conf
 
 2. Submit a print job "lp -d test -H Hold /etc/fstab"
 
 3. Go to https://localhost/jobs and press the "Move Job" button
    to move the print job.

Actual results:

  Unauthorized

  Enter your username and password or the root username and password to
  access this page. If you are using Kerberos authentication, make sure
  you have a valid Kerberos ticket.

Expected results:

  The unauthenticated user should be able to move the job.

Additional info:

  Upstream PR, currently pending review:
    https://github.com/OpenPrinting/cups/pull/257

  I'll work up a test package shortly.

Comment 1 Bryan Mason 2021-09-22 19:00:12 UTC
Created attachment 1825411 [details]
Proposed patch

Comment 18 errata-xmlrpc 2022-05-10 15:21:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cups bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2032


Note You need to log in before you can comment on or make changes to this bug.