File permissions changed
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- 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?
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: File permissions changed
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:
The run it with the epub name (and/or path) and folder name (and/or path) as arguments:
e.g.
The permissions do not affect the epub content when it is in its packed form.
Regards,
Adrian
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"
e.g.
Code: Select all
sh unpack.sh myepub.epub myfolder
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- 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.
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.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: File permissions changed
Do note that the permissions do not affect the EPUB when it is in its packed form.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.
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- 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
Digital Scholarly Publishing Specialist,
Digital Library Technology Services
NYU Libraries
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: File permissions changed
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service