cups icon indicating copy to clipboard operation
cups copied to clipboard

Default options not retrieved correctly

Open metabiswadeep opened this issue 1 year ago • 1 comments

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

metabiswadeep avatar Sep 27 '24 18:09 metabiswadeep