ipp icon indicating copy to clipboard operation
ipp copied to clipboard

The spec is not clear on how to handle tag

Open alex-eri opened this issue 1 year ago • 1 comments

The spec is not clear on how to handle tag 19: date-time-at-completed=undefined. Please open a github issue to help find a solution!
The spec is not clear on how to handle tag 19: time-at-completed=undefined. Please open a github issue to help find a solution!

OpenPrinting CUPS 2.4.1

{
  version: '2.0',
  statusCode: 'successful-ok',
  id: 81309427,
  'operation-attributes-tag': {
    'attributes-charset': 'utf-8',
    'attributes-natural-language': 'en-us'
  },
  'job-attributes-tag': {
    'number-of-documents': 1,
    'job-media-progress': 0,
    'job-more-info': 'http://localhost:631/jobs/80',
    'job-printer-up-time': 1685629609,
    'job-printer-uri': 'ipp://localhost:631/printers/printer',
    'job-uri': 'ipp://localhost:631/jobs/80',
    'printer-uri': 'ipp://localhost:3000/printers/printer',
    'document-format': 'application/pdf',
    'document-format-supplied': 'application/pdf',
    'job-priority': 50,
    'job-uuid': 'urn:uuid:62cc03c5-4027-3218-757d-23f9e254f6eb',
    'date-time-at-completed': undefined,
    'date-time-at-creation': 2023-07-01T08:26:49.000Z,
    'date-time-at-processing': 2023-07-01T08:26:49.000Z,
    'time-at-completed': undefined,
    'time-at-creation': 1685629609,
    'time-at-processing': 1685629609,
    'job-id': 80,
    'job-state': 'processing',
    'job-state-reasons': 'job-printing',
    'job-impressions-completed': 0,
    'job-media-sheets-completed': 0,
    'job-k-octets': 285,
    'job-hold-until': 'no-hold',
    'job-sheets': [ 'none', 'none' ]
  }
}

alex-eri avatar Jun 01 '23 14:06 alex-eri

Not sure what "undefined" means here but RFC 8011 defines date-time-at-completed thus:

5.3.14.7.  date-time-at-completed (dateTime|unknown|no-value)
   This RECOMMENDED attribute indicates the date and time at which the
   Job entered a Terminating State (’completed’, ’canceled’, or
   ’aborted’).

wifiprintguy avatar Jun 02 '23 20:06 wifiprintguy