-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add redirect location to exception message #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
I've never seen a printer returning a redirect. What brand and model is it? |
hm. the build fails due to missing SONAR_TOKEN (only available in my context I guess). |
manually added: db628c1 |
@gmuth The issue with the missing When do you plan to release a new version to maven central? Version 3.1 is from Nov 2023 and since then a lot of commits have been done to this repository. So IMHO it´s time for a new release ;) WDYT? |
Btw. the |
I understand, sorry about that. I'll look into it.
In fact I am going to publish a new version soon - it's really overdue. |
Even though IPP is based on HTTP the spec does not define what a printer should do or should not do on the HTTP level. Some printers even return HTTP 400 instead of IPP status client-error-bad-request. However for SSL/TLS RFC 8010 8.2 refers to the option to upgrade an existing socket to use TLS. So CUPS responds with "HTTP 426 Upgrade required" when sensitive information is being transmitted and no TLS is used - hence the hint "Try ipps://..." is added. For printerURIs schemas I might investigate further on this topic - e.g. look if I can request a server to upgrade to TLS from client side. |
Hi @gmuth ,
thanks for providing this really nice library.
Today I faced an issue when I tried to print when the printer returned a
307, Temporary Redirect
.I know I could simply catch the
HttpPostException
and extract the header myself, which I gonna do now, but IMHO it would be convenient to have the desired location already as part of the message.Please let me know what you think.