horde.git
14 years agoSupport and fix setting the client/connection charset for PostgreSQL with the standar...
Jan Schneider [Mon, 17 Jan 2011 17:12:20 +0000 (18:12 +0100)]
Support and fix setting the client/connection charset for PostgreSQL with the standard 'charset' option.

14 years agofix typo that prevented queries to be loaded by slug
Michael J. Rubinsky [Mon, 17 Jan 2011 16:51:45 +0000 (16:51 +0000)]
fix typo that prevented queries to be loaded by slug

14 years agoFix splitting up names when exporting to N properties of vCards.
Jan Schneider [Mon, 17 Jan 2011 14:13:46 +0000 (15:13 +0100)]
Fix splitting up names when exporting to N properties of vCards.

14 years agoAdd Horde_String::rpos().
Jan Schneider [Mon, 17 Jan 2011 14:12:08 +0000 (15:12 +0100)]
Add Horde_String::rpos().

14 years agoKolab only supports specific application types and there is no "test".
Gunnar Wrobel [Mon, 17 Jan 2011 14:04:14 +0000 (15:04 +0100)]
Kolab only supports specific application types and there is no "test".

14 years agoAllways require the full query class name.
Gunnar Wrobel [Mon, 17 Jan 2011 14:03:29 +0000 (15:03 +0100)]
Allways require the full query class name.

14 years agoSet UTF-8 charset in sqlite tests.
Jan Schneider [Mon, 17 Jan 2011 12:51:05 +0000 (13:51 +0100)]
Set UTF-8 charset in sqlite tests.

14 years agoSupport retrieving shares.
Gunnar Wrobel [Mon, 17 Jan 2011 10:32:31 +0000 (11:32 +0100)]
Support retrieving shares.

14 years agoIt probably does not make sense to use two levels of caching.
Gunnar Wrobel [Mon, 17 Jan 2011 09:45:04 +0000 (10:45 +0100)]
It probably does not make sense to use two levels of caching.

14 years agoUse getStorage().
Gunnar Wrobel [Mon, 17 Jan 2011 08:25:31 +0000 (09:25 +0100)]
Use getStorage().

14 years agoBasic share list.
Gunnar Wrobel [Sun, 16 Jan 2011 06:46:28 +0000 (07:46 +0100)]
Basic share list.

14 years agoFolder type support.
Gunnar Wrobel [Sat, 15 Jan 2011 22:46:15 +0000 (23:46 +0100)]
Folder type support.

14 years agoStart with listShares().
Gunnar Wrobel [Fri, 14 Jan 2011 09:03:43 +0000 (10:03 +0100)]
Start with listShares().

14 years agoCharset testing.
Jan Schneider [Mon, 17 Jan 2011 09:54:35 +0000 (10:54 +0100)]
Charset testing.

14 years agoSupport returning basic folder data from the cache.
Gunnar Wrobel [Mon, 17 Jan 2011 09:17:32 +0000 (10:17 +0100)]
Support returning basic folder data from the cache.

14 years agoReturn the folder in the cache decorator.
Gunnar Wrobel [Mon, 17 Jan 2011 09:16:47 +0000 (10:16 +0100)]
Return the folder in the cache decorator.

14 years agoarray style
Chuck Hagenbuch [Sun, 16 Jan 2011 04:31:35 +0000 (23:31 -0500)]
array style

14 years agoMake sure that the sidebar always uses left-aligned text
Chuck Hagenbuch [Sun, 16 Jan 2011 02:07:51 +0000 (21:07 -0500)]
Make sure that the sidebar always uses left-aligned text

14 years agoFix variable name in error message, and redirect away if saving fails
Chuck Hagenbuch [Sat, 15 Jan 2011 15:40:55 +0000 (10:40 -0500)]
Fix variable name in error message, and redirect away if saving fails

14 years agoThrow an Ansel_Exception here so that it's caught as expected
Chuck Hagenbuch [Sat, 15 Jan 2011 15:38:18 +0000 (10:38 -0500)]
Throw an Ansel_Exception here so that it's caught as expected

14 years agoCheck for $GLOBALS['conf'] AND $GLOBALS['injector']
Chuck Hagenbuch [Sat, 15 Jan 2011 04:29:49 +0000 (23:29 -0500)]
Check for $GLOBALS['conf'] AND $GLOBALS['injector']

14 years agoRevert "What does this flush() do? With it, DIMP whitescreens for me; without it...
Chuck Hagenbuch [Sat, 15 Jan 2011 04:29:14 +0000 (23:29 -0500)]
Revert "What does this flush() do? With it, DIMP whitescreens for me; without it, it seems to work fine."

This reverts commit a8e51349c3fdc229031b6adc0d9427cddb74f58a.

14 years agoBug #9514: Pass the mailbox name, not the certificate itself
Michael M Slusarz [Fri, 14 Jan 2011 23:29:23 +0000 (16:29 -0700)]
Bug #9514: Pass the mailbox name, not the certificate itself

14 years agoFix down/Page down behavior in dimp viewport
Michael M Slusarz [Fri, 14 Jan 2011 23:18:37 +0000 (16:18 -0700)]
Fix down/Page down behavior in dimp viewport

14 years agoFix some compose screen resize issues
Michael M Slusarz [Fri, 14 Jan 2011 21:25:52 +0000 (14:25 -0700)]
Fix some compose screen resize issues

14 years agoCreate a generic admin check login task.
Michael M Slusarz [Fri, 14 Jan 2011 19:27:47 +0000 (12:27 -0700)]
Create a generic admin check login task.

Disable this login task if not an admin
Move logger check into login task

14 years agoAdd next-generation SQL Share driver.
Jan Schneider [Fri, 14 Jan 2011 22:16:47 +0000 (23:16 +0100)]
Add next-generation SQL Share driver.

It doesn't use any bitmasks anymore that can't be indexed in MySQL. Each
permission is a boolean column instead. User and group permissions are
no longer retrieved with a LEFT JOIN but in separate queries. This is by
far outweighed by the performance improvement which is about factor 25
for MySQL and PostgreSQL using the stress test scenario.

14 years agoBOOLEAN is integer in SQLite internally, cast booleans to integers.
Jan Schneider [Fri, 14 Jan 2011 21:40:17 +0000 (22:40 +0100)]
BOOLEAN is integer in SQLite internally, cast booleans to integers.

14 years agoMFB: Fix integer overflow in ASN parser.
Jan Schneider [Fri, 14 Jan 2011 15:33:02 +0000 (16:33 +0100)]
MFB: Fix integer overflow in ASN parser.

14 years agoRevert "Move, so that uncommenting actually overwrites the default."
Jan Schneider [Fri, 14 Jan 2011 12:51:10 +0000 (13:51 +0100)]
Revert "Move, so that uncommenting actually overwrites the default."

This reverts commit f26b24db04738a41084bf90a7ea9d70c98278acb.

14 years agoUse more sane defaults.
Jan Schneider [Fri, 14 Jan 2011 12:07:49 +0000 (13:07 +0100)]
Use more sane defaults.

14 years agoMove, so that uncommenting actually overwrites the default.
Jan Schneider [Thu, 13 Jan 2011 09:52:03 +0000 (10:52 +0100)]
Move, so that uncommenting actually overwrites the default.

14 years agoBug #9488: Report logger failures
Michael M Slusarz [Fri, 14 Jan 2011 19:16:58 +0000 (12:16 -0700)]
Bug #9488: Report logger failures

Logger failure will be reported to an admin on login.  Alternatively,
the bin/check_logger script can be run.

14 years agoBug #9511: Make sure DimpCompose.onDomLoad() has run before doing other actions
Michael M Slusarz [Fri, 14 Jan 2011 18:47:55 +0000 (11:47 -0700)]
Bug #9511: Make sure DimpCompose.onDomLoad() has run before doing other actions

14 years agoBug #9513: Cast to timestamp for DateTime
Michael M Slusarz [Fri, 14 Jan 2011 18:33:34 +0000 (11:33 -0700)]
Bug #9513: Cast to timestamp for DateTime

14 years agoMove all initialization for IMP_Imap_Tree into init()
Michael M Slusarz [Fri, 14 Jan 2011 18:15:32 +0000 (11:15 -0700)]
Move all initialization for IMP_Imap_Tree into init()

14 years agoSwitch to PHP templates only.
Gunnar Wrobel [Fri, 14 Jan 2011 15:09:45 +0000 (16:09 +0100)]
Switch to PHP templates only.

14 years agoStray file.
Gunnar Wrobel [Fri, 14 Jan 2011 14:23:05 +0000 (15:23 +0100)]
Stray file.

14 years agoChange the distribution module to using a template directory.
Gunnar Wrobel [Fri, 14 Jan 2011 14:20:37 +0000 (15:20 +0100)]
Change the distribution module to using a template directory.

14 years agoAllow modifications to the target location within the template.
Gunnar Wrobel [Fri, 14 Jan 2011 14:18:48 +0000 (15:18 +0100)]
Allow modifications to the target location within the template.

14 years agoOnly provide dummy data if it has not been set in the parameters.
Gunnar Wrobel [Fri, 14 Jan 2011 09:04:31 +0000 (10:04 +0100)]
Only provide dummy data if it has not been set in the parameters.

14 years agoBug #9455: Add ability to get full URL from Horde_Themes_Element object
Michael M Slusarz [Thu, 13 Jan 2011 21:17:05 +0000 (14:17 -0700)]
Bug #9455: Add ability to get full URL from Horde_Themes_Element object

14 years agoTicket #9507: Clarify changeLanguage() behavior
Michael M Slusarz [Thu, 13 Jan 2011 19:05:41 +0000 (12:05 -0700)]
Ticket #9507: Clarify changeLanguage() behavior

14 years agoBug #9509: Don't sanitize raw header text
Michael M Slusarz [Thu, 13 Jan 2011 19:03:16 +0000 (12:03 -0700)]
Bug #9509: Don't sanitize raw header text

14 years agoOptimize header parsing when raw data is available
Michael M Slusarz [Thu, 13 Jan 2011 18:58:36 +0000 (11:58 -0700)]
Optimize header parsing when raw data is available

14 years agoFix error handler for '@'-prefixed calls.
Michael M Slusarz [Thu, 13 Jan 2011 18:12:15 +0000 (11:12 -0700)]
Fix error handler for '@'-prefixed calls.

Fixes, e.g., detecting bad character conversion of a string.

14 years agoUse ini_restore().
Michael M Slusarz [Thu, 13 Jan 2011 18:12:04 +0000 (11:12 -0700)]
Use ini_restore().

14 years agoInject DB object into Turba_Driver_Sql
Michael M Slusarz [Thu, 13 Jan 2011 17:08:20 +0000 (10:08 -0700)]
Inject DB object into Turba_Driver_Sql

14 years agoadd update documentation for changed config value
Michael M Slusarz [Thu, 13 Jan 2011 17:07:59 +0000 (10:07 -0700)]
add update documentation for changed config value

14 years agoI find this array format easier to read - less whitespace
Michael M Slusarz [Thu, 13 Jan 2011 17:07:39 +0000 (10:07 -0700)]
I find this array format easier to read - less whitespace

14 years agoH4 style filename
Michael J Rubinsky [Thu, 13 Jan 2011 17:28:43 +0000 (12:28 -0500)]
H4 style filename

14 years agoCatch exceptions, get rid of last bit of PEAR_Error checks
Michael J. Rubinsky [Thu, 13 Jan 2011 17:23:35 +0000 (12:23 -0500)]
Catch exceptions, get rid of last bit of PEAR_Error checks

14 years agoMove Turba_Driver::factory() functionality to the injector factory.
Michael J. Rubinsky [Thu, 13 Jan 2011 16:40:40 +0000 (11:40 -0500)]
Move Turba_Driver::factory() functionality to the injector factory.

All code should be using the injector to get the driver anyway, no
need for extra factory method.

Remove _init() methods from driver subclasses, move functionality into
the const'r instead.

14 years agoDon't serialze the params array for the _instance key.
Michael J. Rubinsky [Thu, 13 Jan 2011 16:28:36 +0000 (11:28 -0500)]
Don't serialze the params array for the _instance key.

It's not necessary, and it causes problems with some drivers.

14 years agoTest get/setStorage.
Gunnar Wrobel [Thu, 13 Jan 2011 15:39:23 +0000 (16:39 +0100)]
Test get/setStorage.

14 years agoOptional dependency on Kolab_Storage.
Gunnar Wrobel [Thu, 13 Jan 2011 15:38:21 +0000 (16:38 +0100)]
Optional dependency on Kolab_Storage.

14 years agoStubs for the Kolab tests.
Gunnar Wrobel [Thu, 13 Jan 2011 15:25:11 +0000 (16:25 +0100)]
Stubs for the Kolab tests.

14 years agoPut the stub into a separate "Stub" directory as it is useful even if not extending...
Gunnar Wrobel [Thu, 13 Jan 2011 15:24:11 +0000 (16:24 +0100)]
Put the stub into a separate "Stub" directory as it is useful even if not extending from the Base test in this directory.

14 years agoAdd the phpunit.xml to get just the code coverage for the Share module when running...
Gunnar Wrobel [Thu, 13 Jan 2011 15:22:39 +0000 (16:22 +0100)]
Add the phpunit.xml to get just the code coverage for the Share module when running the AllTests.php in this directory.

14 years agoThis should be a configuration array, not a Horde_Db_Adapter object.
Michael J. Rubinsky [Thu, 13 Jan 2011 06:39:43 +0000 (01:39 -0500)]
This should be a configuration array, not a Horde_Db_Adapter object.

We shouldn't expect administrators to know how to create a custom Horde_Db_Adapter object.
Just pass the configuration array, the factory will do the rest.

14 years agoWe have a factory bound to 'Horde_Db_Adapter' for the default horde db.
Michael J. Rubinsky [Thu, 13 Jan 2011 06:23:29 +0000 (01:23 -0500)]
We have a factory bound to 'Horde_Db_Adapter' for the default horde db.

Still need to inject the adapter into the driver(s)...

14 years agoNo need for this binder, call the factory directly. Standardize on using create(...
Michael J. Rubinsky [Thu, 13 Jan 2011 06:20:52 +0000 (01:20 -0500)]
No need for this binder, call the factory directly. Standardize on using create() as the factory method.

14 years agoLast of the pear error checks in krono that are in our control...
Michael J. Rubinsky [Thu, 13 Jan 2011 06:09:20 +0000 (01:09 -0500)]
Last of the pear error checks in krono that are in our control...

Still have checks in places like the Holiday driver, where we can't
get around that due to PEAR_Holidays using them.

14 years agothrow exceptions
Michael J. Rubinsky [Thu, 13 Jan 2011 06:05:13 +0000 (01:05 -0500)]
throw exceptions

14 years agoUse Horde/Http_Client for retrieving fb info over http
Michael J. Rubinsky [Thu, 13 Jan 2011 06:00:49 +0000 (01:00 -0500)]
Use Horde/Http_Client for retrieving fb info over http

14 years agoremove unused code, ws
Michael J. Rubinsky [Thu, 13 Jan 2011 05:41:19 +0000 (00:41 -0500)]
remove unused code, ws

14 years agoKronolith_Geo drivers now use Horde_Db and DI
Michael J. Rubinsky [Thu, 13 Jan 2011 05:36:18 +0000 (00:36 -0500)]
Kronolith_Geo drivers now use Horde_Db and DI

14 years agoThe injector knows about this factory, just request the Horde_Db_Adapter
Michael J. Rubinsky [Thu, 13 Jan 2011 05:25:42 +0000 (00:25 -0500)]
The injector knows about this factory, just request the Horde_Db_Adapter

14 years agothis code will never be reached
Michael J. Rubinsky [Thu, 13 Jan 2011 01:37:42 +0000 (20:37 -0500)]
this code will never be reached

Since the conditional was added to test for 'internal_' calendars,
this could *never* be a resource calendar. Not sure this block even
ever made sense anyway...remove it.

14 years agoFix fb generation for resources
Michael J. Rubinsky [Thu, 13 Jan 2011 01:34:15 +0000 (20:34 -0500)]
Fix fb generation for resources

14 years agoFix generating fb info in certain cases
Michael J. Rubinsky [Thu, 13 Jan 2011 01:30:41 +0000 (20:30 -0500)]
Fix generating fb info in certain cases

14 years agoKronolith_Resources to use Horde_Db
Michael J. Rubinsky [Wed, 12 Jan 2011 22:45:50 +0000 (17:45 -0500)]
Kronolith_Resources to use Horde_Db

14 years agoPEAR::DB -> Horde_Db for Kronlith_Driver_Sql, Dependency Injection
Michael J. Rubinsky [Wed, 12 Jan 2011 21:23:54 +0000 (16:23 -0500)]
PEAR::DB -> Horde_Db for Kronlith_Driver_Sql, Dependency Injection

14 years agoFix removeUserData in kronolith
Michael J. Rubinsky [Wed, 12 Jan 2011 21:22:08 +0000 (16:22 -0500)]
Fix removeUserData in kronolith

Kronolith::listEventIds() no longer exists.

14 years agouse the DbBase factory here
Michael J. Rubinsky [Wed, 12 Jan 2011 20:17:10 +0000 (15:17 -0500)]
use the DbBase factory here

14 years agoDon't store allow_folders value in $conf array
Michael M Slusarz [Wed, 12 Jan 2011 20:17:13 +0000 (13:17 -0700)]
Don't store allow_folders value in $conf array

14 years agoDon't directly alter $conf array; use $chora_conf instead
Michael M Slusarz [Wed, 12 Jan 2011 19:56:02 +0000 (12:56 -0700)]
Don't directly alter $conf array; use $chora_conf instead

$conf can be overwritten at any time by an application push, so there is
no guarantee the data will remain in there.

14 years agosanity check
Michael M Slusarz [Wed, 12 Jan 2011 19:34:47 +0000 (12:34 -0700)]
sanity check

14 years agoUse Horde 4 style class/file names
Michael J. Rubinsky [Wed, 12 Jan 2011 19:53:34 +0000 (14:53 -0500)]
Use Horde 4 style class/file names

14 years agoremove accidently commited files
Michael J. Rubinsky [Wed, 12 Jan 2011 19:52:19 +0000 (14:52 -0500)]
remove accidently commited files

14 years agoLog the query when throwing this error
Michael J. Rubinsky [Wed, 12 Jan 2011 19:44:50 +0000 (14:44 -0500)]
Log the query when throwing this error

14 years agoFix object updating
Michael J. Rubinsky [Wed, 12 Jan 2011 19:44:25 +0000 (14:44 -0500)]
Fix object updating

14 years agoStart removing PEAR::DB from kronolith, refactor for H4
Michael J. Rubinsky [Wed, 12 Jan 2011 17:25:18 +0000 (12:25 -0500)]
Start removing PEAR::DB from kronolith, refactor for H4

This commit:
  * Refactor Kronolith_Storage to use dependency injection
  * Replace PEAR::DB usage with Horde_Db_Adapter in Kronolith_Storage

Kolab storage driver wasn't touched, as I'm not familiar enough with this code,
though the code should still work, it just wasn't refactored for DI

14 years agodeclare $_instances member, phpdoc
Michael J. Rubinsky [Wed, 12 Jan 2011 15:56:46 +0000 (10:56 -0500)]
declare $_instances member, phpdoc

14 years agoBug #9504: Mask might render all available options unavailable
Michael M Slusarz [Wed, 12 Jan 2011 19:25:33 +0000 (12:25 -0700)]
Bug #9504: Mask might render all available options unavailable

14 years agoBug #9507: Only do language change callback to authenticated apps
Michael M Slusarz [Wed, 12 Jan 2011 19:03:44 +0000 (12:03 -0700)]
Bug #9507: Only do language change callback to authenticated apps

14 years agophpdoc
Michael M Slusarz [Wed, 12 Jan 2011 19:03:17 +0000 (12:03 -0700)]
phpdoc

14 years agoCleaner/faster way of toggling RTE
Michael M Slusarz [Wed, 12 Jan 2011 18:46:44 +0000 (11:46 -0700)]
Cleaner/faster way of toggling RTE

Do text conversion asychronously.

14 years agoImplement quoteString().
Jan Schneider [Wed, 12 Jan 2011 18:41:42 +0000 (19:41 +0100)]
Implement quoteString().

14 years agoUpdate to use Horde_Db.
Jan Schneider [Wed, 12 Jan 2011 18:38:32 +0000 (19:38 +0100)]
Update to use Horde_Db.

14 years agoIterator interface is the lowest common denominator.
Jan Schneider [Wed, 12 Jan 2011 18:24:43 +0000 (19:24 +0100)]
Iterator interface is the lowest common denominator.

14 years agoAdd quoteString() to interface.
Jan Schneider [Wed, 12 Jan 2011 18:15:50 +0000 (19:15 +0100)]
Add quoteString() to interface.

14 years agoFix annoying Db build error
Michael M Slusarz [Wed, 12 Jan 2011 17:19:14 +0000 (10:19 -0700)]
Fix annoying Db build error

14 years agoFix deprecated assertType() usage
Michael M Slusarz [Wed, 12 Jan 2011 17:00:26 +0000 (10:00 -0700)]
Fix deprecated assertType() usage

14 years agoThanks to no LSB, we need to keep seperate handlers for each domain.
Jan Schneider [Wed, 12 Jan 2011 12:09:52 +0000 (13:09 +0100)]
Thanks to no LSB, we need to keep seperate handlers for each domain.

14 years agoFix splitread database usage in VFS (Bug #9467).
Jan Schneider [Wed, 12 Jan 2011 11:31:33 +0000 (12:31 +0100)]
Fix splitread database usage in VFS (Bug #9467).

14 years agoRough component documentation is possible now.
Gunnar Wrobel [Wed, 12 Jan 2011 11:05:45 +0000 (12:05 +0100)]
Rough component documentation is possible now.

14 years agoBail out if the input is not okay.
Gunnar Wrobel [Wed, 12 Jan 2011 10:36:25 +0000 (11:36 +0100)]
Bail out if the input is not okay.

14 years agoSupport template directories.
Gunnar Wrobel [Wed, 12 Jan 2011 09:30:47 +0000 (10:30 +0100)]
Support template directories.

14 years agoBug #9484: Ensure we always get 23 character string
Michael M Slusarz [Wed, 12 Jan 2011 09:10:09 +0000 (02:10 -0700)]
Bug #9484: Ensure we always get 23 character string