Commit Graph

3506 Commits

Author SHA1 Message Date
Jörg Lehrke
9a7830b6d7 Add additional datastores 2009-11-17 07:14:50 +00:00
Ralf Becker
ccb408af27 "let new method hooks fail gracefully if hook class-file does not exists (like the old hooks do, eg. if app got removed)" 2009-11-16 09:44:20 +00:00
Ralf Becker
3c23ce30e0 fixing PHP5.3 deprecated warnings 2009-11-16 09:01:01 +00:00
Jörg Lehrke
18ff8a6fa7 Merge SyncML Extensions with 1.6 2009-11-16 08:04:18 +00:00
Klaus Leithoff
3a5e270948 bugfix groupmembers of groups got lost, while renaming accounts 2009-11-04 11:21:30 +00:00
Klaus Leithoff
a276e48d48 backport of Christian Binders patch: little helper for prefs if unserialize failed - this can happen if the pref comes from an installation with another charset than the current system charset, ported to handle config as well 2009-11-02 10:51:51 +00:00
Ralf Becker
e2a43a60ed Backported fixes and upload enhancement from Trunk:
anonymous user can now download files, without the need to have
filemanager run rights
2009-10-25 19:29:56 +00:00
Ralf Becker
93d9e51982 "replace $this with self, to allow static call" 2009-10-22 09:12:00 +00:00
Ralf Becker
dbcd815fb5 "fix to cope with $vars[0] containing '%2' in lang() calls" 2009-10-19 07:45:27 +00:00
Ralf Becker
3f2b6c9a21 "- fixed error prefenting updating of locks
- added constant do enable debuging of locks"
2009-10-13 21:09:15 +00:00
Klaus Leithoff
c819f15dbc fixing a problem regarding the datehandling in Horde/iCalendar.php reported by Chr.Kaulich 2009-10-02 09:05:09 +00:00
Ralf Becker
2f88277af7 "fixed not working egw_link::set_cache" 2009-09-29 09:59:32 +00:00
Klaus Leithoff
39296e9d41 added the option allfirst for account display to show [username] firstname lastname, as the option all displayed [username] firstname lastname and not [username] lastname, firstnamne as advertised 2009-09-28 15:19:17 +00:00
Ralf Becker
6284e79259 removed tests folder, as it is NOT used by EGroupware 2009-09-21 08:19:41 +00:00
Ralf Becker
53b5e86323 Fix to get iCal in OS X 10.6 working (again):
WebDAV RFC 4918 allows a full url or a path as <D:href>:
        http://www.webdav.org/specs/rfc4918.html#ELEMENT_href
Some clients can NOT deal with one or the other:
- KAddressbook (at least in 3.5) can NOT subscribe to addressbooks (it
  does not find them) if just a path is used
- iCal in OS X 10.6 generates wrong requests, if a full url is used
2009-09-14 08:48:30 +00:00
Ralf Becker
c94d6f9fad quote all table or column names, to allow to use reserved words of dbms 2009-09-09 08:27:38 +00:00
Ralf Becker
73f6e47071 Fixed typo happend --> happened reported by David Rankin 2009-08-25 08:33:05 +00:00
Ralf Becker
bf712c89b0 fixing a few more PHP5.3 problems, caused by PHP5.3 behavior to NOT
register cookies in $_REQUEST any more by default (there's now a php.ini
variable 'request_order' to controll that, but we want to work with a
default configuraltion):
- session restore was not working, as only $_REQUEST[sessionid] was
  checked
- multi domain installs not working, as domain cookie was not checked
- encrypted session were not working, because kp3 cookie was not checked
--> there's now a static method egw_session::get_request($name), which
checks $_REQUEST[$name], $_COOKIE[$name] and for that Safari bug also
$_COOKIE[ucfirst($name)]
2009-08-22 19:38:45 +00:00
Ralf Becker
a54df4b480 "added uicontacts --> addressbook_ui conversation, as user on english list reported a problem with it" 2009-08-22 08:12:24 +00:00
Ralf Becker
4d4962769a adding addressbook object classes to new accounts (if they are supported
by the server)
--> overcome problem reported by krupka(at)depag.de on the german list:
password get's lost if contact get saved, because it had to remove the
account first to add the addressbook object classes
2009-08-22 08:07:37 +00:00
Ralf Becker
4fca7fb43c prevent using the numeric value of a group or user twice, by checking if it already exists for both sides 2009-08-22 08:01:10 +00:00
Ralf Becker
1423948060 "cant create an index without fields (was observed in broken backups)" 2009-08-17 07:32:24 +00:00
Ralf Becker
39fee5d8bc some precaution to never allow to (recursivly) remove /, /apps or /home 2009-08-12 09:55:41 +00:00
Ralf Becker
fed41cf05e "Fix for bug #2111: xml_functions.inc.php calls to an undefined method
as suggested by Igor Blanco"
2009-07-18 12:46:05 +00:00
Ralf Becker
fac44715bb "Fix for bug #1885: egw_db->row doesn't work as expected
reverted r25031, as it returns the first record with numeric indexes (it's anyway a depricated function)"
2009-07-18 12:36:19 +00:00
Ralf Becker
201f498a9c checking if attachment or attachment dir exists, before trying to delete it, to quieten warning, also improved warning to be precise if file does not exist, is no directory, or permission missing 2009-07-18 09:33:30 +00:00
Ralf Becker
2fc7222f68 merged htmlpurifier from trunk 2009-06-23 16:48:40 +00:00
Klaus Leithoff
ce593cac12 propfind: fix regarding the retrieval of sqlfs_props, if key of array with a single entry is the vfspath for the file in question 2009-06-10 10:33:38 +00:00
Ralf Becker
9a027d3346 fix for php5.3, which by default seems NOT include content of $_COOKIE in 2009-06-07 15:52:32 +00:00
Ralf Becker
e33a0ce020 "Patch from Carsten Wolf:
Timesheet-Einträge mit Uhrzeit 0:00, die in der Winterzeit gemacht wurden, 
werden in einem Union-Query, der in der Sommerzeit stattfindet, dem falschen 
Tag zugeordnet. Vermutlich stimmt dies nur für den PostgreSQL query und ist 
Dir deshalb bisher nicht aufgefallen.

Der Patch:
Ändert den PostgreSQL-spezifischen Teil des queries so um, dass er 
Zeitzoneninformationen berücksichtigt."
2009-05-30 07:05:54 +00:00
Klaus Leithoff
424fa5ffd8 added windows-1257 as it seems to be used widely, to display baltic letters 2009-05-27 07:13:45 +00:00
Ralf Becker
ad788f03c8 "re-added (depricated) php4 constructor, as it get's called by some old apps" 2009-05-26 17:27:03 +00:00
Ralf Becker
ad1a7f3451 "fixed not always executed hooks for disabled applications (using app-names from existing hooks now, instead of egw_info[apps])" 2009-05-26 11:56:43 +00:00
Ralf Becker
d2edcf6e24 merged setup-cli related bugfixes 27105, 27106 and 27109 2009-05-25 07:00:08 +00:00
Ralf Becker
947b78e0a1 "allow to use now() beside current_timestamp, as Postgres backups contain it and it's easier to remember anyway" 2009-05-15 07:18:47 +00:00
Ralf Becker
fad005ac62 added translated languages and visible charset to charset selection 2009-05-11 08:47:57 +00:00
Ralf Becker
d26e172992 "Backported case-sensitivity (commits r26637 (partially) and 26796) from trunk,
as it fixes several bugs reported on the user list:
- renaming to a name which differs only in case deletes file/directory
- same is true eg. for German umlauts or French accents"
2009-05-08 07:35:06 +00:00
Ralf Becker
9acc5f2037 "setting the value to 7, after reports on the user list, thought MySQL 5.0.51 with MyISAM engine works up to 10" 2009-05-04 16:48:20 +00:00
Ralf Becker
79355f0417 "fix for bug reported on the english user list:
limit on the number of cascaded folders in Filemanager
--> MySQL 5.0 has a nesting limit for subqueries
--> working around that by limiting the nesting level to 10"
2009-05-01 19:15:44 +00:00
Ralf Becker
09aa8c46bb "fixed failed move or rename via WebDAV (eg. NetDrive on Windows):
trailing slashes added to all collections caused a rename to an empty filename
--> all training slashes get now removed prior to calling any backend functions"
2009-04-30 07:50:02 +00:00
Ralf Becker
cfc74f5918 "copied COPY from HTTP_WebDAV_Server_Filesystem:
- it contained sql queries, which can not work in eGW
- to add Location header shown in rfc2518 example (section 8.9.5)"
2009-04-30 07:43:21 +00:00
Ralf Becker
1af0e3b409 "adding path (EGW_SERVER_ROOT) to hash for basic auth pseudo sesion id
(otherwise different installs in different pathes using identical credentials would share the session, which is no good idea)"
2009-04-30 07:36:23 +00:00
Ralf Becker
accff8c9c2 fixed Notices under error_reporting E_ALL 2009-04-28 20:08:28 +00:00
Ralf Becker
18897b4367 "removed unneeded stripslashes while reading the configuration, as it \"eats\" the backslashed of windows pathes (eg. messes up the default cache path)" 2009-04-28 19:35:57 +00:00
Ralf Becker
258aa9e31f "log failed login because of hook 'session_creation' with account_id, to not block the account in that case" 2009-04-28 10:41:09 +00:00
Ralf Becker
0103833728 "fixed an other accounts_ldap problem: too many entries returned on 2. and further pages" 2009-04-23 11:51:07 +00:00
Ralf Becker
c438279e03 "fixed not / only partialy working lettersearch in Admin >> Manage groups" 2009-04-23 06:25:58 +00:00
Ralf Becker
fd45dee35e "fixed not working stream_open() $mode == 'rb', was requiring write rights as != 'r'" 2009-04-19 07:31:24 +00:00
Ralf Becker
b4a4e081e4 "fixed not updated modification time, if file get's updated (eg. replaced via a new update in filemanager)" 2009-04-16 16:33:57 +00:00
Ralf Becker
747c796d1e "fixing commit r26783/4 for mysql:
using octal numbers with mysql leads to funny results:
select 384 & 0400 --> 384 not 256=0400
--> converted 0400, 040 and 04 to 256, 32 and 4 for mysql"
2009-04-15 11:22:40 +00:00
Ralf Becker
02b5e725e0 "fix for bug #2041: Postrgresql error when I try to access a file in sqlfs
\"CEST ERROR:  argument of AND must be type boolean, not type integer\"
"
2009-04-15 07:51:17 +00:00
Ralf Becker
af08fbb532 "fix for bug #1867: Several problems with non-ascii as first char in filename:
that char is skiped in dir creation, rename or filecreation"
2009-04-09 13:24:40 +00:00
Ralf Becker
88862bcb9b Fixing the fix ;-)
shadowLastChange has to be an interger.
2009-04-09 08:12:21 +00:00
Ralf Becker
a80ffb6223 Backported r26747 to 1.6:
using a session for basic auth (not session aware) clients for WebDAV
and GroupDAV. The "sessionid" get's constructed from the basic auth
credentials and is not random (as the clients dont store them).
--> speeds up the use of *DAV
--> stops *DAV handlers to created numerious sessions
2009-04-09 07:49:17 +00:00
Ralf Becker
cb46bce9cf Fixed not (always) updated last password change date 2009-04-09 06:44:02 +00:00
Ralf Becker
403913f1ae fix for bug #1838: problem with utf-8 data in all csv imports
- fgetcsv only works correct, if setlocal is called with an existing and
  correct local
- improved projectmanager method guess_local and moved it to
  common::setlocal, which takes now the charset, lang and country of the
  user into account
- csv-import also displays now the conversation done and reads usernames
  in brackets
- added some missing fields
2009-04-03 12:33:43 +00:00
Ralf Becker
aa26af977d New options for filesystme stream-wrapper:
- all:   false (default) =3D ignore files starting with a dot '.',
  true =3D show all files (. and .. are always ignored!)
- exec: false (default) =3D do NOT allow to upload or modify scripts, =

  true =3D allow it (if docroot is mounted, this allows to run scripts!)
--> deny_script method was added to egw_vfs and calls to it from
filemanager
Other fixes:
- missing write rights of the webserver were not removed from perms
  (causing warnings to be displayed in the ui)
- rename was not working due to typos
--> should be backported for obvious reasons to 1.6
2009-03-31 11:35:46 +00:00
Ralf Becker
bc1a92d1cc PDO compatibilty function fetchSingle() was renamed in PDO to
fetchColumn($column_num=3D0): now both are available in ADOdb, thought
fetchSingle is depricated and should no longer be used!
2009-03-25 09:06:01 +00:00
Ralf Becker
cac46f75b0 "fixed CreateObject to not suppress the error, if it cant find a class file or there are eg. syntax errors in it
--> now you can find the error in the error_log and dont get only a blank page
(also optimized it so far, that we first try to autoload the class and use the diverse \"magic\" only if that fails)"
2009-03-13 12:49:15 +00:00
Klaus Leithoff
d313eb2daf fixing various webdav problems, regarding pathbuilding 2009-03-09 12:23:47 +00:00
Klaus Leithoff
7d2491678d dont use the outcome of titlecache (break) if id is an array 2009-03-09 11:07:22 +00:00
Ralf Becker
a9830b0650 "fixing high minimize memory usage (important for huge number of accounts)" 2009-03-05 15:20:34 +00:00
Klaus Leithoff
bce3b1daac fixing a problem regarding the passing on of the charset information, as some clients get confused if there is a blank between the word charset and the equual sign. 2009-02-09 15:18:31 +00:00
Klaus Leithoff
b2d753f46f bugfix for typo in class-var 2009-01-13 11:24:29 +00:00
Klaus Leithoff
aae4b8ac8d strange phenomenon with existing debug variable 2008-12-09 15:24:19 +00:00
Klaus Leithoff
770207474e debug stuff related to placeholder substitution 2008-12-09 14:47:35 +00:00
Klaus Leithoff
cf51ea7120 debug stuff for the session handling 2008-12-09 14:46:35 +00:00
Klaus Leithoff
8169fe41e1 introducing and enhancing debug-stuff, targeted on SMTP sending without interface (notification). To make not functional sending a bit more traceable 2008-12-09 14:45:27 +00:00
Klaus Leithoff
13dd934ddd putting some debug into the send class to find problems more easily 2008-12-05 11:34:58 +00:00
Ralf Becker
68d6f0fe69 "- do not send session data for clients doing no sessions to memcached
- use 10min session lifetime for GroupDAV as for anonymous sessions"
2008-11-25 19:37:35 +00:00
Ralf Becker
6f442ea296 "check if we really need to convert the charset, as it's not perfect and can do some damage" 2008-11-23 13:08:06 +00:00
Ralf Becker
0123dc5d89 "dont log failed login attempts for the anon user, as it is a simple dos to sitemgr" 2008-11-22 08:14:59 +00:00
Ralf Becker
92c5157b90 add grant host to db creation 2008-11-18 19:58:11 +00:00
Ralf Becker
8dcc91a390 typos and missing file 2008-11-16 15:36:37 +00:00
Ralf Becker
1baa158195 Big SyncML patch from Philip Herbert <pherbert(at)knauber.de>:
- change the processing of slowsync, to use the content_map instead of
  trying to build a new one. This caused duplication issues on the
  client if multiple similar records where stored, because only the first
  one found in the server-db was matched, These duplicate entries at client
  side had no entry at serverside, so deleting the wrong one
  on the client (the content with a valid map entry) could cause
  unwanted data loss at server side, because it is impossible for the
  user to see what is a duplicate, and what is not.

see also: 
http://www.nabble.com/again---syncml-duplication-issue-to20333619s3741.html

- reenabled UID from syncml clients, because it was partly used this caused
  issues during SlowSync if the content was changed. 

- infolog, calendar if a uid is found in the provided data, allway try to
  find the corresponding content first   using only the UID, instead of
  using the content-id taken from content_map.

also fixed:

- a few fixes in ./notes
- creating an entry on the client that can not be imported,
  (Example, Nokia E Series Appointment without a Title)
  will no longer create an invalid content-map entry
  However, at client side this is still counted in the Protocol as
  Server-Add
2008-11-16 10:42:29 +00:00
Ralf Becker
fde8fc7b27 CAS (Central Authentication Service) login for eGroupware 2008-11-15 10:54:39 +00:00
Ralf Becker
04502ddc97 "fixed displayname property to contain just the basename of the file/dir, as davfs displays this (funny names if there's a full path) as pointed out by Hans Jürgen on the devel list" 2008-11-15 07:46:59 +00:00
Ralf Becker
ee623e72d3 "made some permanent error_logs configurable" 2008-11-15 07:40:25 +00:00
Ralf Becker
505fe07669 "function to analyse memory usage in the session" 2008-11-13 16:57:16 +00:00
Ralf Becker
59aa84f761 "switch logging to 2 (only errors) again" 2008-11-13 06:35:18 +00:00
Ralf Becker
f0a4de499b "fix for boolean options" 2008-11-12 18:40:10 +00:00
Ralf Becker
a658d7c8ed Store config_user&_passwd of domain as hash, to be able to use them
inside eGW (without having them in cleartext available)
2008-11-09 16:15:42 +00:00
Ralf Becker
9d9bd270a2 "- fix for bug #1817: file in a searchable directory was always readable
- changed chgrp and chmod, to allow admins to modify files/dirs owned by root"
2008-11-09 16:10:36 +00:00
Ralf Becker
43f860ba8f Reworked GroupDAV and iCal/vCard handler to set 'GroupDAV' as product
manufacturer and the recogniced GroupDAV client as product name.
This way we are able to handle different GroupDAV clients, as we
allready do with different SyncML clients.
Also removed the no longer needed code enabling the use of the real UID, 
as SyncML does no longer misuse the UID for it's GUID.
2008-11-03 09:36:20 +00:00
Ralf Becker
71edd1c938 Big patch from Philip Herbert (Knauber) modifying the SyncML code to no
longer use GUIDs containing eGW's install_id, as the information is
irrellevant for SyncML and cause doublications of entries if the
install_id changes.
I plan to have a new rc4 Wednesday or Thursday containing these changes.
2008-11-03 07:44:02 +00:00
Ralf Becker
9f3d5f4b4c "longtext need to be handled like text" 2008-11-02 09:46:42 +00:00
Ralf Becker
9689e1b822 "fix fatal error in SyncML, reported by Philip Herbert from Knauber" 2008-10-30 06:51:14 +00:00
Ralf Becker
e3efd9ce22 "removed unneccesary cloning of the db object by
- adding the application ('syncml')
- replacing next_record()/f() with fetch()/fetchSingle() or looping over the result object
Thanks to Philip Herbert from Knauber for testing it"
2008-10-29 07:41:02 +00:00
Ralf Becker
ba5d176520 "fix for bug #1796: Various config values not stored
now only unset or empty strings are not stored, but 0 is"
2008-10-27 15:11:15 +00:00
Ralf Becker
814eb013f1 Allow HTTP basic auth user to contain a domain to switch instances, as
it's done in the webgui login (for WebDAV or GroupDAV)
2008-10-26 12:18:57 +00:00
Ralf Becker
fa73ad5339 Improved exception handling:
- exceptions get now always logged to the error_log
- in the webgui it's now configurable, if the message contains a
  stacktrace (incl. function arguments) - default no (security)
- command line interfaces get detected and contain no html anymore
- webdav and groupdav send the exceptions as basic auth realms to the
  client
- webdav and groupdav login failures contain the reason as part of the
  basic auth realm
2008-10-26 12:13:01 +00:00
Ralf Becker
6764a6ec24 "removed html tag from exception message, as they should work independent of the web gui" 2008-10-26 11:05:30 +00:00
Ralf Becker
59b4f49e58 fixed errors in creating the home dirs of standard groups in sqlfs during setup 2008-10-26 07:37:37 +00:00
Ralf Becker
4694b6e917 "prevent fatal error if only egw_minimal is instanciated in $GLOBALS[egw], eg. setup" 2008-10-26 07:34:21 +00:00
Ralf Becker
5cf8a56f02 "fixed problem with title cache causing:
- infolog to display wrong contacts in the list
- double reads of contacts"
2008-10-25 09:06:11 +00:00
Ralf Becker
ff16b360f0 "using exceptins (instead of depricated egw_db::hold_on_error attribute) to deal with not set up eGW" 2008-10-25 05:43:59 +00:00
Ralf Becker
9ba17c163c "documentations update on how to use exceptions instead of depricated hald_on_error attribute" 2008-10-25 05:36:25 +00:00
Nathan Gray
01e04e6fc3 Make sure redirect gets sent, in case something fails in the shutdown 2008-10-24 18:39:30 +00:00
Klaus Leithoff
deb6edda9b behave more gracious if database tables are not existing, or outdated. Otherwise we chrashed completely with a invalid SQL Statement (Table
does not exist), without further info/adwise for the user/admin.
2008-10-23 08:31:51 +00:00
Klaus Leithoff
859e1206e4 preparation to use senderinformation specified with the smtpusername if set (appended to the username in the orm of:
smtpusername;mailadress@thatisownedbysmtpusername.com)
2008-10-21 11:57:52 +00:00