Skip to content

Default options not retrieved correctly #39

@metabiswadeep

Description

@metabiswadeep

Describe the bug
While working on fixing default options not being retrieved correctly by CPDB, I found that the CUPS is not returning the values of the default options correctly. It can be seen that default options are retrieved by https://github.com/OpenPrinting/cpdb-backend-cups/blob/master/src/backend_helper.c#L688 and it seems that the wrong default value is retrieved here, atleast for the case of resolution for a dummy printer instance of default resolution 1200dpi. It goes on to https://github.com/OpenPrinting/cpdb-backend-cups/blob/master/src/backend_helper.c#L701 which then goes to https://github.com/OpenPrinting/cpdb-backend-cups/blob/master/src/backend_helper.c#L1955 then to https://github.com/OpenPrinting/cpdb-backend-cups/blob/master/src/backend_helper.c#L1967 which gives 300 as the output though it should give 1200. It seems that the CUPS calls being made here are not returning the correct default values.

Expected behavior
The correct default value should get returned from CUPS.

System Information:

  • Ubuntu 23.10
  • CUPS version 2.4.6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions