the assetSize in the db was set wrong. This happened when a File/Image
was added, and when it is committed. Editing the Asset would fix it, but
once it was committed, the files in the Storage area were not added.
List of Changes:
1) Removed setSize from File/Image.pm. It can inherit from File.
2) In Asset::File::processPropertiesFromFormPost, set _storageLocation to the Storage
object. Remove the call to setSize since it's done in ->update
3) In Asset::File::setSize, fetch the current storage object via getStorageLocation.
4) In Asset::File::update, move the call to update after the filesystem work. This
way changes in the size of the permissions file get accounted for.
5) In Asset::update, call setSize after all changes, regardless of whether or not
properties have changed.
6) In Asset::setSize, refactor out the size calculation and update $self's properties
cache so that long running scripts have the right size.
mechanism. This isn't optimal; should find a way to use the streaming
mechanism iff we know that there's going to be a live HTTP session on the
other end and not just a filehandle.
existing overrides and callers for that method and making sure they followed
the correct signature. Various related cleanups.
This should fix those bugs with collaboration systems refusing to be copied
or deployed as packages.
(Is there a way to get content_type that wouldn't require File::MMagic?)
Apache2::SubRequest's method lookup_file coused segfault in apache, so I scrapped that and used File::MMagic to to content type determing
Also fixed credit and added a currentPage.rankIsN variable to navigation
Moving cookies out of session::open into contentHandler (they already were in uploadsHandler).
Eliminating opening a new visitor session and then converting it to the actual user session for every single request by making two Session.pm methods public instead of private.
Added NOT_FOUND to the list of exported from Const.
Fixing a small bug in File.pm.
Fixed some spacing/tabs/formatting issues in various places.
This autocomplete in TortoiseSVN is really nifty.