Changes in CUPS v2.4.8 (TBA)
----------------------------
-- Fixed printing of jobs with job name longer than 255 chars on older printers (Issue #644)
-- Really backport fix for Issue #742
-- Raised `cups_enum_dests()` timeout for listing available IPP printers (Issue #751)
-- Fixed memory leak when unloading a job (Issue #813)
-- Fixed memory leak when creating color profiles (Issue #815)
- Added warning if the device has to be asked for 'all,media-col-database' separately
(Issue #829)
- Added new value for 'lpstat' option '-W' - successfull - for getting
successfully printed jobs (Issue #830)
+- Raised `cups_enum_dests()` timeout for listing available IPP printers (Issue #751)
+- Fixed the web interface not showing an error for a non-existent printer
+ (Issue #423)
+- Fixed printing of jobs with job name longer than 255 chars on older printers (Issue #644)
+- Really backport fix for Issue #742
+- Fixed memory leak when unloading a job (Issue #813)
+- Fixed memory leak when creating color profiles (Issue #815)
- Fixed crash in `scan_ps()` if incoming argument is NULL (Issue #831)
- Fixed setting job state reasons for successful jobs (Issue #832)
- Fixed infinite loop in IPP backend if hostname is IP address with Kerberos (Issue #838)
}
else if (!strncmp(con->uri, "/classes", 8))
{
+ if (strlen(con->uri) > 9 && !cupsdFindClass(con->uri + 9))
+ {
+ if (!cupsdSendError(con, HTTP_STATUS_NOT_FOUND, CUPSD_AUTH_NONE))
+ {
+ cupsdCloseClient(con);
+ return;
+ }
+
+ break;
+ }
+
cupsdSetStringf(&con->command, "%s/cgi-bin/classes.cgi", ServerBin);
- if (con->uri[8] && con->uri[9])
+ if (con->uri[8] && con->uri[9])
cupsdSetString(&con->options, con->uri + 8);
else
cupsdSetString(&con->options, NULL);
}
else if (!strncmp(con->uri, "/printers", 9))
{
+ if (strlen(con->uri) > 10 && !cupsdFindPrinter(con->uri + 10))
+ {
+ if (!cupsdSendError(con, HTTP_STATUS_NOT_FOUND, CUPSD_AUTH_NONE))
+ {
+ cupsdCloseClient(con);
+ return;
+ }
+
+ break;
+ }
+
cupsdSetStringf(&con->command, "%s/cgi-bin/printers.cgi", ServerBin);
if (con->uri[9] && con->uri[10])
cupsdSetString(&con->options, con->uri + 9);