Changes in Gallery 2.2.2 since Gallery 2.2.1.
Fix core upgrade notification in template
An incorrect variable name (which, sadly we don't get a warning for from Smarty) causes us to fail to see the notification that there's a newer version of the core available. And a quick review of the text shows that one of the bullet points is confusing/unhelpful so I removed it.
Fix for bug 1693499 - Fatal PHP error in fetchWebPage on too many redirects. Was introduced in r15375 (in G2.2).
Fix for bug 1693956. The core.DownloadItem RewriteRule had a wrong rewrite target URL, it included the sessionId from configuration time. This could well break an embedded G2.2 (losing the session, not seeing non-public content, etc).
Fix for bug 1695294. Need stronger warning when uninstalling plugins.
Fix for bug 1708282. Need stronger warning when deleting plugins if the plugin is installed.
Fix for bug 1593803. Session data could be truncated on large imports from g1 with lots of data.
Fix for bug 1706657. Password-module or hidden-module protected items (both using session permissions) wouldn't be detected as non-public by the digibug and shutterfly modules and such items couldn't be printed.
Fix for bug 1711556. Our theme fallback code to allow admins to change the theme even if the active theme isn't compatible / avaible didn't work in G2.2 anymore.
Note: Include r16372 since r16368 introduced a very serious bug.
One line change.
Workaround for bug 1721972.
We agreed not to include new features released via 2.2-experimental repository, but some changes there were bugfixes. These could be included in 2.2.2:
Only for test code...
Added the protected flag to the GDC::put in GalleryStorageExtras so that the altered statements would not be cleared from the cache on the next GallerystorageExtras::execute call.
r16569 was only half of the fix. "ALTER TABLE DROP COLUMN" requires DB2 v9.
In upgrade code, loadPlugin() shouldn't be called with the version-check flag enabled. Else the plugin will get deactivated (which can lead to some deactivation event loops)
The MimetypeMap and SessionMap changes would fail without this patch.
Sequence related fixes in adodb code.
Storing the Entities.inc/Maps.inc in the PluginParameterMap table triggered a long-known time-bomb. The Oracle data-type / column size for TEXT-MEDIUM is too small (4000 chars). It needs to be ~8000 chars to hold the serialized Entities.inc file. But we already use the max (4000) for varchar2.
Now the descriptor that is in Entities.inc/Maps.inc for each table will be stored in the Schema table. The field size for the descriptor is TEXT-MEDIUM. We now also store the module id that defines the table and a map/entity indicator.