Commit Graph

77 Commits

Author SHA1 Message Date
Ralf Becker
39d432d82a add missing traversable-test mentioned by Scrutinizer 2016-10-21 09:02:22 +02:00
Ralf Becker
8e9fe8d87d add missing false-test mentioned by Scrutinizer 2016-10-21 09:02:14 +02:00
Ralf Becker
50f362c5e3 * Filemanager: break infinit recursion stalling eg. login by introducing max. sub-directory depth of 100
Detects infinit recursion caused eg. by fs_dir pointing to a child-directory.
No idea how to efficently test for that, without scanning all parents of all filesystme nodes.
2016-10-19 15:52:44 +02:00
Ralf Becker
05e521e644 enhance filesystem check to also check fs_id of required nodes /, /home, /apps 2016-08-31 19:04:46 +02:00
Ralf Becker
dc4e2d73dc possible fix for deactivated / or /apps 2016-08-29 17:15:47 +02:00
Ralf Becker
6599d0ae64 Sqlfs::mkdir is no longer static, fixing some left over static calls 2016-08-29 13:44:35 +02:00
Ralf Becker
d0ffe48144 Sqlfs::mkdir is no longer static, fixing some left over static calls 2016-08-29 12:57:27 +02:00
Ralf Becker
e7ff94a153 * Filemanager/WebDAV: generally deny user to delete directories /, /home, /apps, /templates (last 2 incl. subdirectories) 2016-08-18 10:05:37 +02:00
Ralf Becker
b444969a86 calling (static) EGroupware\Api\Vfs::chown instead of using old egw_vfs not available in minimal install in account::deleted hook when moving home directory to /home/$new_user/old-home-$old_user 2016-08-15 15:44:31 +02:00
Ralf Becker
d9297ca193 Handle recursive directory creation in vfs layer, as not all underlaying
wrappers, eg. smb(client), support it themselfs
2016-08-12 08:51:03 +02:00
Ralf Becker
39a28c3faa * Filemanager: fix PHP Fatal error when changing ownership or permissions 2016-08-11 22:41:54 +02:00
Ralf Becker
cba0cd2071 try fixing error in installtion in Travis using Postgres during admin account creation 2016-08-07 11:19:05 +02:00
Ralf Becker
8a6127efea * EPL/Filemanager: fix PHP Fatal using file-a-file dialog (upload with setting eg. a comment) 2016-08-03 15:27:19 +02:00
Ralf Becker
2cb2f4a6b1 fix PHP Fatal error: Class 'EGroupware\Api\Vfs\Config' not found 2016-08-02 10:20:21 +02:00
Ralf Becker
b9109b6593 * Filemanager/EPL: fix broken notification / subscription to folders
Do not check for (no longer existing) $GLOBALS[egw]->hooks but for no class setup_process, to not call them during install or update.
2016-07-28 16:14:45 +02:00
Ralf Becker
6f4e65b782 make is-directory check more robust, by checking for PHP's directory-mode / Sqlfs::DIR_MODE too, not only for mime-type which is set eg. by stylite.links to "egs/$app" 2016-07-28 11:12:09 +02:00
Ralf Becker
686f3af559 fix cant attach files, if none have been attached to an entry before: Sqlfs\StreamWrapper::mkdir('/apps/calendar/123',0,1) already exist! 2016-07-28 09:41:10 +02:00
Ralf Becker
77bafe49fd fix PHP Fatal error: Access to undeclared static property: EGroupware\Api\Vfs\StreamWrapper::$is_root 2016-07-27 11:11:09 +02:00
Ralf Becker
a691144255 fix not working symlinking vfs files to infologs/links, fixed multiple PHP deprecated should not call non-static self::url_stat static 2016-07-26 12:02:09 +02:00
Ralf Becker
67720e760f fix PHP Fatal error: Call to undefined function EGroupware\Api\Vfs\Sqlfs() 2016-07-26 12:02:09 +02:00
Ralf Becker
eca0db5e6f fix PHP Fatal in propatch 2016-07-26 12:02:09 +02:00
Ralf Becker
2d1ddc1ef7 make Vfs\StreamWrapper::symlinkCache_remove public, to allow calling from Vfs 2016-07-26 12:02:09 +02:00
Ralf Becker
14908a4172 implement PHP 5.4+ stream_metadata method for VFS, allowing to use that functionality from other stream-wrappers like php-smbclient 2016-07-26 12:02:09 +02:00
Ralf Becker
112cc725a2 Vfs no longer extends Vfs\StreamWrapper, as this is the only way to keep static function signatures for Vfs class, also cleans up a bit 2016-07-26 12:02:09 +02:00
Ralf Becker
3845467b73 fixing our wrong static methods in stream-wrapper: unlink, rmdir, mkdir, rename and url_stat (they are not static, so PHP can pass in $context) 2016-07-26 12:02:09 +02:00
Ralf Becker
230ec19265 fix Scrutinizer "bugs" 2016-07-12 10:28:39 +02:00
Ralf Becker
5bb3afca93 fix Scrutinizer "bugs" 2016-07-12 10:27:49 +02:00
Ralf Becker
9aa98a46a5 fix some scrutinizer "bugs" 2016-06-26 19:44:53 +02:00
Ralf Becker
0a2b30f275 fix some scrutinizer "bugs" 2016-06-26 19:44:53 +02:00
Ralf Becker
ab02df94d4 extract PDO code from Sqlfs streamwrapper into class Api\Db\Pdo, to be able to use it for z-push SqlStateMaschine 2016-06-09 20:40:31 +02:00
Ralf Becker
e2190cee25 fix EGroupware\Api\Vfs\Sqlfs\StreamWrapper::mkdir('sqlfs://default/home/*****',56,8) already exist! 2016-06-06 13:59:45 +02:00
Ralf Becker
eb62aba637 fix PHP Fatal error: Class 'EGroupware\Api\Vfs\SharingUi' not found 2016-05-30 16:00:20 +02:00
Ralf Becker
1b8bc32f54 fix only show WebDAV autoindex, instead of filemanager GUI for sharing directories 2016-05-30 12:40:20 +02:00
Ralf Becker
e34fe9a4e7 using Acl::(ADD|READ|EDIT|DELETE|PRIVAT) constants instead old EGW_ACL_* defines and fix some namespace errors found by doc/check_namespace.php 2016-05-11 19:23:14 +00:00
Ralf Becker
e87cbc4832 use static Hooks methods 2016-05-11 18:58:10 +00:00
Ralf Becker
153c068271 fix diverse occurences of egw_db 2016-05-06 11:13:19 +00:00
Ralf Becker
bf0fbbb521 fix PHP Fatal caused by calling method of old hooks class 2016-05-06 09:34:29 +00:00
Ralf Becker
834cc466f5 to allow installing api or EGroupware without phpgwapi, old exceptions which we have to extend in order allow old apps to catch exceptions thrown from new api, have to reside in api/inc and get autoloaded 2016-05-02 16:57:50 +00:00
Ralf Becker
b86a5d469c use vcard_charset preference for generating vcards for addressbook 2016-04-29 08:52:28 +00:00
Ralf Becker
8c87cf9dfc move egw_framework to api and refactor it 2016-04-07 20:42:06 +00:00
Ralf Becker
9fd7b645ec move asyncservices class to api 2016-04-06 19:27:47 +00:00
Ralf Becker
41d00a0fd1 fix old exception 2016-04-05 18:39:55 +00:00
Ralf Becker
adb748d6e7 move hooks class to api and only cache hooks in instance cache (instead of database: filesystem scan takes ~4ms, cache ~0.2ms) 2016-04-02 14:16:20 +00:00
Ralf Becker
58834a0c73 fix An error happened (ErrorException): Argument 4 passed to EGroupware\Api\Vfs::copy_files() must be of the type array, none given 2016-03-29 11:01:34 +00:00
Ralf Becker
b202223f62 fix PHP Fatal error: Cannot make static method EGroupware\Api\Vfs\Sqlfs\StreamWrapper::get_eacl() non static in class EGroupware\Api\Vfs\Links\StreamWrapper 2016-03-29 07:01:36 +00:00
Ralf Becker
a417310b9d make all static methods static to avoid warning when they get called static 2016-03-27 09:41:58 +00:00
Ralf Becker
77c5102792 fixed more namespace issues found by doc/check_namespace.php I wrote and forgot about it ;-) 2016-03-21 21:21:40 +00:00
Ralf Becker
1b5429f0ff replacing common::egw_exit() with exit, there is no more extra cleanup 2016-03-20 16:30:01 +00:00
Ralf Becker
67cb60b972 moving egw_digest_auth, vfs_webdav_server and egw_sharing to new api 2016-03-20 16:19:53 +00:00
Ralf Becker
485416d5f1 replace create_function with performanter, because opcachable closure 2016-03-20 14:01:29 +00:00