Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
3.10.1
-
None
-
Operating System: Debian
PHP Version: 4.4.4-8+etch4
Database and version: MySql 5.1
Browser (and version): N.D.
Description
I configured webdav in a multi language site (4 languages). When I browse the site through webdav, at root level, I can see the 4 language folders (in my case ita, eng, fre and ger).
When I upload an image, for example in /ita/media/images, overwriting an existing one, if this image exists only in default language (italian), it works fine (ezp create for me a new version of the object in italian). If I have an image translated in 2 or more languages, when I upload the same image overwriting it, for example always from /ita/media/images, ezp create the new version of image object, but <b>in the last translated language</b> instead of the folder/siteaccess language. Example: If I have translated an image object, through admin interface, the last time in german, if I upload the italian version from ita folder via webdav, ezp create the new version in the last language, in this case in german
Steps to reproduce
1. Make a fresh installation of eZp 3.10.1 choosing 4 languages during setup
2. Enable webdav editing /settings/override/webdav.ini.append.php:
[GeneralSettings]
EnableWebDAV=true
3. add the following lines in the virtual host configuration:
RewriteCond %{HTTP_HOST} ^webdav\..* RewriteRule ^(.*) /webdav.php [L] ServerAlias webdav.example.com
4. From the admin interface, under media/images, create an image object in the default language (eng) and translate the image object in all others language (fre, ita, ger)
5. Trough webdav client, go in /eng/media/images and overwrite the just created image with another one with same name
6. Go in the admin interface->media->images and check the new version of the just overwritted image: expected result is a new version in eng, but the new version will be in the last translated language, in this case german