Bug 146874 - Libreoffice cannot edit files from document portal
Summary: Libreoffice cannot edit files from document portal
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-20 12:42 UTC by Sonny Piers
Modified: 2022-08-22 03:51 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sonny Piers 2022-01-20 12:42:22 UTC
Description:
When opening a path from the document portal, Libreoffice reports that the file is locked and cannot be edited. Which is incorrect.

Original report https://github.com/sonnyp/Junction/issues/56



Steps to Reproduce:

sonny@porygon ~/Documents [1]> flatpak document-export test.odt
/run/user/1000/doc/6e6cf812/test.odt
sonny@porygon ~/Documents> libreoffice /run/user/1000/doc/6e6cf812/test.odt


Actual Results:
It will display a moodal saying "Document in Use", "Document ... is locked for editing by Unknown user".

Expected Results:
The file can be edited normally.


Reproducible: Always


User Profile Reset: No



Additional Info:
Fedora 35
Comment 1 Jean-Baptiste Faure 2022-01-21 20:43:07 UTC
I do not understand: you fixed a bug in your application and you report the same bug against LibreOffice. Why do you think the problem is in LibreOffice?

Status has been set to NEEDINFO, please set it back to UNCONFIRMED once requested information has been provided.

Best regards. JBF
Comment 2 Sonny Piers 2022-01-21 22:44:09 UTC
I changed the behavior of my application, which happens to solve the problem when Libreoffice is launched from it.

However the bug remains in Libreoffice and is unrelated to my application see the steps to reproduce.

To expand a bit, the document portal is a mechanism used by application sandboxing technologies such as flatpak and snap to "export" (make available) a file to a particular application.

https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-interface-org-freedesktop-portal-Documents

I open this bug to let you know - I don't have a stake in it and I don't know of a particular user-facing way of reproducing it.

Feel free to close it.
Comment 3 QA Administrators 2022-01-22 03:57:02 UTC Comment hidden (obsolete)
Comment 4 Jean-Baptiste Faure 2022-01-22 09:14:21 UTC
(In reply to Sonny Piers from comment #2)
> I changed the behavior of my application, which happens to solve the problem
> when Libreoffice is launched from it.
> 
> However the bug remains in Libreoffice and is unrelated to my application
> see the steps to reproduce.

What is "document-export" in the first step to reproduce?

Status has been set to NEEDINFO, please set it back to UNCONFIRMED once requested information has been provided.

Best regards. JBF
Comment 5 QA Administrators 2022-07-22 03:44:22 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2022-08-22 03:51:38 UTC
Dear Sonny Piers,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp