Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The spec is not clear on how to handle tag #104

Open
alex-eri opened this issue Jun 1, 2023 · 1 comment
Open

The spec is not clear on how to handle tag #104

alex-eri opened this issue Jun 1, 2023 · 1 comment

Comments

@alex-eri
Copy link

alex-eri commented Jun 1, 2023

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' ]
  }
}
@wifiprintguy
Copy link

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’).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants