Skip to content

Problems with syncing documents from iWorks #7103

Closed

Description

Hello, it's impossible (or hard) for me to sync files from iWorks (Pages, Numbers, Keynote).

A file (or directory, what it's in fact) created by Pages looks like this:

drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages

In Finder, the suffix is not visible

If I upload this file to my OwnCloud (using the website) and download this file again, I get this output:

-rw-r--r--@ 1 lucas staff 42098 5 Feb 23:03 Test.pages

This is a file (OwnCloud also shows it as a file) and Pages fails to open it. But if I rename it to *.pages.zip and extract it, Pages can open it fine! It's named Test.pages then, but it's possible to remove the *.pages part using Finder and it remains a *.pages file:

drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages <# After renaming to *.pages.zip & extracting

If I use the OS X client to upload the file and download it using the website, I get a *.pages.zip file and after extracting I get this output:

drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages

This is a folder (OwnCloud also shows it as a folder) and Pages opens it just fine.
It also has the *.pages suffix in Finder, which I can remove without problems (I wonder how this is working btw, as 'ls' shows no difference - still *.pages suffix, but nothing in Finder anymore.).

I noticed that Dropbox and Google Drive also have serious problems with the new iWorks format and that this issue might be hard to solve.

Activity

  1. PVince81 commented on Feb 6, 2014

    @PVince81
    Contributor

    Can someone with a Mac confirm this ? @georgehrke @raghunayyar

  2. PVince81 commented on Feb 6, 2014

    @PVince81
    Contributor

    @lucasribic I'm not sure I understand what your problem is and what is expected (I'm not a Mac user). Can you provide simple steps to reproduce the issue and specify expected behavior / actual behavior ? (see https://raw.github.com/owncloud/core/master/issue_template.md)

    Are you saying that if you upload a "test.Pages" file using the web upload, then download it again, it appears as "test.pages" but can't be opened any more with iWorks ?

  3. PVince81 commented on Feb 6, 2014

    @PVince81
    Contributor

    Thanks for the details.
    ownCloud doesn't automatically zip files on upload.

    From the "ls" in your first comment it looks like the "Test.pages" on your local computer is in a fact a folder.

    drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages

    It looks like the Mac OS makes them look like files and also allows you to upload them using the Web UI, as folders, somehow, even though we don't support folder upload.

    When uploading, are you using drag and drop from Finder to the browser or are you using the "Upload" button ?

    When using the sync client, since "Test.pages" is a folder, the client will simply upload it as a folder. If you want to download it, it will need to zip it (this is the case for all folders) and provide a download. I don't understand why the downloaded file doesn't have the zip extension.
    Maybe Mac OS detects that it's a pages file and tries to remove it ?

    I don't think there is much we can do here, it seems that there is some Mac OS magic going on here.

  4. PVince81 commented on Feb 6, 2014

    @PVince81
    Contributor

    So if I understand well the expected behavior would simply: make the "*.pages" folders appear as a file with a specific icon and prevent the user to navigate into it, correct ?

    I don't think it can be done directly with a plugin/app yet.
    We currently don't support custom mimetypes / icons for folders, so that's something that would need to be added first.

    Only "prevent the user to navigate into such folders" could be done by an app/plugin by overwriting the default action (Open) with a non-operation (do nothing / download)

  5. PVince81 commented on Feb 6, 2014

    @PVince81
    Contributor

    Does the desktop sync client work correctly ?
    Let's say you have two computers, on one you put the "*.pages" folder in the sync dir.
    Does it sync correctly to the second computer ?
    I'd expect it does.

  6. timrycroft commented on Feb 21, 2014

    @timrycroft

    Ok it syncs fine but still views online as a folder online. It still corrupts files unfortunately.

    screen shot 2014-02-21 at 09 21 39

  7. self-assigned this
    on Feb 21, 2014
  8. 30 remaining items

  9. added this to the milestone on Oct 6, 2014
  10. modified the milestones: , on Oct 12, 2014
  11. recentcoin commented on Oct 15, 2014

    @recentcoin

    We see the same thing here. My initial thought was that the .key extension was the issue since Apache has a very different use for files ending in .key. Perhaps if there is a custom MIME type for apache for these files, this would solve the issue? I'm going to test my latest theory by adding a MIME type & a AddHandler directive for these to treat them as zip files. I have one of my Keynote peeps testing that now.

  12. piotr58 commented on Oct 15, 2014

    @piotr58

    The only way I found is to have a primary repository for my Apple office files (.numbers, .pages, …) and a script in cron which "find" new files and, with new one:

    • erase all extented attributes
    • zip these special directories
    • "rsync" this primary repository to the ownCloud one

    If I would to do that directly in ownCloud repository there is a very no-null chance it try to synchronize the repository before my script and erase some files in my Apple pseudo-files… And, as Apple Office Suite save documents automaticaly during it work, there could be a lot of errors.

    It's not a solution!

    Whith this solution I am sure i can reload my document without missing files with other Mac OS X computer. But, with iPad, it's very difficult to use zip archive with Apple IOS suite.

    I realy hope someone could find a solution…

  13. recentcoin commented on Oct 17, 2014

    @recentcoin

    Ok people here it is. I created custom MIME types in my Apache server's mime.conf and added AddHandler directives for them. I mapped .key to /x-application/zip. So far, the desktop and iPad clients seem fine with it. The only downside is that the apache web server still sees them as folders and not files or more correctly bundles of files so the web interface still isn't 100%.

  14. piotr58 commented on Oct 17, 2014

    @piotr58

    Ouf!

    Apple would have the same problem with it's cloud and/or DropBox ask them…

    The new version of iWork's suite come back to normal storage of files: a file, not a directory :-) So we will have no problem to synchronize our Apple iWork's file with ownCloud now!
    These good versions are:

    • Pages v5.5
    • numbers v3.5
    • Keynote v6.5
      These upgrade came with Yosemite (Mac OS X 10.10)

    Good news…

  15. PVince81 commented on Oct 17, 2014

    @PVince81
    Contributor

    @piotr58 thanks for the info.

    CC @MTRichards @craigpg @dragotin @karlitschek see previous comment

  16. LukasReschke commented on Oct 17, 2014

    @LukasReschke
    Contributor

    Yup - they are zipped now:

    ➜  ~  file /Users/lreschke/Downloads/Untitled.pages 
    /Users/lreschke/Downloads/Untitled.pages: Zip archive data, at least v2.0 to extract
    
  17. karlitschek commented on Oct 17, 2014

    @karlitschek
    Contributor

    Awesome. I'm glad Apple finally come to their senses.
    I guess we can finally close this bug now

  18. bafnaparag commented on Apr 8, 2015

    @bafnaparag

    If you're working in Pages 5.5 or later, Numbers 3.5 or later, or Keynote 6.5 or later and have created a file that is larger than 500 MB, saving it as a package helps the app you're using perform better. By default, these versions of Pages, Numbers and Keynote auto-save files to the hard drive as a single file.
    You can switch between a single file and a package at any time. Open your file. Then choose File > Advanced > Change File Type and select the type you'd like to use.1

  19. LukasReschke commented on Apr 8, 2015

    @LukasReschke
    Contributor

    From the same page:

    Choose Keep Single File if:
    You plan to send your iWork for Mac document to an non-iCloud Internet service such as iTunes U, Dropbox, Gmail, or another site where you upload files through your web browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions