2018948 - Unauthenticated users can't move print jobs in Web UI

Resolves: rhbz#2018948
This commit is contained in:
Zdenek Dohnal 2021-11-03 08:54:51 +01:00
parent 302e623e38
commit e3dcbb40c3
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,16 @@
diff --git a/cgi-bin/ipp-var.c b/cgi-bin/ipp-var.c
index 92f1501..7edc058 100644
--- a/cgi-bin/ipp-var.c
+++ b/cgi-bin/ipp-var.c
@@ -275,10 +275,7 @@ cgiMoveJobs(http_t *http, /* I - Connection to server */
*/
if ((user = getenv("REMOTE_USER")) == NULL)
- {
- puts("Status: 401\n");
- exit(0);
- }
+ user = "guest";
/*
* See if the user has already selected a new destination...

View File

@ -17,7 +17,7 @@ Summary: CUPS printing system
Name: cups
Epoch: 1
Version: 2.3.3%{OP_VER}
Release: 8%{?dist}
Release: 9%{?dist}
License: ASL 2.0
Url: http://www.cups.org/
# Apple stopped uploading the new versions into github, use OpenPrinting fork
@ -78,6 +78,8 @@ Patch15: cups-nssuserlookup-target.patch
Patch16: cups-cleanfiles.patch
# 1949067 - Print queue is paused after ipp backend ends with CUPS_BACKEND_STOP
Patch17: cups-validate-1st.patch
# 2018948 - Unauthenticated users can't move print jobs in Web UI
Patch18: 0001-cgi-bin-ipp-var.c-Use-guest-user-for-Move-Job-when-n.patch
##### Patches removed because IMHO they aren't no longer needed
##### but still I'll leave them in git in case their removal
@ -287,6 +289,8 @@ to CUPS daemon. This solution will substitute printer drivers and raw queues in
%patch16 -p1 -b .cleanfiles
# 1949067 - Print queue is paused after ipp backend ends with CUPS_BACKEND_STOP
%patch17 -p1 -b .validate-retry
# 2018948 - Unauthenticated users can't move print jobs in Web UI
%patch18 -p1 -b .move-job
%if %{lspp}
@ -684,6 +688,9 @@ rm -f %{cups_serverbin}/backend/smb
%{_mandir}/man7/ippeveps.7.gz
%changelog
* Wed Nov 03 2021 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3op2-9
- 2018948 - Unauthenticated users can't move print jobs in Web UI
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:2.3.3op2-8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688