Universal Print not supporting IPP tag "nameWithoutLanguage" for attribute "media-type-supported"

%3CLINGO-SUB%20id%3D%22lingo-sub-2202600%22%20slang%3D%22en-US%22%3EUniversal%20Print%20not%20supporting%20IPP%20tag%20%22nameWithoutLanguage%22%20for%20attribute%20%22media-type-supported%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202600%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3Ewe%20are%20testing%20our%20custom%20Universal%20Print%20connector%2C%20which%20updates%20the%20printers'%20attributes%20using%20the%20ones%20coming%20from%20the%20printers%20via%20IPP.%3C%2FP%3E%3CP%3EWe%20were%20able%20to%20print%20on%20some%20of%20the%20printers%2C%20specifically%20the%20ones%20for%20which%20the%20attribute%20%22media-type-supported%22%20was%20of%20type%20%221setOf(keyword)%22.%20Instead%2C%20we%20couldn't%20print%20on%20the%20printers%20which%20had%20%221setOf(nameWithoutLanguage)%22%20as%20a%20type%20for%20that%20attribute%3A%20the%20spooler%20failed%20to%20send%20the%20print%20job%20to%20Universal%20Print.%3C%2FP%3E%3CP%3EIs%20this%20behavior%20intentional%3F%20Considering%20the%20%3CA%20href%3D%22https%3A%2F%2Fftp.pwg.org%2Fpub%2Fpwg%2Fcandidates%2Fcs-ippjobext20-20190816-5100.7.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EIPP%20document%20describing%20that%20attribute%3C%2FA%3E%2C%20%22keyword%22%20and%20%22name%22%20(i.e.%20%22nameWithLanguage%22%20or%20%22nameWithoutLanguage%22)%20should%20be%20allowed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20a%20workaround%2C%20at%20the%20moment%20we%20are%20overriding%20that%20tag%2C%20but%20in%20the%20future%20we%20would%20like%20to%20validate%20the%20attributes%20using%20a%20fixed%20criterion%2C%20that's%20why%20we%20are%20reporting%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EGianvito%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2203992%22%20slang%3D%22en-US%22%3ERe%3A%20Universal%20Print%20not%20supporting%20IPP%20tag%20%22nameWithoutLanguage%22%20for%20attribute%20%22media%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2203992%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F947200%22%20target%3D%22_blank%22%3E%40Gianvito_Difilippo%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EHello%2C%20we%20are%20also%20experiencing%20the%20same%20problem.%20Same%20printer%20but%20we%20cannot%20print%20on%20windows%2020H2%20and%20window%202004%20versions.%3CBR%20%2F%3EWhen%20the%20media-type-supported%20property%20is%20overridden%2C%20only%20the%20first%20job%20can%20be%20sent%20to%20the%20Universal%20Printer%2C%20and%20from%20the%20second%20job%20no%20status%20or%20error%20messages%20are%20returned.%3CBR%20%2F%3EDo%20you%20have%20such%20a%20situation.%3CBR%20%2F%3ECan%20you%20send%20me%20the%20value%20you%20override%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2204889%22%20slang%3D%22en-US%22%3ERe%3A%20Universal%20Print%20not%20supporting%20IPP%20tag%20%22nameWithoutLanguage%22%20for%20attribute%20%22media%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2204889%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F680583%22%20target%3D%22_blank%22%3E%40DienVaTuDo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20I%20just%20want%20to%20point%20out%20that%20we%20are%20not%20overriding%20its%20value%20(or%20rather%20values%2C%20since%20it's%20a%20list)%20but%20its%20IPP%20tag(s).%20The%20values%20comes%20straight%20out%20of%20the%20printer%2C%20but%20sometimes%20they%20come%20with%20the%20tag%20%22nameWithoutLanguage%22%20(which%20byte%20value%20is%200x41)%2C%20instead%20of%20%22keyword%22%20(0x44).%20So%20the%20only%20thing%20we%20do%20is%20changing%20that%200x41%20bytes%20into%200x44.%3C%2FP%3E%3CP%3EHowever%2C%20you%20can%20find%20a%20json%20file%20in%20the%20attachments%20with%20such%20values%20and%20tags.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20the%20way%20-%26nbsp%3Bas%20far%20as%20I%20know%20-%20I%20can%20print%20multiple%20times%20when%20that%20workaround%20is%20used.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

we are testing our custom Universal Print connector, which updates the printers' attributes using the ones coming from the printers via IPP.

We were able to print on some of the printers, specifically the ones for which the attribute "media-type-supported" was of type "1setOf(keyword)". Instead, we couldn't print on the printers which had "1setOf(nameWithoutLanguage)" as a type for that attribute: the spooler failed to send the print job to Universal Print.

Is this behavior intentional? Considering the IPP document describing that attribute, "keyword" and "name" (i.e. "nameWithLanguage" or "nameWithoutLanguage") should be allowed.

 

As a workaround, at the moment we are overriding that tag, but in the future we would like to validate the attributes using a fixed criterion, that's why we are reporting this issue.

 

Thanks,

Gianvito

4 Replies

@Gianvito_Difilippo 
Hello, we are also experiencing the same problem. Same printer but we cannot print on windows 20H2 and window 2004 versions.
When the media-type-supported property is overridden, only the first job can be sent to the Universal Printer, and from the second job no status or error messages are returned.
Do you have such a situation.
Can you send me the value you override?

@DienVaTuDo 

Hi, I just want to point out that we are not overriding its value (or rather values, since it's a list) but its IPP tag(s). The values comes straight out of the printer, but sometimes they come with the tag "nameWithoutLanguage" (which byte value is 0x41), instead of "keyword" (0x44). So the only thing we do is changing that 0x41 bytes into 0x44.

However, you can find a json file in the attachments with such values and tags.

 

By the way - as far as I know - I can print multiple times when that workaround is used.

Hello,
Yes as per IPP, media-type-supported can be either "keyword" or "name". However, Microsoft Windows supports only the "keyword" values and skips the "name" values for media-type-supported attribute.

Hello,
thank you for confirming that.
Can you tell me if there is a way to know in advance which types and values are allowed/supported by Universal Print for the attributes to provide when registering the printer? It would be very helpful to perform some sort of validation before registering the printer.

For example, we are having issues with the attribute "pclm-strip-height-supported" which the IPP specification says should be of type integer (and be a power of 2), but supplying such values results in an error response.