--=REKLAMA=--

AppleDouble

Z Joomla!WikiPL

Ikona przetlumacz.png
 Uwaga o zawartości

Ta strona wymaga przetłumaczenia lub jest w trakcie tłumaczenia! Pomoc jest mile widziana. Ostatnio edytowane przez Zwiastun (dyskusja. Data edycji: Tue, 30 Nov 2010 14:21:37 +0000


AppleDouble is a file format developed by Apple Inc. for storing file metadata and resource forks in a Unix-like file system. It is largely irrelevant to Joomla!, except that AppleDouble format packages can cause Joomla 1.5.x systems to give spurious error messages when installing the template or extensions.

AppleDouble format

The AppleDouble format was developed by Apple Inc. for storing file metadata and resource forks in a Unix-like file system. The format's most notable aspectis that for every original file, it adds a second file with a name consisting of the prefix "._" followed by the original file's name. Thus for an original file "templateDetails.xml" it adds a file named "._templateDetails.xml". This second file can contains metadata (data describing the original file) and a resource fork (a second part of the original file, used in the Macintosh file systems).

Tools which generate AppleDouble format

In Mac OS X versions 10.3-10.5 (at least), a couple of compression and archiving tools generate AppleDouble archives. The Finder's "compress" menu option generates AppleDouble ZIP format archives, with no way to refuse the metadata files. The command-line utilities compress and tar generate AppleDouble format archives by default, but this can be turned off by set a shell environment variable "COPYFILE_DISABLE" to "true" before running the compress or tar utility. This behaviour is frequently overlooked by Mac OS X users, until it causes a problem, and then it can be quite frustrating to understand what is happening. See the External links section below for references to pages with more on these tools.

Joomla interactions with AppleDouble format

Joomla 1.5.x's template and extension installers can be fooled by AppleDouble format packages. They scan the entire package for all files with names ending in ".xml", and try to interpret each as a package manifest file. Metadata files like "._templateDetails.xml" are caught in this search. Sometimes the installer gives an error message due to the metadata file. One such error, observed when installing AppleDouble template packages in Joomla 1.5.9, is: XML Parsing Error at 1:1. Error 4: Empty document. Nevertheless, the extension installs correctly.

As of February 2009, the plan for Joomla 1.6 is to improve the extension installation process so that AppleDouble metadata files are ignored. See Joomla! tracker item #14982 for details.

External links

Dziękujemy za wkład

» Stefan Wajda [zwiastun],