-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20.05.2013 16:52, Jason G2829 wrote:
> I recently migrated an old version of Trac (pre .11) to 1.0.1.
> Everything is working except the attachments are now looking for what
> seems to be a hashed version of the file path. The old trac system, and
> the paths were not hashed like this, and just had simple paths like
> ticket number/file name.
>
> This is happening in ticket attachments as well as wiki attachments.
This is part of the regular upgrade procedure to 1.0 and beyond.
> Can someone please tell me if there is a process to modify the paths on
> these attachment so they will work?
The conversion of existing attachments to the new hashed file store
should happen on upgrade time. Would be interesting to know, how you did
upgrade your environment, if anything works except for attachments by now.
Btw, the 'procedure' has been coded into Attachment._get_hashed_filename
[1] in trac/attachment.py, that is called from the upgrade script [2] as
well as for each newly added attachment.
Steffen Hoffmann
[1]
http://trac.edgewall.org/browser/tags/trac-1.0/trac/attachment.py#L190
[2]
http://trac.edgewall.org/browser/tags/trac-1.0/trac/upgrades/db28.py
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iEYEARECAAYFAlGb1ZgACgkQ31DJeiZFuHc4WACgrtWILMjPWFPdKfiuWxa9gmwx
5dgAnjbOZUzA8BoFRfuAXv/atPQy3yhV
=SApT
-----END PGP SIGNATURE-----