Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Fix handling of OctetString in get_options() function#5558

Closed
Nikitosh wants to merge 1 commit into
apple:masterfrom
Nikitosh:fix-octet-string-handling
Closed

Fix handling of OctetString in get_options() function#5558
Nikitosh wants to merge 1 commit into
apple:masterfrom
Nikitosh:fix-octet-string-handling

Conversation

@Nikitosh

@Nikitosh Nikitosh commented Apr 5, 2019

Copy link
Copy Markdown

The OctetString option was handled as if they have IPP_TAG_NAME tag, though it stores its data in unknown.data instead of string.text and also stores length instead of '\0' end symbol.

@michaelrsweet

Copy link
Copy Markdown
Contributor

This fix is incomplete - ipp_length() also needs to be updated...

michaelrsweet added a commit that referenced this pull request Apr 15, 2019
scheduler/job.c:
- get_options(): Correctly encode IPP_TAG_STRING as a quoted string or a hex
  string depending on the value.
- ipp_length(): Handle IPP_TAG_STRING separately.
michaelrsweet added a commit that referenced this pull request Apr 15, 2019
scheduler/job.c:
- get_options(): Handle IPP_TAG_STRING separately and either provide a quoted
  string or a hex string, depending on the value.
- ipp_length(): Handle IPP_TAG_STRING separately.
@michaelrsweet

Copy link
Copy Markdown
Contributor

I'm also opting to support hex encoding when the string contains binary data.

[master 5483fd2] Correctly encode octetString values for print filters (Issue #5558)

[branch-2.2 803b6de] Correctly encode octetString values for print filters (Issue #5558)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants