]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
2 years agoprinters.c: Set .strings file path if PPD cache is valid (fixes #710) 711/head
Zdenek Dohnal [Thu, 1 Jun 2023 13:57:36 +0000 (15:57 +0200)] 
printers.c: Set .strings file path if PPD cache is valid (fixes #710)

2 years agoUpdate configure script.
Michael R Sweet [Thu, 1 Jun 2023 13:42:22 +0000 (09:42 -0400)] 
Update configure script.

2 years agoMerge pull request #704 from l1gi/master
Michael R Sweet [Thu, 1 Jun 2023 13:41:53 +0000 (09:41 -0400)] 
Merge pull request #704 from l1gi/master

host_os_name value in config-scripts has changed to 'solaris'

2 years agoCI: Fix i386 for now
Zdenek Dohnal [Thu, 1 Jun 2023 12:47:49 +0000 (14:47 +0200)] 
CI: Fix i386 for now

Although Ubuntu is dropping support for i386, this PR fixes build i386
for now. However we have to remove image upgrade, so probably once there
is a new image, i386 will be broken again.

I would remove the job for i386 once it breaks again due removing
support for i386 in Ubuntu.

2 years agohost_os_name value in config-scripts has changed to 'solaris' 704/head
Martin Rehak [Thu, 1 Jun 2023 12:10:23 +0000 (14:10 +0200)] 
host_os_name value in config-scripts has changed to 'solaris'

2 years agohost_os_name value in config-scripts has changed to 'solaris'
Martin Rehak [Fri, 26 May 2023 07:53:07 +0000 (09:53 +0200)] 
host_os_name value in config-scripts has changed to 'solaris'

2 years agoUpdate CHANGES.md
Zdenek Dohnal [Thu, 1 Jun 2023 10:11:38 +0000 (12:11 +0200)] 
Update CHANGES.md

2 years agocups/string.c: Return if `size` is 0 (fixes CVE-2023-32324)
Zdenek Dohnal [Thu, 1 Jun 2023 10:04:00 +0000 (12:04 +0200)] 
cups/string.c: Return if `size` is 0 (fixes CVE-2023-32324)

2 years agoSECURITY.md: Use GitHub private advisories for reporting (fixes #703)
Zdenek Dohnal [Thu, 1 Jun 2023 08:45:25 +0000 (10:45 +0200)] 
SECURITY.md: Use GitHub private advisories for reporting (fixes #703)

2 years agoCHANGES.md: Add pull requests which fix noticeable bugs
Zdenek Dohnal [Wed, 31 May 2023 12:51:02 +0000 (14:51 +0200)] 
CHANGES.md: Add pull requests which fix noticeable bugs

2 years agoMerge pull request #705 from zdohnal/fix_github_actions
Michael R Sweet [Tue, 30 May 2023 15:35:11 +0000 (11:35 -0400)] 
Merge pull request #705 from zdohnal/fix_github_actions

workflows.yaml: Fix Github Actions and various fixes

2 years agoworkflows.yaml: Fix Github Actions on i386 705/head
Zdenek Dohnal [Tue, 30 May 2023 12:57:46 +0000 (14:57 +0200)] 
workflows.yaml: Fix Github Actions on i386

- build i386 was failing due missing dependencies - libgcc-s1:i386 and
  libstdc++6:i386
- use ubuntu-latest, so we automatically use the latest stable, but
  print out the pretty name in workflow to show which version it is
  (dont wanna to look up the names :))
- update the image before testing

2 years agoMerge pull request #709 from nmuggli/media-col-database-custom-size
Michael R Sweet [Sun, 28 May 2023 15:15:19 +0000 (11:15 -0400)] 
Merge pull request #709 from nmuggli/media-col-database-custom-size

Add custom page size values to media-col-database

2 years agoAdd custom page size values to media-col-database 709/head
Nathan Muggli [Fri, 26 May 2023 18:36:45 +0000 (12:36 -0600)] 
Add custom page size values to media-col-database

When creating the IPP attrs based on the PPD file, if the PPD file
supports custom page sizes update our media-col-database to contain a
media-size attr with the min/max range.

2 years agoMerge branch 'master' of https://github.com/l1gi/cups
Martin Rehak [Fri, 26 May 2023 07:53:07 +0000 (09:53 +0200)] 
Merge branch 'master' of https://github.com/l1gi/cups

2 years agohost_os_name value in config-scripts has changed to 'solaris' some time ago
Martin Rehak [Thu, 18 May 2023 13:48:43 +0000 (15:48 +0200)] 
host_os_name value in config-scripts has changed to 'solaris' some time ago

2 years agoMerge pull request #461 from zdohnal/color_override_correction
zdohnal [Thu, 25 May 2023 14:52:53 +0000 (16:52 +0200)] 
Merge pull request #461 from zdohnal/color_override_correction

backend/ipp.c: Adjust job options with similar meaning to the same values

2 years agobackend/ipp.c: Adjust color job options 461/head
Zdenek Dohnal [Mon, 22 May 2023 15:52:43 +0000 (17:52 +0200)] 
backend/ipp.c: Adjust color job options

In case the client doesn't do it, we have to consolidate color options
in the job to prevent opposite options being set at the same time.

2 years agoMerge pull request #688 from Plombo/media-type-no-duplicate-names
Michael R Sweet [Wed, 24 May 2023 18:21:50 +0000 (14:21 -0400)] 
Merge pull request #688 from Plombo/media-type-no-duplicate-names

Fix duplicate PPD->IPP media-type name mappings

2 years agoFix duplicate PPD->IPP media-type name mappings 688/head
Bryan Cain [Fri, 12 May 2023 17:23:24 +0000 (11:23 -0600)] 
Fix duplicate PPD->IPP media-type name mappings

If more than one MediaType in a PPD matched the pattern for a registered
PWG media-type name, they would all be mapped to that name, making it
impossible for a client using CUPS' IPP interface to distinguish between
them or specify a particular one.

This comes up with Epson-provided PPDs, which frequently hit this case
by combining print quality with media type like so:
*MediaType PLAIN_HIGH/Plain paper-High: "
*MediaType PLAIN_NORMAL/Plain paper-Standard: "

Solve this problem by not assigning the standard PWG name to either one
when such duplication occurs.

2 years agoMerge pull request #706 from meshantz/delay-defaults-docs
Michael R Sweet [Fri, 19 May 2023 14:58:43 +0000 (10:58 -0400)] 
Merge pull request #706 from meshantz/delay-defaults-docs

Document default repeat interval

2 years agoDocument default repeat interval 706/head
Mike Shantz [Fri, 19 May 2023 14:41:48 +0000 (10:41 -0400)] 
Document default repeat interval

2 years agoPotential fix for Kyocera driver bug (Issue #619)
Michael R Sweet [Thu, 18 May 2023 20:47:17 +0000 (16:47 -0400)] 
Potential fix for Kyocera driver bug (Issue #619)

2 years agohost_os_name value in config-scripts has changed to 'solaris' some time ago
Martin Rehak [Thu, 18 May 2023 13:48:43 +0000 (15:48 +0200)] 
host_os_name value in config-scripts has changed to 'solaris' some time ago

2 years agoMerge pull request #692 from AtariDreams/inverse-check
Michael R Sweet [Sat, 13 May 2023 21:38:26 +0000 (17:38 -0400)] 
Merge pull request #692 from AtariDreams/inverse-check

Check that the number of trays is consistent before fetching anymore data

2 years agoMerge pull request #695 from ggodlewski/master
Michael R Sweet [Sat, 13 May 2023 21:36:43 +0000 (17:36 -0400)] 
Merge pull request #695 from ggodlewski/master

Fix ipptool JSON output

2 years agoCheck that the number of trays is consistent before fetching anymore data 692/head
Rose [Sat, 13 May 2023 19:14:34 +0000 (15:14 -0400)] 
Check that the number of trays is consistent before fetching anymore data

There is no point in getting this data otherwise if the number of sources defined for the media_sources and for the input_tray differ.

2 years agoFix ipptool JSON output 695/head
Grzegorz Godlewski [Sat, 13 May 2023 21:04:21 +0000 (23:04 +0200)] 
Fix ipptool JSON output

2 years agoMerge pull request #591 from AtariDreams/XOR-3
Michael R Sweet [Sat, 13 May 2023 20:38:28 +0000 (16:38 -0400)] 
Merge pull request #591 from AtariDreams/XOR-3

Use XOR for integers that are always 1 or 0

2 years agoUse XOR for integers that are always 1 or 0 591/head
Rose [Fri, 20 Jan 2023 18:23:45 +0000 (13:23 -0500)] 
Use XOR for integers that are always 1 or 0

This is more efficient than using the ! operator on older platforms.

2 years agoMerge pull request #655 from AtariDreams/What-We-Learned
Michael R Sweet [Fri, 12 May 2023 18:11:37 +0000 (14:11 -0400)] 
Merge pull request #655 from AtariDreams/What-We-Learned

Free memory leaked by Darwin's Core Foundation

2 years agoFree memory leaked by Darwin's Core Foundation 655/head
Rose [Wed, 19 Apr 2023 17:07:38 +0000 (13:07 -0400)] 
Free memory leaked by Darwin's Core Foundation

There are cases where we do not always free the CF objects we allocate, causing them to leak.

2 years agoMerge pull request #686 from AtariDreams/print_ptr
Michael R Sweet [Fri, 12 May 2023 15:44:25 +0000 (11:44 -0400)] 
Merge pull request #686 from AtariDreams/print_ptr

Use print_ptr instead of print_buffer

2 years agoMerge pull request #684 from AtariDreams/wordlen
Michael R Sweet [Fri, 12 May 2023 15:42:38 +0000 (11:42 -0400)] 
Merge pull request #684 from AtariDreams/wordlen

Wordlen should be a size_t, not an int

2 years agoWordlen should be a size_t, not an int 684/head
Rose [Thu, 11 May 2023 17:47:09 +0000 (13:47 -0400)] 
Wordlen should be a size_t, not an int

text is always more than or equal to ptr, so it will never underflow.

2 years agoUse print_ptr instead of print_buffer 686/head
Rose [Thu, 11 May 2023 20:19:32 +0000 (16:19 -0400)] 
Use print_ptr instead of print_buffer

It was forgotten about, making the whole bytes addition useless.

2 years agoMerge pull request #687 from davebarkerxyz/fix-persist-color-mode
Michael R Sweet [Fri, 12 May 2023 15:33:36 +0000 (11:33 -0400)] 
Merge pull request #687 from davebarkerxyz/fix-persist-color-mode

Fix check for existing color mode setting

2 years agoFix check for existing color mode setting 687/head
Dave Barker [Fri, 12 May 2023 09:39:52 +0000 (10:39 +0100)] 
Fix check for existing color mode setting

Colour mode selection is not persisted correctly across restarts. Current check is for "printer-color-mode", but every other reference to this option is "print-color-mode" (no "er"). This was causing the selected colour mode to be reset to the PPD default on restart.

2 years agoUpdate copyright.
Michael R Sweet [Wed, 10 May 2023 19:43:12 +0000 (15:43 -0400)] 
Update copyright.

2 years agoRemove unused variable.
Michael R Sweet [Wed, 10 May 2023 19:41:14 +0000 (15:41 -0400)] 
Remove unused variable.

2 years agoFix an integer overflow issue in the PWG media size name code (Issue #668)
Michael R Sweet [Wed, 10 May 2023 19:33:23 +0000 (15:33 -0400)] 
Fix an integer overflow issue in the PWG media size name code (Issue #668)

2 years agoMerge pull request #656 from AtariDreams/u
Michael R Sweet [Wed, 10 May 2023 18:43:52 +0000 (14:43 -0400)] 
Merge pull request #656 from AtariDreams/u

Use %u for unsigned, not signed

2 years agoUse %u for unsigned, not signed 656/head
Rose [Wed, 19 Apr 2023 18:12:13 +0000 (14:12 -0400)] 
Use %u for unsigned, not signed

2 years agoMerge pull request #590 from AtariDreams/memory
Michael R Sweet [Sat, 6 May 2023 13:18:13 +0000 (09:18 -0400)] 
Merge pull request #590 from AtariDreams/memory

Improve state handling in cases of memory allocation failure

2 years agoImprove state handling in cases of memory allocation failure 590/head
Rose [Fri, 20 Jan 2023 17:47:21 +0000 (12:47 -0500)] 
Improve state handling in cases of memory allocation failure

Many lines of code assume that malloc will not fail. In cases where it does, sometimes the program does not know, and as a result, memory can leak and more disastrous consequences can happen before the program ultimately finds something is wrong and then calls exit();

2 years agoMerge pull request #642 from zdohnal/raise_fortify
Michael R Sweet [Mon, 1 May 2023 23:18:14 +0000 (19:18 -0400)] 
Merge pull request #642 from zdohnal/raise_fortify

configure: Raise FORTIFY_SOURCE level to 3

2 years agoDrop Codacy code scanning.
Michael R Sweet [Mon, 1 May 2023 22:46:03 +0000 (18:46 -0400)] 
Drop Codacy code scanning.

2 years agoMerge pull request #659 from AtariDreams/strncmp
Michael R Sweet [Mon, 1 May 2023 18:20:45 +0000 (14:20 -0400)] 
Merge pull request #659 from AtariDreams/strncmp

Cast to unsigned long instead of long for size_t

2 years agoCast to unsigned long instead of long for size_t 659/head
Rose [Thu, 20 Apr 2023 17:31:34 +0000 (13:31 -0400)] 
Cast to unsigned long instead of long for size_t

size_t is unsigned, so let's not worry about signedness.

2 years agoMerge pull request #669 from AtariDreams/fields
Michael R Sweet [Mon, 1 May 2023 11:54:55 +0000 (07:54 -0400)] 
Merge pull request #669 from AtariDreams/fields

UBSan: Array over-read when operating on _fields

2 years agoconfigure: Use _FORTIFY_SOURCE if not defined already 642/head
Zdenek Dohnal [Fri, 28 Apr 2023 08:00:27 +0000 (10:00 +0200)] 
configure: Use _FORTIFY_SOURCE if not defined already

If _FORTIFY_SOURCE is not defined in flags, use its level 3.

Backported from libcups.

2 years agoUBSan: Array over-read when operating on _fields 669/head
Rose [Sun, 23 Apr 2023 17:09:50 +0000 (13:09 -0400)] 
UBSan: Array over-read when operating on _fields

We are reading outside of the _fields boundaries and onto other fields when we iterate across all the fields, rather than comparing just those that are within _fields, and then always freeing the ones that are not.

This PR fixes that.

2 years agoMerge pull request #670 from AtariDreams/pos-fp
Michael R Sweet [Tue, 25 Apr 2023 20:49:14 +0000 (16:49 -0400)] 
Merge pull request #670 from AtariDreams/pos-fp

UBSan: Contain pos - fp->bufpos in parentheses

2 years agoUBSan: Contain pos - fp->bufpos in parentheses 670/head
Rose [Sun, 23 Apr 2023 16:25:39 +0000 (12:25 -0400)] 
UBSan: Contain pos - fp->bufpos in parentheses

Yes I know this shouldn't change the behavior in theory, but clang insists it does in practice, so to quiet the UBSan, I put parentheses around pos - fp->bufpos.

2 years agoFix coverity-detected typo.
Michael R Sweet [Tue, 25 Apr 2023 11:34:20 +0000 (07:34 -0400)] 
Fix coverity-detected typo.

2 years agoFix build errors.
Michael R Sweet [Sun, 23 Apr 2023 21:44:33 +0000 (17:44 -0400)] 
Fix build errors.

2 years agoFix a few Coverity-reported issues.
Michael R Sweet [Sat, 22 Apr 2023 03:46:06 +0000 (23:46 -0400)] 
Fix a few Coverity-reported issues.

2 years agofilter/pstops.c: Fix incorrect comparison size for %%PageResources
Zdenek Dohnal [Thu, 20 Apr 2023 07:39:42 +0000 (09:39 +0200)] 
filter/pstops.c: Fix incorrect comparison size for %%PageResources

Fixes #658

2 years agoClean up OpenSSL fixes and changelog (Issue #652)
Michael R Sweet [Thu, 13 Apr 2023 15:22:51 +0000 (11:22 -0400)] 
Clean up OpenSSL fixes and changelog (Issue #652)

2 years agocups/tls-openssl.c: Use general names in certificates (fixes #652)
Zdenek Dohnal [Thu, 13 Apr 2023 08:31:58 +0000 (10:31 +0200)] 
cups/tls-openssl.c: Use general names in certificates (fixes #652)

This results into having only one Subject Alternative Name extension,
which fixes SEC_ERROR_EXTENSION_VALUE_INVALID in Firefox.

2 years agoREPORTING_ISSUES.md: Make the file more readable
Zdenek Dohnal [Mon, 27 Mar 2023 14:50:34 +0000 (16:50 +0200)] 
REPORTING_ISSUES.md: Make the file more readable

2 years agoMerge pull request #617 from AtariDreams/cupsMakeServerCredentials
Michael R Sweet [Sat, 4 Mar 2023 18:43:36 +0000 (13:43 -0500)] 
Merge pull request #617 from AtariDreams/cupsMakeServerCredentials

cupsMakeServerCredentials should return 0 on failure, 1 on success

2 years agoMerge pull request #632 from AtariDreams/apple
Michael R Sweet [Sat, 4 Mar 2023 18:35:39 +0000 (13:35 -0500)] 
Merge pull request #632 from AtariDreams/apple

Prefer atof over strtod

2 years agocupsMakeServerCredentials should return 0 on failure, 1 on success 617/head
Rose [Sun, 19 Feb 2023 16:27:27 +0000 (11:27 -0500)] 
cupsMakeServerCredentials should return 0 on failure, 1 on success

Currently, it returns -1 on error it seems, which is not how the function is documented to work.

2 years agoPrefer atof over strtod 632/head
Rose [Thu, 2 Mar 2023 14:29:24 +0000 (09:29 -0500)] 
Prefer atof over strtod

This is much simpler to call over strtod and is supported on more older platforms.

2 years agoMerge pull request #627 from Plombo/media-col-default
Michael R Sweet [Fri, 3 Mar 2023 20:57:39 +0000 (15:57 -0500)] 
Merge pull request #627 from Plombo/media-col-default

Include media-type and media-source in media-col-default

2 years agoMerge pull request #629 from zdohnal/ippeveprinter_typo
zdohnal [Fri, 3 Mar 2023 05:38:16 +0000 (06:38 +0100)] 
Merge pull request #629 from zdohnal/ippeveprinter_typo

ippeveprinter.c: Check the created `path` string instead of `command`

2 years agoInclude media-type and media-source in media-col-default 627/head
Bryan Cain [Wed, 1 Mar 2023 19:54:26 +0000 (12:54 -0700)] 
Include media-type and media-source in media-col-default

Otherwise, there's no way for clients to know the default media type or
source unless they're using the legacy PPD API.

2 years agoippeveprinter.c: Check the created `path` string instead of `command` 629/head
Zdenek Dohnal [Thu, 2 Mar 2023 14:11:55 +0000 (15:11 +0100)] 
ippeveprinter.c: Check the created `path` string instead of `command`

If a user passes the command by only its name, we have to check the path
string we created instead of command string alone.

2 years agoMerge pull request #626 from vliaskov/master
zdohnal [Wed, 1 Mar 2023 16:51:21 +0000 (17:51 +0100)] 
Merge pull request #626 from vliaskov/master

cups/http-addr.c: Set listen backlog size to INT_MAX

2 years agocups/http-addr.c: Set listen backlog size to INT_MAX (fixes #308) 626/head
Vasilis Liaskovitis [Wed, 1 Mar 2023 12:46:28 +0000 (13:46 +0100)] 
cups/http-addr.c: Set listen backlog size to INT_MAX (fixes #308)

Use a listen queue size of INT_MAX, which should default to the maximum
supported queue size on the system.

This avoids the problem of the listening backlog queue getting full when
there are too many requests at the same time. The problem was observed
with the previous backlog size (128) by customers when submitting large
batches of print jobs, resulting in some jobs getting lost.

Signed-off-by: Vasilis Liaskovitis <vliaskovitis@suse.com>
2 years agoMerge pull request #625 from OpenPrinting/dependabot/github_actions/microsoft/setup...
Michael R Sweet [Wed, 1 Mar 2023 12:46:20 +0000 (07:46 -0500)] 
Merge pull request #625 from OpenPrinting/dependabot/github_actions/microsoft/setup-msbuild-1.3.1

Bump microsoft/setup-msbuild from 1.1.3 to 1.3.1

2 years agoBump microsoft/setup-msbuild from 1.1.3 to 1.3.1 625/head
dependabot[bot] [Wed, 1 Mar 2023 11:00:08 +0000 (11:00 +0000)] 
Bump microsoft/setup-msbuild from 1.1.3 to 1.3.1

Bumps [microsoft/setup-msbuild](https://github.com/microsoft/setup-msbuild) from 1.1.3 to 1.3.1.
- [Release notes](https://github.com/microsoft/setup-msbuild/releases)
- [Changelog](https://github.com/microsoft/setup-msbuild/blob/main/building-release.md)
- [Commits](https://github.com/microsoft/setup-msbuild/compare/v1.1.3...v1.3.1)

---
updated-dependencies:
- dependency-name: microsoft/setup-msbuild
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #616 from AtariDreams/fix-macos
Michael R Sweet [Sun, 19 Feb 2023 02:09:48 +0000 (21:09 -0500)] 
Merge pull request #616 from AtariDreams/fix-macos

Resolve macOS build errors

2 years agoResolve macOS build errors 616/head
Rose [Fri, 17 Feb 2023 20:24:21 +0000 (15:24 -0500)] 
Resolve macOS build errors

Make the err variable actually used and make secCert not const.

Also fixup httpSaveCredentials behavior to better match the changes made to err.

2 years agoIn auto-generated PPDs do not set RGB default on mono printers
Till Kamppeter [Wed, 15 Feb 2023 21:01:05 +0000 (22:01 +0100)] 
In auto-generated PPDs do not set RGB default on mono printers

When a PPD for a driverless printer is generated by the
_ppdCreateFromIPP2() function and the get-printer-attributes IPP
response gives "print-color-mode-default=auto" the PPD's default
setting for "ColorModel" is always "RGB", even on monochrome printers,
which makes printing fail on most devices.

Now we ignore the "print-color-mode-default" if set to "auto" and
proceed as if no default was given, finding the default by selecting
the most desirable of the existing "ColorModel" choices.

2 years agoMerge pull request #609 from AtariDreams/redundant 631/head
Michael R Sweet [Fri, 3 Feb 2023 18:19:05 +0000 (13:19 -0500)] 
Merge pull request #609 from AtariDreams/redundant

Remove redundant checks

2 years agoRemove redundant checks 609/head
Rose [Fri, 3 Feb 2023 15:55:17 +0000 (10:55 -0500)] 
Remove redundant checks

These checks just do extra work and have no effect

My justification:
https://godbolt.org/z/bP6GzzMza

2 years agoMerge pull request #607 from yetamrra/ub-printf-fix
Michael R Sweet [Wed, 1 Feb 2023 21:24:26 +0000 (16:24 -0500)] 
Merge pull request #607 from yetamrra/ub-printf-fix

Fix UB in cups_raster_read debug message

2 years agoFix UB in cups_raster_read debug message 607/head
Benjamin Gordon [Wed, 1 Feb 2023 17:01:42 +0000 (10:01 -0700)] 
Fix UB in cups_raster_read debug message

The first time `cups_raster_read` is called, both `r->bufptr` and
`r->buffer` are NULL.  The calculation here then ends up looking like
adding a size_t to a NULL pointer, which triggers the ubsan detector.
Since we just want an offset, cast the pointer difference to ssize_t
like the code already does a few lines below.

2 years agoFix compile issue on macOS.
Michael R Sweet [Tue, 31 Jan 2023 01:10:01 +0000 (20:10 -0500)] 
Fix compile issue on macOS.

2 years agoMerge pull request #605 from AtariDreams/bounds
Michael R Sweet [Mon, 30 Jan 2023 23:34:00 +0000 (18:34 -0500)] 
Merge pull request #605 from AtariDreams/bounds

Fix bounds of description

2 years agoFix bounds of description 605/head
Rose [Mon, 30 Jan 2023 22:37:09 +0000 (17:37 -0500)] 
Fix bounds of description

description is 256. However, buffer is 258, which is a problem because we are possibly exceeding the bounds of description when we access description[2 * i + 2] as i approaches 256. I refactored the code to make it more obvious that this should be avoided.

2 years agoUpdate OpenPrinting copyrights
Zdenek Dohnal [Mon, 30 Jan 2023 08:52:35 +0000 (09:52 +0100)] 
Update OpenPrinting copyrights

2 years agoBug report related changes
Zdenek Dohnal [Mon, 30 Jan 2023 08:30:15 +0000 (09:30 +0100)] 
Bug report related changes

- adjust bug template to mention CUPS version, an application instead of
  browser, precise OS name and version and mention REPORTING_ISSUES
  document
- fix a typo in REPORTING_ISSUES document
- mention REPORTING_ISSUES document README

2 years agoMerge pull request #602 from zdohnal/reporting_issues
zdohnal [Mon, 30 Jan 2023 08:12:10 +0000 (09:12 +0100)] 
Merge pull request #602 from zdohnal/reporting_issues

REPORTING_ISSUES.md: Initial page

2 years agoAdd templates for issue reports
Till Kamppeter [Mon, 30 Jan 2023 02:21:46 +0000 (23:21 -0300)] 
Add templates for issue reports

This adds a selection screen when you click the button to report a new
issue on the "Issues" page. The selection screen does not only create
one entry for each issue template but also one extra entry for
security (private) bug reports. The latter is especially important as
otherwise the entrance point for a security bug report is hidden on
the security page.

2 years agoMerge pull request #603 from AtariDreams/Next-OR
Michael R Sweet [Mon, 30 Jan 2023 01:58:04 +0000 (20:58 -0500)] 
Merge pull request #603 from AtariDreams/Next-OR

Fix-up ORs

2 years agoMerge pull request #528 from AtariDreams/backchannel
Michael R Sweet [Mon, 30 Jan 2023 01:56:53 +0000 (20:56 -0500)] 
Merge pull request #528 from AtariDreams/backchannel

Fix backchannel status checking bugs

2 years agoFix-up ORs 603/head
Rose [Sun, 29 Jan 2023 17:09:19 +0000 (12:09 -0500)] 
Fix-up ORs

Missed a few spots

2 years agoFix backchannel status checking bugs 528/head
Rose [Fri, 11 Nov 2022 15:31:06 +0000 (10:31 -0500)] 
Fix backchannel status checking bugs

Checking for merely (status < 0) is a bug because the check for timeout is deliberate.

Note that you have an if (timeout < 0) at the beginning

So if the timeout is set to a value, it should check for that value.

Co-Authored-By: aaaaaa123456789 <aaaaaa123456789@acidch.at>
2 years agoMerge pull request #599 from tillkamppeter/master
Michael R Sweet [Sun, 29 Jan 2023 15:30:56 +0000 (10:30 -0500)] 
Merge pull request #599 from tillkamppeter/master

PPD for driverless IPP: Poll "media-col-database" separately if needed

2 years agocupsDoRequest() response pointer does not need to get initialized 599/head
Till Kamppeter [Sun, 29 Jan 2023 00:23:20 +0000 (21:23 -0300)] 
cupsDoRequest() response pointer does not need to get initialized

2 years ago REPORTING_ISSUES.md: Initial page 602/head
Zdenek Dohnal [Fri, 27 Jan 2023 09:38:59 +0000 (10:38 +0100)] 
 REPORTING_ISSUES.md: Initial page

2 years agoMerge pull request #593 from AtariDreams/OR-3
Michael R Sweet [Wed, 25 Jan 2023 19:04:24 +0000 (14:04 -0500)] 
Merge pull request #593 from AtariDreams/OR-3

Use bitwise OR instead of addition

2 years agoUse bitwise OR instead of addition 593/head
Rose [Fri, 20 Jan 2023 18:42:08 +0000 (13:42 -0500)] 
Use bitwise OR instead of addition

2 years agoBuild system: Support new snapd-glib-2 API
Till Kamppeter [Sun, 22 Jan 2023 02:30:52 +0000 (23:30 -0300)] 
Build system: Support new snapd-glib-2 API

There is a new API of snapd-glib used for libsoup3

The original API, snapd-glib, is still supported.

2 years agoPPD for driverless IPP: Poll "media-col-database" separately if needed
Till Kamppeter [Sun, 22 Jan 2023 00:28:02 +0000 (21:28 -0300)] 
PPD for driverless IPP: Poll "media-col-database" separately if needed

In the create_local_bg_thread() function for auto-generating a PPD
file for a CUPS queue for a driverless printer, either via the
"everywhere" model selection or an auto-created temporary queue we
need to query the full capabilities information from the printer.

To get the full set of printer properties from a driverless IPP
printer one does a "get-printer-attributes" IPP request with the
attribute "requested-attributes" set to "all,media-col-database" (note
that "all" does not include "media-col-database" because this
attribute is often very long, it contains all valid combinations of
media size, media type, media source, and margins). For some printers
this fails and we fall back to just "all" and lose valuable
information.

But some of those printers which do not support "requested-attributes"
set to "all,media-col-database" support "requested-attributes" set to
"media-col-database" alone and this we now make use of, by polling
"media-col-database" separately and adding it to the IPP response of
"all" if needed.

We discovered such a printer here:

    https://github.com/OpenPrinting/cups-filters/issues/492

2 years agoEliminate trivial switch's.
Michael R Sweet [Sat, 21 Jan 2023 22:14:29 +0000 (17:14 -0500)] 
Eliminate trivial switch's.

2 years agoFix Windows compile error.
Michael R Sweet [Sat, 21 Jan 2023 22:00:14 +0000 (17:00 -0500)] 
Fix Windows compile error.