Page MenuHomePhabricator

Certains images change of directory when upgrading to UTF-8
Closed, DeclinedPublic

Description

Author: asmarin

Description:
I upgrade from 1.4.15 to 1.9.3 and when apply convmv to filesystem images, all
md5 changes. Many images are affected and need to relocate on correct directory.

I see rebuildImages.php is only for database image data. But for filesystem, has
any script to relocate it? Because if i use importImages.php all database image
data will be repeated.

How i can relocate it?

Thanks in advance.


Version: 1.9.x
Severity: normal
OS: Linux
Platform: PC
URL: http://enciclopedia.us.es

Details

Reference
bz9867

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:38 PM
bzimport set Reference to bz9867.
bzimport added a subscriber: Unknown Object (MLST).

This is done as part of the upgrade1_5.php script (which can only been run for
appropriate versions, of course). If you're using some third-party 1.4->1.5
Latin-1->UTF-8 converter, you'll have to consult with them or do it custom.

It's fairly trivial to rename the files:

  1. convert the filename
  2. recalculate hash
  3. ensure directories are present
  4. move the files