]>
git.ipfire.org Git - thirdparty/cups.git/log
Zdenek Dohnal [Wed, 15 May 2024 10:57:14 +0000 (12:57 +0200)]
Fix CI failure due job-presets support
Zdenek Dohnal [Wed, 15 May 2024 09:40:22 +0000 (11:40 +0200)]
client.c: Allow any query string starting with '?'
Allow query strings starting with '?' when accessing the '/printers' and
'/classes' resources.
zdohnal [Wed, 15 May 2024 09:36:33 +0000 (11:36 +0200)]
Fix HTTP query in web interface (fixes #954)
We can use ?QUERY= in URL for searching for destinations - allow it when checking whether the destination exists.
Zdenek Dohnal [Tue, 14 May 2024 12:03:44 +0000 (14:03 +0200)]
Fix HTTP query in web interface (fixes #954)
We can use `?QUERY=` in URL for searching for destinations
- allow it when checking whether the destination exists.
Michael R Sweet [Fri, 3 May 2024 15:44:56 +0000 (11:44 -0400)]
Fix non-quick copies of collection values.
Michael R Sweet [Fri, 26 Apr 2024 20:19:29 +0000 (16:19 -0400)]
Add LDFLAGS for macOS CI.
Michael R Sweet [Fri, 26 Apr 2024 20:15:07 +0000 (16:15 -0400)]
Install prerequisites on macOS, normalize step labels.
Zdenek Dohnal [Fri, 26 Apr 2024 08:31:38 +0000 (10:31 +0200)]
Update CHANGES.md based on the recent relevant commits
Michael R Sweet [Thu, 25 Apr 2024 22:16:21 +0000 (18:16 -0400)]
Add job-presets-supported to CUPS shared printers (Issue #778)
Michael R Sweet [Thu, 25 Apr 2024 20:51:57 +0000 (16:51 -0400)]
Add job-sheets-col support (Issue #138)
Michael R Sweet [Thu, 25 Apr 2024 15:18:55 +0000 (11:18 -0400)]
Add --list-all option to cupsfilter (Issue #194)
Michael R Sweet [Thu, 25 Apr 2024 14:53:36 +0000 (10:53 -0400)]
Fix warnings.
Michael R Sweet [Thu, 25 Apr 2024 14:51:54 +0000 (10:51 -0400)]
Fix finishings support in ippeveps.
Michael R Sweet [Wed, 24 Apr 2024 21:27:17 +0000 (17:27 -0400)]
Convert dnssd backend to use cupsDNSSD APIs.
Michael R Sweet [Sun, 21 Apr 2024 19:54:43 +0000 (15:54 -0400)]
Clean up mDNSResponder support.
Michael R Sweet [Sun, 21 Apr 2024 13:36:29 +0000 (09:36 -0400)]
Fix typos in comments.
Michael R Sweet [Sun, 21 Apr 2024 13:26:26 +0000 (09:26 -0400)]
Fix a deadlocking issue and add some more tests for the newer APIs.
Michael R Sweet [Fri, 19 Apr 2024 21:45:19 +0000 (17:45 -0400)]
Initial support for multiple DNS-SD domains and Avahi.
Michael R Sweet [Thu, 18 Apr 2024 23:06:27 +0000 (19:06 -0400)]
Increase the mime.types limit to 8192 bytes and document it (Issue #925)
Michael R Sweet [Thu, 18 Apr 2024 20:23:54 +0000 (16:23 -0400)]
Update checkbox support code.
Michael R Sweet [Thu, 18 Apr 2024 19:57:57 +0000 (15:57 -0400)]
Add some debug logging to the message localization stuff.
Michael R Sweet [Thu, 18 Apr 2024 19:57:33 +0000 (15:57 -0400)]
Add some logging to the new DNS-SD stuff.
Michael R Sweet [Thu, 18 Apr 2024 18:14:28 +0000 (14:14 -0400)]
Adopt new DNS-SD API for cupsd sharing (Issue #931)
Note: Still needs more testing.
Michael R Sweet [Wed, 17 Apr 2024 00:08:57 +0000 (20:08 -0400)]
Fix support for simple punch finisher (Issue #821)
Michael R Sweet [Tue, 16 Apr 2024 23:42:26 +0000 (19:42 -0400)]
Fix ippeveprinter issues.
Michael R Sweet [Tue, 16 Apr 2024 18:02:56 +0000 (14:02 -0400)]
Fix Windows DLL exports.
Michael R Sweet [Tue, 16 Apr 2024 13:59:18 +0000 (09:59 -0400)]
Move printer-strings-languages-supported to common data.
Michael R Sweet [Tue, 16 Apr 2024 13:52:31 +0000 (09:52 -0400)]
Fix typos.
Michael R Sweet [Tue, 16 Apr 2024 13:01:21 +0000 (09:01 -0400)]
Merge pull request #942 from OpenPrinting/l10n
Support multiple languages with IPP Everywhere
Michael R Sweet [Tue, 16 Apr 2024 12:51:38 +0000 (08:51 -0400)]
Update cups-files.conf man page.
Move writing of strings files to cupsdCleanDirty, and add new
CUPSD_DIRTY_STRINGS bit.
Update PPD cache version and check modification time of cups-files.conf to
trigger re-load of strings.
Make sure "strings" subdirectory is created as necessary.
Michael R Sweet [Tue, 16 Apr 2024 12:29:10 +0000 (08:29 -0400)]
Update _ppdCacheCreateWithPPD to collect localizable strings for the languages
we are interested in.
Add support for Languages directive in cups-files.conf.
Michael R Sweet [Mon, 15 Apr 2024 20:00:42 +0000 (16:00 -0400)]
Update _ppdCacheCreateWithPPD to accept languages to localize.
Michael R Sweet [Mon, 15 Apr 2024 19:02:37 +0000 (15:02 -0400)]
Address clang warning.
Michael R Sweet [Mon, 15 Apr 2024 00:37:11 +0000 (20:37 -0400)]
Update _cupsMessageLoad to accept existing strings array.
Michael R Sweet [Sun, 14 Apr 2024 14:51:54 +0000 (10:51 -0400)]
Localize finishings/finishings-col, media-source, media-type, output-bin, and
printer-state-reasons keywords using both the standard CUPS message catalogs and
the printer's own strings files, with a backup of converting keywords like
"one-two-three" to "One Two Three".
Ignore generated cachebench program.
Michael R Sweet [Fri, 12 Apr 2024 23:26:24 +0000 (19:26 -0400)]
Fix printer-strings-uri support in _ppdCreateFromIPP.
Add PPD cache benchmarking program.
Michael R Sweet [Wed, 10 Apr 2024 21:31:25 +0000 (17:31 -0400)]
Update browsw output.
Michael R Sweet [Wed, 10 Apr 2024 21:26:23 +0000 (17:26 -0400)]
Add 'browse' sub-command to DNS-SD test program.
Michael R Sweet [Wed, 10 Apr 2024 20:26:38 +0000 (16:26 -0400)]
Fix crash when host is NULL.
Michael R Sweet [Wed, 10 Apr 2024 18:09:42 +0000 (14:09 -0400)]
Don't mark BG thread done until the response is sent.
Michael R Sweet [Tue, 9 Apr 2024 22:18:32 +0000 (18:18 -0400)]
Initial work on loading all desired languages from IPP printer.
Michael R Sweet [Tue, 9 Apr 2024 22:18:08 +0000 (18:18 -0400)]
Fix warnings.
Michael R Sweet [Tue, 9 Apr 2024 15:51:47 +0000 (11:51 -0400)]
Fix regression for background queue creation (Issue #934)
Michael R Sweet [Sat, 6 Apr 2024 14:22:57 +0000 (10:22 -0400)]
Fix constant name.
Michael R Sweet [Sat, 6 Apr 2024 13:51:14 +0000 (09:51 -0400)]
Use NULL hostname for services on the loopback interface (Issue #902)
Michael R Sweet [Sat, 6 Apr 2024 13:37:09 +0000 (09:37 -0400)]
Use size_t for buffer size and make sure it is at least 4 bytes long (Issue #921)
Michael R Sweet [Fri, 5 Apr 2024 21:26:19 +0000 (17:26 -0400)]
Report an error if you use lpadmin to set defaults for a temporary queue (Issue #237)
Michael R Sweet [Fri, 5 Apr 2024 21:03:32 +0000 (17:03 -0400)]
Delete enum attribute if the value is bad.
Michael R Sweet [Fri, 5 Apr 2024 21:00:45 +0000 (17:00 -0400)]
Support enum keywords (Issue #734)
Michael R Sweet [Fri, 5 Apr 2024 20:43:38 +0000 (16:43 -0400)]
Fix document-unprintable-error support (Issue #391)
Michael R Sweet [Fri, 5 Apr 2024 20:34:05 +0000 (16:34 -0400)]
Support ippeveprinter -f option with -a (Issue #759)
Michael R Sweet [Fri, 5 Apr 2024 20:17:10 +0000 (16:17 -0400)]
Tweak Docker docos.
Michael R Sweet [Fri, 5 Apr 2024 20:13:37 +0000 (16:13 -0400)]
Merge pull request #929 from Rudra-IITM/docker_build
[Add] Dockerfile and Docker Compose for CUPS setup
Michael R Sweet [Fri, 5 Apr 2024 18:13:47 +0000 (14:13 -0400)]
Use cupsCopyString instead of strlcpy.
Michael R Sweet [Fri, 5 Apr 2024 17:26:10 +0000 (13:26 -0400)]
Changelog.
Michael R Sweet [Fri, 5 Apr 2024 17:25:31 +0000 (13:25 -0400)]
Add cupsCopyDestInfo2 API (Issue #586)
Rudra-IITM [Fri, 5 Apr 2024 17:08:01 +0000 (22:38 +0530)]
update install.md
Michael R Sweet [Fri, 5 Apr 2024 17:07:56 +0000 (13:07 -0400)]
Fix cupsCopyDestInfo device connection detection (Issue #586)
Rudra-IITM [Fri, 5 Apr 2024 17:00:54 +0000 (22:30 +0530)]
add dockerfile and docker-compose file
Michael R Sweet [Fri, 5 Apr 2024 12:46:37 +0000 (08:46 -0400)]
Allow PPD choices and PWG keywords to select media (Issue #238)
Zdenek Dohnal [Fri, 5 Apr 2024 08:44:55 +0000 (10:44 +0200)]
Update CHANGES.md
zdohnal [Fri, 5 Apr 2024 08:41:00 +0000 (10:41 +0200)]
scheduler: Fix sending response headers to client
Sometimes headers are not correctly copied into response to the client (some are missing). It happens because sent_header is set prematurely before the actual send happens. The present code in affected cupsdWriteClient() scope looks like code remains from CUPS 1.6.3, where cupsdSendHeader() is called earlier and generates the required headers by itself - the current cupsdSendHeader() sends only the headers which are saved in array fields, so the premature setting of sent_header sometimes causes not having all headers in the response.
With the change, testing via curl gives reliable results all time.
Michael R Sweet [Thu, 4 Apr 2024 18:38:34 +0000 (14:38 -0400)]
Update CUPS-Add-Modify-Printer and CUPS-Create-Local-Printer code to delay
responding until the PPD is successfully generated (Issue #347)
Zdenek Dohnal [Wed, 3 Apr 2024 08:39:24 +0000 (10:39 +0200)]
scheduler: Fix sending response headers to client
Sometimes headers are not correctly copied into response to the client
(some are missing). It happens because `sent_header` is set prematurely
before the actual send happens. The present code in affected `cupsdWriteClient`
scope looks like code remains from CUPS 1.6.3.
With the change, testing via curl gives reliable results all time.
Michael R Sweet [Wed, 3 Apr 2024 00:31:26 +0000 (20:31 -0400)]
Put it back - Github is confused.
Michael R Sweet [Wed, 3 Apr 2024 00:21:02 +0000 (20:21 -0400)]
Rename CodeQL workflow to satisfy Github.
Michael R Sweet [Wed, 3 Apr 2024 00:10:29 +0000 (20:10 -0400)]
Fix CodeQL-detected missing NULL check.
Michael R Sweet [Tue, 2 Apr 2024 23:50:26 +0000 (19:50 -0400)]
Update default destination documentation (Issue #819)
Michael R Sweet [Tue, 2 Apr 2024 22:55:56 +0000 (18:55 -0400)]
Merge pull request #837 from zdohnal/fix-reasons-for-older-jobs
scheduler: Fix reasons for previously printed jobs
Michael R Sweet [Tue, 2 Apr 2024 22:48:54 +0000 (18:48 -0400)]
Fix some build issues (Issue #674)
Michael R Sweet [Tue, 2 Apr 2024 22:45:44 +0000 (18:45 -0400)]
Merge pull request #674 from AtariDreams/ABI
Create shims to pass to array structures as to not pass incompatible function pointers
Michael R Sweet [Tue, 2 Apr 2024 22:44:53 +0000 (18:44 -0400)]
Merge branch 'master' into ABI
Michael R Sweet [Tue, 2 Apr 2024 21:47:49 +0000 (17:47 -0400)]
Fix 'deny everyone' example (Issue #844)
Michael R Sweet [Tue, 2 Apr 2024 15:19:41 +0000 (11:19 -0400)]
Fix httpGets timeout handling (Issue #879)
Michael R Sweet [Tue, 2 Apr 2024 14:51:19 +0000 (10:51 -0400)]
Drop 'none' test (Issue #909)
zdohnal [Tue, 2 Apr 2024 13:52:25 +0000 (15:52 +0200)]
cups/request.c: Show filename in message in `cupsDoFileRequest()`
Show which file we tried to access in the error message, if we have issues accessing it.
Related #904
Michael R Sweet [Tue, 2 Apr 2024 12:36:06 +0000 (08:36 -0400)]
Fix the initialization and validation of checkbox and text fields in CGI forms.
Michael R Sweet [Wed, 27 Mar 2024 18:38:46 +0000 (14:38 -0400)]
Update CUPS-Create-Local-Printer to preserve the existing printer based on the
device URI (Issue #871)
Also keep the temporary printer for up to 5 minutes without activity, and update
the state change time every time CUPS-Create-Local-Printer is called.
Michael R Sweet [Wed, 27 Mar 2024 18:38:28 +0000 (14:38 -0400)]
Fix client logging of requests.
Michael R Sweet [Wed, 27 Mar 2024 18:32:00 +0000 (14:32 -0400)]
Don't use sanitizer on macOS due to performance issues on Github Actions servers.
Michael R Sweet [Wed, 27 Mar 2024 17:02:55 +0000 (13:02 -0400)]
Update Windows DLL exports.
Michael R Sweet [Wed, 27 Mar 2024 16:42:53 +0000 (12:42 -0400)]
Update cupsd code to report all supported raster resolutions (Issue #901)
Michael R Sweet [Wed, 27 Mar 2024 16:42:49 +0000 (12:42 -0400)]
Drop old strlcat/cpy emulation functions.
Michael R Sweet [Wed, 27 Mar 2024 16:42:20 +0000 (12:42 -0400)]
Stop doing EUC-JP test.
Michael R Sweet [Mon, 25 Mar 2024 22:33:34 +0000 (18:33 -0400)]
Fix encoding of extension values (Issue #913)
Michael R Sweet [Mon, 25 Mar 2024 19:07:53 +0000 (15:07 -0400)]
Update changelog and make sure we have the len==0 check for cupsRasterReadPixels as well.
Michael R Sweet [Mon, 25 Mar 2024 19:01:54 +0000 (15:01 -0400)]
Merge pull request #914 from yetamrra/raster-write-check
Add additional parameter validation to _cupsRasterWritePixels
Benjamin Gordon [Mon, 25 Mar 2024 15:59:21 +0000 (09:59 -0600)]
Add additional parameter validation to _cupsRasterWritePixels
If len is 0, the function does a lot of calculations that ultimately
don't produce any output. This can be skipped with an early return.
If cupsBytesPerLine is 0, this triggers a divide by zero if the output
isn't compressed. This is an error on the caller's part, but it's
nicer to return an error than to crash.
Zdenek Dohnal [Fri, 22 Mar 2024 08:05:45 +0000 (09:05 +0100)]
cups/request.c: Show filename in message in `cupsDoFileRequest()`
Show which file we tried to access in the error message, if we have
issues with accessing it.
Related #904
Zdenek Dohnal [Fri, 22 Mar 2024 05:26:40 +0000 (06:26 +0100)]
cups/ipp.c: Use strcmp, since attribute names are case sensitive
zdohnal [Tue, 19 Mar 2024 09:41:19 +0000 (10:41 +0100)]
snmp.c: Validate input OID string for `_cupsSNMPStringToOID()`
We can accept OID string as input in few cases (mainly via side channel) and if the crafted OID string is sent, internal function asn1_size_oid() can end up with stack buffer overflow.
The issue happens when one OID node is too large, or OID is invalid (ending with dots) - we can fix it in _cupsSNMPStringToOID() by checking if the last source character is a dot (invalid OID), and by limiting integer for OID node to 0xffff.
Fixes #905
Zdenek Dohnal [Mon, 18 Mar 2024 14:02:30 +0000 (15:02 +0100)]
snmp.c: Validate input OID string for `_cupsSNMPStringToOID()`
We can accept OID string as input in few cases (mainly via side channel)
and if the crafted OID string is sent, internal function
`asn1_size_oid()` can end up with stack buffer overflow.
The issue happens when one OID node is too large, or OID is invalid
(ending with dots) - we can fix it in `_cupsSNMPStringToOID()` by
checking if the last source character is a dot (invalid OID),
and by limiting integer for OID node to 0xffff.
Fixes #905
zdohnal [Mon, 11 Mar 2024 11:00:47 +0000 (12:00 +0100)]
Fix get-printer-attributes test with media-col-database
The test that is supposed to explicitly ask for requested-attributes='media-col-database' is instead asking for requested-attributes='all'
Alexander Rogovskyy [Fri, 8 Mar 2024 00:11:29 +0000 (01:11 +0100)]
Fix get-printer-attributes test with media-col-database
Michael R Sweet [Fri, 1 Mar 2024 16:52:38 +0000 (11:52 -0500)]
Fix IPv6 address encoding in the Host: header (Issue #903)
Michael R Sweet [Fri, 16 Feb 2024 18:01:28 +0000 (13:01 -0500)]
Update cupsCreateRequestedArray for Get-Output-Device-Attributes.
Zdenek Dohnal [Thu, 15 Feb 2024 17:12:01 +0000 (18:12 +0100)]
Update CHANGES.md
zdohnal [Thu, 15 Feb 2024 12:45:34 +0000 (13:45 +0100)]
ppd-cache.c: Check for required attributes if URF or PWG Raster are found
Some devices have image/urf in document-format-supported, but is missing urf-supported if AirPrint support is turned off, which breaks PPD generation.
Check for attribute urf-supported when we are about to decide whether the printer uses AirPrint, so in case the device supports another driverless standard, we can use it for PPD generation.
Apply the same for PWG Raster too.
Fixes Fedora issue #
2263053
Zdenek Dohnal [Thu, 15 Feb 2024 06:50:34 +0000 (07:50 +0100)]
Mention reporting issues earlier
Michael R Sweet [Wed, 14 Feb 2024 15:26:07 +0000 (10:26 -0500)]
Fix typo in workaround.