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

Moving a job does not prompt to authenticate #3559

Closed
michaelrsweet opened this issue Apr 20, 2010 · 3 comments
Closed

Moving a job does not prompt to authenticate #3559

michaelrsweet opened this issue Apr 20, 2010 · 3 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.4-current
CUPS.org User: nassarmu

In the Jobs screen selecting the move button to move the job to another printer immediately returns a Forbidden page if unauthenticated.

The Cancel job button brings up the http authentication window. this should be the result when clicking on the move button as well.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

We're probably sending some output before we try the operation, preventing the normal authentication hook from working...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"str3559.patch":

Index: cgi-bin/ipp-var.c

--- cgi-bin/ipp-var.c (revision 9172)
+++ cgi-bin/ipp-var.c (working copy)
@@ -285,10 +285,14 @@

/*

  • * See who is logged in...
    • Make sure we have a username...
      */
  • user = getenv("REMOTE_USER");
  • if ((user = getenv("REMOTE_USER")) == NULL)
  • {
  • puts("Status: 401\n");
  • exit(0);
  • }

/*

  • See if the user has already selected a new destination...

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