Bug 279883 - print/cups: Web admin interface is badly broken
Summary: print/cups: Web admin interface is badly broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-20 22:53 UTC by Jason W. Bacon
Modified: 2024-06-22 12:49 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (tijl)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2024-06-20 22:53:13 UTC
Problems I've encountered so far:

1. Selecting "Manage Printers" from the Administration menu results in a "Not Found" page

2. Any attempt to change server settings (e.g. Share printers connected to this system) has no effect.  The response is "The server was not restarted because no changes were made to the configuration..." and any checked boxes revert to unchecked.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-06-21 10:42:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9a4fe7c6ba1b371db3b8dc0dd5fc6a024c8e2a4d

commit 9a4fe7c6ba1b371db3b8dc0dd5fc6a024c8e2a4d
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2024-06-21 08:36:22 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2024-06-21 10:40:06 +0000

    print/cups: Update to 2.4.10

    Pet portclippy/portfmt.

    PR:             278920, 279883

 print/cups/Makefile | 51 ++++++++++++++++++++++++++-------------------------
 print/cups/distinfo |  6 +++---
 2 files changed, 29 insertions(+), 28 deletions(-)
Comment 2 Jason W. Bacon freebsd_committer freebsd_triage 2024-06-21 11:45:17 UTC
The update fixed the broken Manage Printers link, but I still can't change any settings.  Same symptom as before.
Comment 3 Jason W. Bacon freebsd_committer freebsd_triage 2024-06-21 11:55:59 UTC
Probably related to the fact that I cannot enable printer sharing: I can only print from the machine to which the (USB) printer is connected.

Jobs from other machines using ipp://host/printers/printer-name are all "Held for authentication".
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-06-21 14:48:51 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cf99a48a1c95d106f5d09a91507b20c536cd894b

commit cf99a48a1c95d106f5d09a91507b20c536cd894b
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2024-06-21 14:40:23 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2024-06-21 14:46:26 +0000

    print/cups: Fix checkboxes in the web interface

    Add a patch so checkboxes aren't always off when submitting forms.

    PR:             279883

 print/cups/Makefile                        |  1 +
 print/cups/files/patch-cgi-bin_var.c (new) | 11 +++++++++++
 2 files changed, 12 insertions(+)
Comment 5 Tijl Coosemans freebsd_committer freebsd_triage 2024-06-22 10:18:03 UTC
Did the latest update fix the problem?
Comment 6 Jason W. Bacon freebsd_committer freebsd_triage 2024-06-22 12:49:18 UTC
(In reply to Tijl Coosemans from comment #5)

Yes, nice work.

Note to posterity, I did need to clean up, as some manual changes I made to the config files were not reset by the web interface:

service cupsd stop
rm -rf /usr/local/etc/cups
service cupsd start

Then add the printer again from scratch.