Bricolage 1.8.3 Changes
2004.11.09
Improvements
make clone
now ignores files in the source directory that start withbricolage-
. This should prevent copying previous clones into the new clone. [David]Added contrib/thumbnails/precreate-thumbs.pl script to pre-create thumbnails from images. Useful for upgraders. [Scott]
Added primary key to the
event_attr
,element__site
,story_uri
, andmedia_uri
tables in the database. This will make it easier to do database replication. [David and Kenneth Marshall]Added contrib/bric_import_contribs to import contributors from a tab-delimited file. Development by Kineticode, sponsored by the RAND Corporation. [David]
Added the
published_version
parameter to thelist()
methods of the story, media, and template classes. This parameter forces the search to return the versions of the assets as they were last published, rather than the most recent version. This will be most useful to those looking up other documents in templates and publishing them, as a way of avoiding pulling documents out from other anyone who might have them checked out! [David]For those using the Template Toolkit burner, the required version is now 2.14, so as to take advantage of the improved Unicode support in that version. [David]
All publishing and distribution jobs are now executed in their own transactions when they are triggered by the user interface. This is to reduce the chances of a deadlock between long-running publishing transactions. [David]
The installer now requires PostgreSQL 7.3 or later. This is because 7.2 hasn’t worked properly with Bricolage since 1.8.0. [David]
Optimized SQL queries for key names or that order by string values to use indexes in the
list()
andlist_ids()
methods of the story, media, and template classes. [David]The installer will now fail to install if the version of Apache is greater than version 1--that is, it will refuse to install under Apache 2 (for now). [David]
Added Russian localization. [Sergey Samoilenko].
Changed the foreign keys in the story, media, and formatting (template) tables so that
DELETE
s do not cascade, but are restricted. This means that before deleting any source, element, site, workflow, or other related object that has a foreign key reference in an asset table, those rows must be deleted. Otherwise, PostgreSQL will throw an exception. Hopefully, this will put a stop to the mysterious but very rare disappearance of stories from Bricolage. [David]The distribution monitor, bric_dist_mon, no longer populates HTTP headers with lists of Job IDs for execution. Instead, it simply sends a request to the distribution handler, and Bric::Dist::Handler looks up the jobs to execute itself. This fixes an issue with too many headers being put into the request, and makes the operation of Bric::Dist::Handler more efficient. [David]
A call to
$burner->burn_another
in a template that passes in a date/time string in the future now causes a publish job to be scheduled for that time, rather than immediate burning the document and then scheduling the distribution to take place in the future. Reported by Ashlee Caul. [David]Improved context-sensitive help for the
New Template
profile. [Paul Orrock and David]Make slug actually be required when
ALLOW_SLUGLESS_NONFIXED
isn’t enabled, in particular on the clone page. Thanks to Dharmender Yadav at Enabling Dimensions for part of the patch. [Scott]Removed the hack that commits a database transaction in the middle of a request that does a
Check in and Publish
, since we now require PostgreSQL 7.3 and the bug that the hacked worked around was fixed in that release. [David]Added missing constraint to the
type
column of theworkflow
table. [David]Changing the sort order of a list of items in a search interface now properly reverses the entire collection of object over the pages, rather than just the objects for the current page. Thanks to Marshall for the spot! [David]
Bug Fixes
The localization libraries load without error again. Added tests to ensure that this doesn’t happen again. [David]
Publishing stories not in workflow via the SOAP server works again. [David]
Documents that the SOAP workflow publish finds in workflow but not on a desk (which shouldn’t happen, but sometimes does) are now just published anyway. [David]
The Burner object’s
encoding
attribute is now setable as well as readable. [David]The category browser works again. [David]
Fixed the
event
table to use the correct sequence the id column’s default value (although the default is never used, this is a good precaution). [David]Fixed Media Upload bug where the full local path was being used, by adding a
winxp
key to Bric::Util::Trans::FS to account for an update to HTTP::BrowserDetect. [Mark Kennedy]A call to
$element->get_elements
in an array context when the element contains no subelements no longer returns an array reference. Reported by Clinton Gormley. [David]Fix bug 839 so that categories can be deleted. [Scott]
Instances of a required custom field in story elements is no longer required once it has been deleted from the element definition in the element manager. Reported by Rod Taylor. [David]
A false value passed to the
checked_out
parameter of thelist()
andlist_ids()
methods of the story, media, and template (formatting) classes now properly returns only objects or IDs for assets that are not checked out. [David]The cover date select widget now works properly in the clone interface when a non-ISO style date preference is selected. Thanks to Susan G. for the spot! [David]
Running
make upgrade
with PostgreSQLident sameuser
security now works properly. [Keith Grennan]The
LoadModule
andAddModule
httpd.conf directives should now be generated properly during installation.LoadModule
will useconfig_log_module
ormod_log_config
depending on the system, butAddModule
will always use mod_log_config.c. Spotted by Dave Jablonski. [Marshall]Deleted sites will no longer be displayed in the site context menu in the UI. Reported by Ed Stevenson. [David]
Sorting templates based on Asset Type (Element) no longer causes an error. [David]
Events are now logged during the cleanup phase in alphabetical order by event type key name, to prevent deadlocks between two transactions logging events of the same types in different orders at the same time. [David]
Fixed a number of the callbacks in the story, media, and template profiles so that they didn’t clear out the session before other callbacks were done with it. Most often seen as the error
Can’t call method
in the media profile, especially with IE/Windows (for some unknown reason). Reported by Ed Stevenson. [David]get_tiles
on an undefined valueFixed typo in clone page that caused all output channels to be listed rather than only those associated with the element itself. [Scott]
Fixed double listing of the
All
group in the group membership double list manager. [Christian Hauser]Mail sent for alerts and the like now has DOS and Macintosh line-endings converted to Unix so that they are displayed properly in most mail clients. [Christian Hauser and David]
Documented required
user__id
parameter to thenew()
method in the story and media classes. Reported by Rod Taylor. [David]Image buttons now correctly execute the
onsubmit()
method for forms that define anonsubmit
attribute. This means that, among other things, changes to a group profile will persist when you click thePermissions
button. [David]Media type groups now properly display their members.
The
Edit
link that showed up for categories associated with a story when theENABLE_CATEGORY_BROWSER
bricolage.conf directive has been removed. It didn’t belong there in the first place. Reported by Ho Yin Au. [David]Simple search now works when it is selected when the
Default Search
preference is set toAdvanced
. Reported by Marshall Roch. [David]Multiple alert types set up to trigger alerts for the same event will now all properly execute. Thanks to Christian Hauser for the spot! [David]
Publishing stories or media via SOAP with the
published_only
parameter (--published-only
for bric_republish) now correctly republishes the published versions of documents even if the current version is in workflow. Reported by Adam Rinehart. [David]Added upgrade script to clean out old records left in the
member
table if users elected to delete old jobs during the 1.8.2 upgrade. [David]Users granted a permission greater than READ to the members of the
All Users
group no longer get such permission to any members of theGlobal Admins
group unless they have specifically been granted such permission to the members of theGlobal Admins
group. Thanks to Marshall Roch for the spot! [David]