-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's not possible to upload zip archive created on Mac #121
Comments
It's true that zip should contain only files that will be extracted as catalog objects. When I extract the provided YolloTest.zip in any OS, there are next: In this example even if inside catalog it will be skipped the folders, we will not get the correct objects, because the files are in the subfolder. We did with @marcocast the archive on mac with zip command and it works fine for catalog. The solution for MAC and in general is to generate the zip archive properly: I think we can close the issue. |
I tried to create a zip from my mac and I don't have the __MACOSX folder : zip -d your-archive.zip "__MACOSX*" We can add this command in the documentation or in the tooltip in the portal maybe... As a more robust solution we could opt for ignoring folders in the zip and only considering files. |
I agree as an improvement, on catalog service side we can skip the sub folders of archive. |
Ignoring folders in the zip is a good solution, it is OK if we can't handle every case of subfolders. @marcocast Actually it seems that Mac users can't see this folder, it is hidden. You can see it if you open it in another OS. |
There is a folder (name __MACOSX) inside Mac archives and the catalog tries to parse it as a workflow. As a result, we get an error "The object(s) couldn't be uploaded: It was not possible to parse an object: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x0 (at char #99, byte #-1)" and no workflow is uploaded.
When we remove this __MACOSX folder, the upload of the archive works.
The text was updated successfully, but these errors were encountered: