Page 1 of 1

File permissions changed

Posted: Thu Jan 25, 2018 6:54 pm
by Lorenzo Giuggiolini
I have problems opening in Unix system epub files modified with Oxygen. After saving an epub, some specific file permissions for Unix system are modified in the internal .xhtml files. Maybe have I to change some settings in Oxygen or is it a bug?

Re: File permissions changed

Posted: Thu Jan 25, 2018 7:19 pm
by adrian
Hi,

Modifying a file causes the permissions of all the other files and folders to be lost (or unrecognized) in the epub.
We are aware of this problem with epubs created on Linux/Mac with other tools and edited in Oxygen. If the epub is created in Windows (or with Oxygen), the problem should not occur.

Meanwhile, until a bugfix is available, a quick workaround is to set all the flags after you unzip the epub:
chmod -R 777 myfolder
You can create a small bash script (unpack.sh) that both unpacks the epub and sets the flags:

Code: Select all

#!/bin/sh
unzip "$1" -d "$2"
chmod -R 777 "$2"
The run it with the epub name (and/or path) and folder name (and/or path) as arguments:
e.g.

Code: Select all

sh unpack.sh myepub.epub myfolder
The permissions do not affect the epub content when it is in its packed form.

Regards,
Adrian

Re: File permissions changed

Posted: Fri Jan 26, 2018 1:52 pm
by Lorenzo Giuggiolini
Thank you Adrian,
I hope that the bug will fixed soon.
Your solution works for my personal use, but I cannot distribute an epub with this issue, anyone could have that problem reading it in a Unix system.

Re: File permissions changed

Posted: Fri Jan 26, 2018 7:12 pm
by adrian
Your solution works for my personal use, but I cannot distribute an epub with this issue, anyone could have that problem reading it in a Unix system.
Do note that the permissions do not affect the EPUB when it is in its packed form.
For the purpose of reading, why would anyone unpack the EPUB with unzip instead of using an EPUB reader?
Are you experiencing this issue with an EPUB reader? If so, what reader are you using?

Regards,
Adrian

Re: File permissions changed

Posted: Fri Nov 15, 2019 12:15 am
by northgardner
Is there a projected date for a fix for this bug? We at NYU libraries are not distributing EPUBs. Rather we are publishing them, as unzipped directories, in our online platform, opensquare.nyupress.org. When we make edits to EPUBs in Oxygen, the file permissions are set to 000. We can fix individual EPUBs with a bash script, but do want to make that part of our process.

Re: File permissions changed

Posted: Wed Nov 20, 2019 5:46 pm
by adrian
Hi,

I cannot provide a projected date for fixing this. I'm afraid this issue is flagged with a low priority and will probably be fixed in the long term.
I have increased the reports count for this issue and mentioned your use case.

Regards,
Adrian