File permissions changed

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Lorenzo Giuggiolini
Posts: 2
Joined: Thu Jan 25, 2018 6:51 pm

File permissions changed

Post 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?
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: File permissions changed

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Lorenzo Giuggiolini
Posts: 2
Joined: Thu Jan 25, 2018 6:51 pm

Re: File permissions changed

Post 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.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: File permissions changed

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
northgardner
Posts: 3
Joined: Tue Nov 27, 2018 7:47 pm

Re: File permissions changed

Post 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.
Jonathan Greenberg
Digital Scholarly Publishing Specialist,
Digital Library Technology Services
NYU Libraries
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: File permissions changed

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply