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

error message when restarting job #362

Closed
michaelrsweet opened this issue Oct 31, 2003 · 4 comments
Closed

error message when restarting job #362

michaelrsweet opened this issue Oct 31, 2003 · 4 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1.20rc5
CUPS.org User: steve.p.walsh.hp

OS is Solaris 8

Got the following error message when restarting a print job even though the job restarted and printed:

lp -i testpr-3 -H restart
lp: set-job-attributes failed: client-error-not-possible

With debug2 I can see that the restarted job had completed before the set-job-attributes was processed.

CancelJob: id = 3
...
ProcessIPPRequest(.......
set_job_attrs:(......., ipp://localhost/jobs/3)
set_job_attrs: job #3 is finished and cannot be altered
send_ipp_error(......, 404)
....

The problem does not always occur. It depends how quick the job is processed. It is easier to see if print a small text file to a file device eg file:/tmp/prout

As the job does print it is not too much of a problem, just confusing for the user.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Hmm, will look at the lp code and see what is going on...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Super-simple patch attached - it was setting the attributes even though there was nothing to set... :)

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in CVS - the anonymous CVS repository will be updated at midnight EST.

@michaelrsweet
Copy link
Collaborator Author

"str362.patch":

Index: lp.c

RCS file: /development/cvs/cups/systemv/lp.c,v
retrieving revision 1.44
diff -u -r1.44 lp.c
--- lp.c 9 May 2003 18:50:42 -0000 1.44
+++ lp.c 7 Nov 2003 20:13:42 -0000
@@ -673,6 +673,9 @@
char uri[HTTP_MAX_URI]; /* URI for job */

  • if (num_options == 0)
  • return (0);

http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption());

language = cupsLangDefault();

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

No branches or pull requests

1 participant