Bug 458574 - Denied access to save an opened file on Windows
Summary: Denied access to save an opened file on Windows
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.08.0
Platform: Microsoft Windows Microsoft Windows
: HI normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 458692 458826 458839 458899 458910 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-31 22:22 UTC by Schinaider
Modified: 2023-04-05 16:33 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 22.08.1


Attachments
Access denied on trying saving file (454.38 KB, image/png)
2022-08-31 22:22 UTC, Schinaider
Details
attachment-8049-0.html (3.40 KB, text/html)
2022-09-09 15:17 UTC, Alexandre
Details
attachment-11973-0.html (3.61 KB, text/html)
2022-09-09 15:57 UTC, Alexandre
Details
attachment-13651-0.html (3.25 KB, text/html)
2022-09-09 16:13 UTC, Alexandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Schinaider 2022-08-31 22:22:39 UTC
Created attachment 151744 [details]
Access denied on trying saving file

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Yesterday and today i can't save opened files on Windows anymore. When i try to save a modified file, i receive "The file can't be saved ..... access denied".

STEPS TO REPRODUCE
1.  Open an existent pdf file on Windows
2.  Modify the file with annotations
3.  Try to save

OBSERVED RESULT
 "The file can't be saved ..... access denied". Translated from Brazilian Portuguese.

EXPECTED RESULT
Save the modified file

SOFTWARE/OS VERSIONS
Windows: 10
(available in About System)
KDE Plasma Version: -
KDE Frameworks Version:  5.97.0
Qt Version: 5.15.5
Comment 1 dasnevesgf 2022-09-01 19:49:07 UTC
I am experiencing the same error.  Reproduced it with multiple files, saved in different locations.

SOFTWARE/OS VERSIONS
Windows: 11
KDE Plasma Version: -
KDE Frameworks Version:  5.97.0
Qt Version: 5.15.5
Comment 2 Schinaider 2022-09-02 21:10:05 UTC
(In reply to dasnevesgf from comment #1)
> I am experiencing the same error.  Reproduced it with multiple files, saved
> in different locations.
> 
> SOFTWARE/OS VERSIONS
> Windows: 11
> KDE Plasma Version: -
> KDE Frameworks Version:  5.97.0
> Qt Version: 5.15.5

A workaround is to use "File =-> Save As...".
Comment 3 dasnevesgf 2022-09-02 22:21:45 UTC
(In reply to Schinaider from comment #2)
> (In reply to dasnevesgf from comment #1)
> > I am experiencing the same error.  Reproduced it with multiple files, saved
> > in different locations.
> > 
> > SOFTWARE/OS VERSIONS
> > Windows: 11
> > KDE Plasma Version: -
> > KDE Frameworks Version:  5.97.0
> > Qt Version: 5.15.5
> 
> A workaround is to use "File =-> Save As...".

"Save as" does work, but the same error message appears if you attempt to overwrite the original file. While it is usable as a temporary measure, it's not really viable for the use I make of okular as a reader of the files organized by Calibre.
Comment 4 Albert Astals Cid 2022-09-04 10:07:17 UTC
*** Bug 458692 has been marked as a duplicate of this bug. ***
Comment 5 Bug Janitor Service 2022-09-04 20:27:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/649
Comment 6 Albert Astals Cid 2022-09-04 20:37:40 UTC
Git commit 8e93995e3caa49bcd7c2c862a66f959160194fda by Albert Astals Cid.
Committed on 04/09/2022 at 20:26.
Pushed by aacid into branch 'release/22.08'.

Fix saving files on Windows

turn a move into a copy and remove

Seems to work better with windows way of working with open files being
overwritten and stuff

M  +19   -3    part/part.cpp

https://invent.kde.org/graphics/okular/commit/8e93995e3caa49bcd7c2c862a66f959160194fda
Comment 7 Patrick Silva 2022-09-07 11:36:48 UTC
*** Bug 458826 has been marked as a duplicate of this bug. ***
Comment 8 Albert Astals Cid 2022-09-07 16:47:48 UTC
*** Bug 458839 has been marked as a duplicate of this bug. ***
Comment 9 Cesar 2022-09-08 18:04:32 UTC
(In reply to Albert Astals Cid from comment #6)
> Git commit 8e93995e3caa49bcd7c2c862a66f959160194fda by Albert Astals Cid.
> Committed on 04/09/2022 at 20:26.
> Pushed by aacid into branch 'release/22.08'.
> 
> Fix saving files on Windows
> 
> turn a move into a copy and remove
> 
> Seems to work better with windows way of working with open files being
> overwritten and stuff
> 
> M  +19   -3    part/part.cpp
> 
> https://invent.kde.org/graphics/okular/commit/
> 8e93995e3caa49bcd7c2c862a66f959160194fda

I have the same error. How can I repair it? I have the Microsoft Store version and I have no programming skills.
Comment 10 Albert Astals Cid 2022-09-08 23:31:20 UTC
*** Bug 458899 has been marked as a duplicate of this bug. ***
Comment 11 Yuri Chornoivan 2022-09-09 07:22:42 UTC
*** Bug 458910 has been marked as a duplicate of this bug. ***
Comment 12 Albert Astals Cid 2022-09-09 13:49:40 UTC
> How can I repair it? I have the Microsoft Store version and I have no programming skills.

Be patient.

Wait for the fixed version to appear as an update in the Microsoft Store, should be today, tomorrow.
Comment 13 Alexandre 2022-09-09 15:17:58 UTC
Created attachment 151952 [details]
attachment-8049-0.html

Good morning, Albert. exactly my Okular comes from the Microsoft store. It's been working fine ever since. But this problem came up. From what I understand you will do an update in the same Microsoft store. I'm waiting for you. Thank you.

Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para Windows

De: Albert Astals Cid<mailto:bugzilla_noreply@kde.org>
Enviado:sexta-feira, 9 de setembro de 2022 10:49
Para: alexandre.arraes@outlook.com<mailto:alexandre.arraes@outlook.com>
Assunto: [okular] [Bug 458574] Denied access to save an opened file on Windows

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.kde.org%2Fshow_bug.cgi%3Fid%3D458574&amp;data=05%7C01%7C%7Cf9574c6f8c354b77f91108da926a25b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637983281840170388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=DKbjofPWv7FiMiAUvJK0r9K%2Fbe3B5DU%2FFBe3BtqwyAs%3D&amp;reserved=0

--- Comment #12 from Albert Astals Cid <aacid@kde.org> ---
> How can I repair it? I have the Microsoft Store version and I have no programming skills.

Be patient.

Wait for the fixed version to appear as an update in the Microsoft Store,
should be today, tomorrow.

--
You are receiving this mail because:
You are on the CC list for the bug.
Comment 14 Alexandre 2022-09-09 15:57:04 UTC
Created attachment 151953 [details]
attachment-11973-0.html

Dear Albert. Informing me, what I did. I uninstalled Okular with Revo Uninstaller and installed it again. The result was that it stopped giving the problem. Very good! Anyway if i give the problem again I'll contact you. If you have a good update that's newer, we'll wait in the Microsoft store.

Thank you very much for your attention and return.
Alexander Arraes

Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para Windows

________________________________
De: Albert Astals Cid <bugzilla_noreply@kde.org>
Enviado: Friday, September 9, 2022 10:49:40 AM
Para: alexandre.arraes@outlook.com <alexandre.arraes@outlook.com>
Assunto: [okular] [Bug 458574] Denied access to save an opened file on Windows

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.kde.org%2Fshow_bug.cgi%3Fid%3D458574&amp;data=05%7C01%7C%7Cf9574c6f8c354b77f91108da926a25b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637983281840170388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=DKbjofPWv7FiMiAUvJK0r9K%2Fbe3B5DU%2FFBe3BtqwyAs%3D&amp;reserved=0

--- Comment #12 from Albert Astals Cid <aacid@kde.org> ---
> How can I repair it? I have the Microsoft Store version and I have no programming skills.

Be patient.

Wait for the fixed version to appear as an update in the Microsoft Store,
should be today, tomorrow.

--
You are receiving this mail because:
You are on the CC list for the bug.
Comment 15 Albert Astals Cid 2022-09-09 16:04:42 UTC
>  I uninstalled Okular with Revo Uninstaller and installed it again. The result was that it stopped giving the problem.

No, what happened is that you got the new version.
Comment 16 Alexandre 2022-09-09 16:13:39 UTC
Created attachment 151955 [details]
attachment-13651-0.html

Serious? Well anyway the problem has been solved. Updates are usually made to the store library. They arrive and update the application.

Enviado do Email<https://go.microsoft.com/fwlink/?LinkId=550986> para Windows

________________________________
De: Albert Astals Cid <bugzilla_noreply@kde.org>
Enviado: Friday, September 9, 2022 1:04:42 PM
Para: alexandre.arraes@outlook.com <alexandre.arraes@outlook.com>
Assunto: [okular] [Bug 458574] Denied access to save an opened file on Windows

https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.kde.org%2Fshow_bug.cgi%3Fid%3D458574&amp;data=05%7C01%7C%7Ca091eb4e7295467b01cb08da927d0560%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637983362900028178%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=T%2BqbELH5sGShc5NqI4%2BIT9YeqWpy01AqBzc2isiTXQ8%3D&amp;reserved=0

--- Comment #15 from Albert Astals Cid <aacid@kde.org> ---
>  I uninstalled Okular with Revo Uninstaller and installed it again. The result was that it stopped giving the problem.

No, what happened is that you got the new version.

--
You are receiving this mail because:
You are on the CC list for the bug.