Launchpad has imported 14 comments from the remote bug at https://bugs.documentfoundation.org/show_bug.cgi?id=116211.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2018-03-05T17:13:13+00:00 Bernard Moreton wrote: Description: When tools/options/internet/email is set to /usr/bin/claws-mail, send by email fails. If it's unsert, to allow a default of xdg-email, it still fails, and if it's explicitly set to /usr/bin/xdg-email it still does not work. Trying to Send now leaves me in limbo, somewhere between LO and my email client (Claws), with neither having focus, so alt-tab gets me nowhere until I manually reassert focus on one or the other. Build ID: 1:6.0.2~rc1-0ubuntu0.16.04.1~lo1 on Ubunto 16.04.4 LTS Help (on tools/options/internet/email) is not at all helpful, and Browse isn't either - on my system it includes claws-mail. If I select xdg-email, then I get the same result s for Claws. xdg-email --attach <FILE> works fine for me from the command line. If AppArmor has to be enforced, then suitable documentation should be provided for new users. It seems that security is now a step ahead of usability? Steps to Reproduce: 1.Set email cliednt (tools/options) to claws-mail or xdg-email 2.send (current) document as attachment 3. Actual Results: Neither LO nor email client has focus, and nothing happens Expected Results: Document should be properly attached to n (draft) email Reproducible: Always User Profile Reset: Yes OpenGL enabled: Yes Additional Info: Always worked fine until 6.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) QupZilla/1.8.9 Safari/538.1 Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/18 ------------------------------------------------------------------------ On 2018-03-06T07:32:06+00:00 Olivier Tilloy wrote: Tested and I can reproduce the issue when claws-mail is the default e-mail client on the system, even with apparmor profiles disabled (so unlikely to be an apparmor-related issue). Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/20 ------------------------------------------------------------------------ On 2018-03-06T08:14:20+00:00 Dgp-mail wrote: (In reply to Olivier Tilloy from comment #1) > Tested and I can reproduce the issue Olivier, if you can reproduce the issue, you can change status to NEW (I did it,because of your comment) Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/21 ------------------------------------------------------------------------ On 2018-09-17T11:16:48+00:00 Bernard Moreton wrote: Send by email still fails in 6.1.1.2. This is disappointing, since 'sending' a document is a basic operation, which users would naturally expect. As noted, this all worked prior to 6.0, so it's a regression. Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/22 ------------------------------------------------------------------------ On 2018-09-17T13:14:22+00:00 Bernard Moreton wrote: I see a similar report on Apache OpenOffice, also on the Ubuntu bug reports. Following a hint from the latter, I deleted the entry "/usr/bin/claws-mail" in Tools/Options/Internet/Email and tried again to send a document. This time no error was reported to the GUI, but I'd called soffice from the commandline, and there an error had appeared "/usr/lib/libreoffice/program/senddoc: 361: /usr/lib/libreoffice/program/senddoc: /usr/bin/claws-mail: Permission denied" A long listing shows -rwxr-xr-x 1 root root 3950472 Dec 17 2017 /usr/bin/claws-mail which looks ok? I'll restore the setting in Tools/Options, since a visible error message is better than an invisible one! Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/23 ------------------------------------------------------------------------ On 2018-09-18T09:50:33+00:00 Bernard Moreton wrote: I modified 'senddoc' temporarily, to 'echo' the claws-mail command, and opened my testfile again from the commandline. That showed /usr/bin/claws-mail --attach /tmp/lu35337hoq3k.tmp/lu35337hoq3n.tmp/errors_090715.odt (all on one line). A further edit to 'ls' the attachment file gave /usr/lib/libreoffice/program/senddoc: 363: /usr/lib/libreoffice/program/senddoc: ls: Permission denied Running the claws-mail command from the commandline (while LO was still open) gave a similar result: file does not exist, or no permission. Doing 'ls -l' from the command line shows the file still existing, with directory permissions restricted to me as the owner. A permissions problem, then? But I can't see what it is. Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/24 ------------------------------------------------------------------------ On 2018-09-18T11:23:56+00:00 Bernard Moreton wrote: See also Ubuntu Bug #1748895 LO unable to find a working email configuration Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/26 ------------------------------------------------------------------------ On 2018-09-20T09:56:35+00:00 Bernard Moreton wrote: With respect, I think the problem is related to apparmor. When Tools/Options/Internet/Email is set to /usr/bin/claws-mail, the error window appears (working email client not found), an error message is sent to screen (Writer called from the command line), "/usr/lib/libreoffice/program/senddoc: 366: /usr/lib/libreoffice/program/senddoc: /usr/bin/claws-mail: Permission denied", and the kernel log contains 3 DENIED lines, Sep 20 10:09:04 USER_ID-Inspiron-5767 kernel: [ 1965.191418] audit: type=1400 audit(1537434544.991:41): apparmor="DENIED" operation="file_inherit" profile="libreoffice-senddoc" name="/home/USR/errors_090715.odt" pid=4934 comm="senddoc" requested_mask="wr" denied_mask="wr" fsuid=1001 ouid=1001 Sep 20 10:09:04 USER_ID-Inspiron-5767 kernel: [ 1965.191423] audit: type=1400 audit(1537434544.991:42): apparmor="DENIED" operation="file_inherit" profile="libreoffice-senddoc" name="/home/USR/.config/libreoffice/4/user/uno_packages/cache/uno_packages.pmap" pid=4934 comm="senddoc" requested_mask="wr" denied_mask="wr" fsuid=1001 ouid=1001 Sep 20 10:09:05 USER_ID-Inspiron-5767 kernel: [ 1965.196286] audit: type=1400 audit(1537434544.995:43): apparmor="DENIED" operation="exec" profile="libreoffice-senddoc" name="/usr/bin/claws-mail" pid=4940 comm="senddoc" requested_mask="x" denied_mask="x" fsuid=1001 ouid=0 If Tools ... Email is set to xdg-email (timed at 10:12) or set to be blank (timed at 10:16), then no error window appears, the screen error message does not appear, and two DENIED lines appear in the kernel log: Sep 20 10:12:24 USER_ID-Inspiron-5767 kernel: [ 2164.882567] audit: type=1400 audit(1537434744.681:53): apparmor="DENIED" operation="file_inherit" profile="libreoffice-senddoc" name="/home/USR/errors_090715.odt" pid=5014 comm="senddoc" requested_mask="wr" denied_mask="wr" fsuid=1001 ouid=1001 Sep 20 10:12:24 USER_ID-Inspiron-5767 kernel: [ 2164.882572] audit: type=1400 audit(1537434744.681:54): apparmor="DENIED" operation="file_inherit" profile="libreoffice-senddoc" name="/home/USR/.config/libreoffice/4/user/uno_packages/cache/uno_packages.pmap" pid=5014 comm="senddoc" requested_mask="wr" denied_mask="wr" fsuid=1001 ouid=1001 Sep 20 10:16:27 USER_ID-Inspiron-5767 kernel: [ 2408.161860] audit: type=1400 audit(1537434987.959:65): apparmor="DENIED" operation="file_inherit" profile="libreoffice-senddoc" name="/home/USR/errors_090715.odt" pid=5171 comm="senddoc" requested_mask="wr" denied_mask="wr" fsuid=1001 ouid=1001 Sep 20 10:16:27 USER_ID-Inspiron-5767 kernel: [ 2408.161865] audit: type=1400 audit(1537434987.959:66): apparmor="DENIED" operation="file_inherit" profile="libreoffice-senddoc" name="/home/USR/.config/libreoffice/4/user/uno_packages/cache/uno_packages.pmap" pid=5171 comm="senddoc" requested_mask="wr" denied_mask="wr" fsuid=1001 ouid=1001 Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/27 ------------------------------------------------------------------------ On 2018-09-20T10:01:12+00:00 Bernard Moreton wrote: I should have added that when Tools ... Email is set to xdg-email (timed at 10:12) or set to be blank (timed at 10:16), then claws-mail is called, but without focus, and without any COMPOSE window. Focus has to be manually restored to CLAWS by clicking on it, before anything else can be done ... Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/28 ------------------------------------------------------------------------ On 2018-09-22T10:39:55+00:00 Bernard Moreton wrote: Sorry to post so much, but I think I've found the problem, and a solution. 1 For convenience, I've set Tools/Options/Internet/Email to use /usr/bin/xdg-email 2 The supplied senddoc then outputs the command (all on one line): /usr/bin/xdg-email mailto:?subject=errors_090715&attach=file:///tmp/lu3461d8a63c.tmp/lu3461d8a63f.tmp/errors_090715.odt & This brings my claws-mail window to the fore, but without focus, and fails to open a compose window. If I run the same command by copy-n-paste from the command line, then a compose window opens, but there is no attachment. 3 If I change the xdg entry in senddoc --attach) MAILTO="${MAILTO:-}${MAILTO:+&}attach="$(echo "$2" | "${URI_ENCODE}") #MAILTO="${MAILTO:-}${MAILTO:+&}attach="$(echo "file://$2" | "${URI_ENCODE}") shift ;; and take out the ampersand in the mail call (may not be significant, but calls for other mail clients don't use the ampersand, and senddoc will then wait for completion) ${MAILER} "${MAILTO}" # ${MAILER} "${MAILTO}" & then senddoc completes properly, opening a compose window, with the required attachment. 4 Apparmor still registers two DENIED lines to kernel.log, one about the original file opened in Writer, and one about the .config file (see my Comment 7 above). These don't have any effect on the functioning of Senddoc, but they shouldn't appear. 5 The solution outlined above is not complete (1) it may have bad effect on Evolution and/or Gnome, which are linked with Xdg in the 'case' statement (2) the provision to cover a blank entry in Tools/Options/Internet/Email needs to be changed in line with the change in the entru for Xdg (3) though the output command /usr/bin/xdg-email mailto:?subject=errors_090715&attach=/tmp/lu3461d8a63c.tmp/lu3461d8a63h.tmp/errors_090715.odt works ok, it is not in accord with the format given in the man page for xdg-email ( --subject TITLE --attach FILE), which I find a little disturbing. Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/29 ------------------------------------------------------------------------ On 2018-10-08T11:13:15+00:00 Bernard Moreton wrote: Created attachment 145467 A proposed revision for /usr/lib/libreoffice/program/senddoc A proposed revision for /usr/lib/libreoffice/program/senddoc Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/31 ------------------------------------------------------------------------ On 2018-10-08T11:15:16+00:00 Bernard Moreton wrote: The uploaded revision of SENDDOC works ok on my system (LO 6.1.2.1, Ubuntu 18.04.1) when Tools, Options, Internet, Email E-mail program is left blank, or filled as /usr/bin/xdg-email. The URI syntax "file://" for attachments does not work with (most?) system email clients; and I have left comments at lines 109, 380, and 443, where I doubt whether this syntax is appropriate for thunderbird, Mail or Thunderbird, or for DESKTOP_LAUNCHER. All instances need review however. I've tested a call using /usr/bin/xdg-open in my configuration setting. This has the same problem as I had with xdg-email, ie Sending a file by email opened my email client, but without focus, and no compose window appeared. I conclude that the URI syntax is unreliable, and that a simple filename reference should therefore be preferred. I have not implemented that in my uploaded revision of SENDDOC! On a LINUX system, the clients provided for in SENDDOC should all be ok (I think) when AppArmor is not in use. Where AppArmor is in use, and there is a policy set for SENDDOC, then I suggest that (a) the Options-Internet-Email program should not allow input, but perhaps should show the system default email client; and (b) to avoid problems, the call to SENDDOC should not pass any client identification. Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/32 ------------------------------------------------------------------------ On 2018-10-08T11:18:51+00:00 Xiscofauli wrote: Hi Bernard, Thanks for the patch! Would you mind submitting it to gerrit instead? you can have more informacion here https://wiki.documentfoundation.org/Development/gerrit/SubmitPatch Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/33 ------------------------------------------------------------------------ On 2018-10-08T18:09:18+00:00 Bernard Moreton wrote: Hi Xisco, I'm afraid I'm not familiar with GIT - perhaps I should be, but 24x7 care leaves me little opportunity for doing new things. Would you mind submitting the revision for me? License? - as for the existing SENDDOC, of course - or whatever is most free. MTIA, Bernard Reply at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1748895/comments/34 ** Changed in: df-libreoffice Status: Unknown => Confirmed ** Changed in: df-libreoffice Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1748895 Title: LO unable to find a working email configuration To manage notifications about this bug go to: https://bugs.launchpad.net/df-libreoffice/+bug/1748895/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
