[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
** Also affects: hundredpapercuts Importance: Undecided Status: New ** Summary changed: - cups-pdf requires user to create output folder in 8.10 before working correctly. + cups-pdf requires user to create output folder before working correctly. -- cups-pdf requires user to create output folder before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
** Also affects: apparmor (Ubuntu) Importance: Undecided Status: New -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
Confirmed still a problem with a new install of Jaunty. cups-pdf 2.5.0-1ubuntu1 PDF printer for CUPS The failure to write to the ~./PDF directory can be confirmed with tail /var/log/cups/cups_pdf.log mkdir .PDF from users home directory resolves. Apparmor audit entry says: kernel: [ 1938.022085] type=1503 audit(1243933166.961:11): operation="capable" name="dac_override" pid=4553 profile="/usr/lib/cups/backend/cups-pdf" the Apparmor profile /etc/apparmor.d/usr.sbin.cupsd contains: # we treat cups-pdf specially, since it needs to write into /home # and thus needs extra paranoia /usr/lib/cups/backend/cups-pdf Px, # separate profile since this needs to write into /home /usr/lib/cups/backend/cups-pdf { #include #include #include #include capability chown, capability fowner, capability fsetid, capability setgid, capability setuid, /bin/dash ixr, /bin/bash ixr, /etc/papersize r, /etc/cups/cups-pdf.conf r, @{HOME}/PDF/ rw, @{HOME}/PDF/* rw, /usr/bin/gs ixr, /usr/lib/cups/backend/cups-pdf mr, /usr/lib/ghostscript/** mr, /usr/share/** r, /var/log/cups/cups-pdf_log w, /var/spool/cups-pdf/** rw, } It would seem that there are rules to allow writing to ~./PDF and ~./PDF/*, but they are not working. I was not able to work out why. This is a trivial problem for experienced users to solve, but as a usability issue for non-technical users it deserves a higher priority. While there is an out-of-box alternative 'print to file', select 'pdf' format, this may not be intuitive or clear for new users, as the documentation at https://help.ubuntu.com/community/PDFPrinting?action=show&redirect=PrintToPDF is outdated and only mentions the cups-pdf method. I will try and update it. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
My suggestion would be to change the binary-package of this bug from cups-pdf to apparmor, because I think this is an apparmor bug. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
Same problem on Jaunty. I agree with MyR, this bug should have a higher priority. There isn't any warning or error message, so many users won't know why printing to PDF didn't work. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
+1 Jaunty. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
I can also confirm the bug in Jaunty (stable). -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
I can confirm that this bug occurs in Jaunty as well. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
Why don't you change the default output direcory to the home dir instead? Sounds like it will avoid apparmor and locale issues. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
The situation with AppArmor is a known issue that has been documented in /usr/share/doc/cups-pdf/README.Debian for quite some time already. Previously, it only prevented outputing documents to non-standard directories. Recently, it also started to prevent the initial creation of the standard PDF directory under ${HOME}. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
I tried to make a patch to solve the issue, but I got stuck. I wrote an email to the upstream author of cups-pdf Volker C. Behr. He pointed out some issue: and after checking his suggestions, it seems that one of his hunch is the winner: it is AppArmor. Try: 1. Delete the PDF directory, then try to print. Won't work, as mentioned above. 2. Stop AppArmor (sudo /etc/init.d/apparmor stop), and try to print again. PDF directory gets created, and everything is fine. I have no clue what it is in AppArmor config, that causes this (I have very little knowledge of AppArmor), so this is beyond me. I guess this is an AppArmor bug. P.S.: Just for the record, Volker C. Behr replied in 20 minutes after I wrote the mail to him. So cheers and thanks to him from here too. Rgds, Attila -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
Why is this of low importance? The bug causes the package not to work at all. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
Confirmed Still busted in Jaunty-beta. Workaround works. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
Is this bug fixed in Jaunty? -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
Confirmed. Workaround works. Ubuntu 8.10 i386. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
There is some information relevant to this issue in Bug #134682. I was about to propose that we change the default to a directory like Desktop or Documents which come as default on an Ubuntu install and we can assume the user will have, unlike PDF. Unfortunately, cups-pdf's configuration doesn't understand things like "XDG_DESKTOP_DIR" so we run into issues with locales. We shouldn't be hard-codeing one language as that would break all others. -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 295318] Re: cups-pdf requires user to create output folder in 8.10 before working correctly.
** Tags added: bitesize -- cups-pdf requires user to create output folder in 8.10 before working correctly. https://bugs.launchpad.net/bugs/295318 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs