Skip to content
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

MacOsX zip file cannot be uploaded #1100

Closed
remyKobolski opened this issue Nov 6, 2021 · 6 comments
Closed

MacOsX zip file cannot be uploaded #1100

remyKobolski opened this issue Nov 6, 2021 · 6 comments

Comments

@remyKobolski
Copy link

Having a plugin on my MacOsX, Uploading this plugin as a zip file shows no errors but the plugin is not recognised.
Other symptoms:

  1. a _MACOS directory in system/data and in system/plugins.
  2. These _MACOS directories on the server contain an icon? file which I cannot delete. FreeBSD error.
  3. a plugin is present with the name of the zip file, NOT the plugin name.
    glossary-0.9.8.zip
@eSilverStrike
Copy link
Member

The plugin shouldn't have those files in it and the plugin name shouldn't include the version number. Where did you get the zip file?

@remyKobolski
Copy link
Author

remyKobolski commented Nov 7, 2021 via email

@eSilverStrike
Copy link
Member

Sorry I meant the plugin folder name in the zip file shouldn't contain the version number. That's probably why Geeklog has a problem displaying the name for it. It's been a while since I have handle this part of the plugin install code.

I also didn't realize this is a plugin you updated yourself.

Use the autotags plugin:

https://www.geeklog.net/downloads/index.php/file_autotags_plugin-1.1.3

as an example. It also contains the newer version of how Geeklog plugin install and updates are handled (by having files like autoinstall.php, etc... with additional information and checks)

I am not a Mac guy so I am not sure why unzipping these files would cause an issue with your host. I believe the files are marked hidden in the zip so maybe that is part of the problem? Maybe the files where some how when uploaded are set with a different FTP username than what the Web server has access to (this happened to me before on a host a few years ago where files I uploaded via FTP was not accessible by the webserver or where only read only).

I did do a quick search on Google on there are a few pages that explain how to get rid of those extra folders apple adds to zip files. maybe this will help?

https://perishablepress.com/remove-macosx-ds-store-zip-files-mac/

@remyKobolski
Copy link
Author

remyKobolski commented Nov 7, 2021 via email

@eSilverStrike
Copy link
Member

This is part of Geeklog I have never touched so I only assuming things here at the moment before I have a chance to look into it. Geeklog may scan the zip files to determine the name of the plugin and other details but I know it doesn't scan things for example like all file names that are not compatible with the actual OS environment of the server. There are some assumptions on the part of Geeklog that the plugin zip file is supported by Geeklog itself and the hosting environment.

If we do implement such a feature, a scan would have to happen before hand (which could take a long time) and if an incompatible file is found in the zip we would just prevent the plugin from being installed as we have no way to determine if the file is required by the plugin and if it is that it would take down the website if it doesn't exist on the server.

By the way we did run into similar issues a while ago with user images and Linux and Windows environments when migrating a website to a different host. See #1002

I am going to close this issue and open one that describes the problem more specifically. You can add to the issue comments if you think I missed anything.

@eSilverStrike
Copy link
Member

Open issue #1101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants