Permission denied opening PDF in google-drive-ocamlfuse mount.
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: nia.tina.so, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Steps to reproduce:
Component: built-in PDF viewer
Version: 120.0.1
OS: Linux 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2(Kubuntu 22.04)
Build ID: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0 ID:20231129221557
Steps to Reproduce:
1-1) Use google-drive-ocamlfuse to mount Google Drive to a folder within the home directory. Refer to the mounted folder as Folder F.
1-2) Place any PDF file (referred to as File A) in Folder F.
1-3) In KDE system settings, set Firefox as the top-level application associated with PDF files.
1-4) Open Dolphin file manager, navigate to File A, and double-click on it.
Features:
Any PDF file located outside Folder F within the home directory can be opened using the steps 1-3) to 1-4).
File A can also be opened using the steps 1-3) to 1-4) in Google Chrome.
In the terminal, executing the command "firefox 'path to File A'" successfully opens File A.
To identify the cause, the following steps were taken:
2-1) Compile the following C++ code and set the top-level application associated with PDF files in KDE system settings to its executable file (referred to as File E).
#include <stdlib.h>
#include <string>
int main(int argc, char *argv[]) {
std::string log_file_path = "Log file path";
std::string command0 = "id >> \"" + (log_file_path + "\"");
system(command0.c_str());
std::string command1 = "firefox \"" + (argv[1] + ("\" >> \"" + (log_file_path + "\" 2>&1")));
system(command1.c_str());
}
2-2) Open File A in Dolphin file manager and double-click on it.
2-3) The result was successful execution of File E, but displaying File A failed.
The following log was generated:
uid=1000(myname) gid=1000(myname) groups=1000(myname),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),133(lxd),134(sambashare)
cannot open the path of the current working directory: Permission denied
The "Permission denied" message led to the inference that the failure in step 1) was also due to this issue. Note that this method can open any PDF file located outside Folder F within the home directory using steps 2-1) to 2-2).
In the terminal, after successfully executing the command "firefox 'path to File A'", running the command "id" immediately yielded the same output as in step 2-2):
uid=1000(myname) gid=1000(myname) groups=1000(myname),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),133(lxd),134(sambashare)
Actual results:
Actual Results:
The Firefox window to display File A does not appear. Specifically, only the cursor with a Firefox-like icon is displayed, and no error messages are shown.
Expected results:
Expected Results:
File A should be displayed in the Firefox window.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Updated•1 year ago
|
Updated•9 months ago
|
Description
•