summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Close cursor early in calculateFolderSizeVincent Petry2015-01-292-0/+4
| | | | | | | | | | This method triggers additional queries in $this->update() so to avoid potential database locks or delays, we close the cursor as soon as it is not needed any more
* | Merge pull request #13470 from ↵Morris Jobke2015-01-231-12/+17
|\ \ | | | | | | | | | | | | owncloud/stable7-share-fixfindshareforuserwithmultiplegroups [stable7] Fix getItemSharedWithUser for groups
| * | Fix getItemSharedWithUser for groupsVincent Petry2015-01-201-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | Fixed SQL query for whenever a user has more than one group. Added missing $owner where clause for group lookup. Added unit tests for the group cases. Backport of 40931a8b0d5d10c0f711756a4e8a423ff055621e from master
* | | add config-option for an image's maximum filesize when generating previewsGeorg Ehrke2015-01-221-0/+7
| | |
* | | remove insane debug-log from OC_ImageGeorg Ehrke2015-01-221-1/+0
| | |
* | | Fix undefined offset 1 for wrong user mail addressMorris Jobke2015-01-221-0/+3
| | | | | | | | | | | | * fixes Undefined offset: 1 at lib/private/mail.php#143
* | | Remove duplicated slashes from the requested urlRobin Appelman2015-01-221-0/+2
| | |
* | | Set the debugoutput channel to error_log instead of echoing itJoas Schilling2015-01-211-0/+1
|/ /
* | php <5.4 style arrayRobin Appelman2015-01-151-2/+2
| |
* | Proper constant for stable7Robin Appelman2015-01-151-1/+1
| |
* | Add View::getMount() for stable7Robin Appelman2015-01-151-0/+13
| |
* | Return valid fileinfo objects for part filesRobin Appelman2015-01-151-0/+31
| |
* | drop useless "!!! No reuse of etag" - fixes #13187Morris Jobke2015-01-131-3/+0
| | | | | | | | Backport of 9b49b52fc6cd11615be86580c32e43a81d46772f from master
* | Merge pull request #13186 from owncloud/no-session-for-formfactor-stable7Morris Jobke2015-01-091-22/+14
|\ \ | | | | | | no need to store the form factor in the session - it's computation is ra...
| * | no need to store the form factor in the session - it's computation is rather ↵Thomas Müller2015-01-091-22/+14
| | | | | | | | | | | | | | | | | | | | | cheep Conflicts: lib/private/template.php
* | | Use the TempManager to handle temporary filesRobin Appelman2015-01-082-118/+6
| | | | | | | | | | | | | | | Conflicts: lib/private/helper.php
* | | Add \OC\TempManager to handle creating and cleaning temporary filesRobin Appelman2015-01-084-0/+203
| | | | | | | | | | | | | | | | | | Conflicts: lib/private/server.php lib/public/iservercontainer.php
* | | Prevent leaking db connection info in the stacktraceRobin Appelman2015-01-071-0/+10
| | |
* | | Added error check to lib/private/image.phpByron Marohn2015-01-021-0/+6
| | | | | | | | | | | | | | | | | | | | | This checks that imagecreatetruecolor actually creates an image, rather than returning FALSE. Without this check, subsequent loop might create billions of ERROR-level log messages. Signed-off-by: Byron Marohn <combustible@live.com>
* | | LDAP User CleanupArthur Schiwon2014-12-152-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | background job for user clean up adjust user backend for clean up register background job remove dead code dependency injection make Helper non-static for proper testing check whether it is OK to run clean up job. Do not forget to pass arguments. use correct method to get the config from server methods can be private, proper indirect testing is given no automatic user deletion make limit readable for test purposes make method less complex add first tests let preferences accept limit and offset for getUsersForValue DI via constructor does not work for background jobs after detecting, now we have retrieving deleted users and their details we need this method to be public for now finalize export method, add missing getter clean up namespaces and get rid of unnecessary files helper is not static anymore cleanup according to scrutinizer add cli tool to show deleted users uses are necessary after recent namespace change also remove user from mappings table on deletion add occ command to delete users fix use statement improve output big fixes / improvements PHP doc return true in userExists early for cleaning up deleted users bump version control state and interval with one config.php setting, now ldapUserCleanupInterval. 0 will disable it. enabled by default. improve doc rename cli method to be consistent with others introduce ldapUserCleanupInterval in sample config don't show last login as unix epoche start when no login happend less log output consistent namespace for OfflineUser rename GarbageCollector to DeletedUsersIndex and move it to user subdir fix unit tests add tests for deleteUser more test adjustements
* | | make regex in controllermethodreflector.php compatible with PCRE 6.xPhilipp Knechtges2014-12-131-1/+1
| | | | | | | | | | | | | | | The syntax ?<...> seems to be only supported from PCRE 7.0 on. For backwards-compability ?P<...> is used.
* | | remove ugly hack and don't use OC\Preview\Image for tiffs and svgsGeorg Ehrke2014-12-122-11/+1
| | |
* | | Return real mime type on PROPFINDVincent Petry2014-12-121-0/+4
| | | | | | | | | | | | Return the real (insecure) mime type on PROPFIND
* | | Ensure user mountpoints are setup when using getUserFolderRobin Appelman2014-12-121-0/+1
| | |
* | | Merge pull request #12663 from zinks-/l10n-fr-backportMorris Jobke2014-12-101-7/+7
|\ \ \ | | | | | | | | Patched french translation (backported from master)
| * | | Patched french translation (backported from master)Thomas Imbreckx2014-12-051-7/+7
| | | |
* | | | Merge pull request #12656 from owncloud/stable7-fix-12164Morris Jobke2014-12-101-0/+1
|\ \ \ \ | | | | | | | | | | Wipe cache if there is no response from feed
| * | | | Wipe cache if there is no response from feedVictor Dubiniuk2014-12-061-0/+1
| |/ / /
* / / / Create config if it does not existsLukas Reschke2014-12-071-1/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | The codepath that is executed when executing ownCloud via CLI is different than via browser. Specifically, the config is created by the user session already in `OC_Util::getInstanceId()` by a call to `setValue`. That said, this seems to be quite a bad side-effect, but for the sake of "not breaking whatever might break if we touch this" let's keep it that way for now. When executing the autoconfig via `php -f index.php` the said session was not setup and thus no `config/config.php` file was created resulting in an installation error. To reproduce this try to setup ownCloud via `php -f index.php` with and without that patch. (ensure to delete all existing configs before and don't access ownCloud with a browser in the meantime) Fixes itself.
* | | Add workaround for older instancesLukas Reschke2014-12-051-3/+8
| | | | | | | | | | | | | | | | | | To be removed with oCAdd workaround for older instances To be removed with oC99
* | | Trim port from domainLukas Reschke2014-12-052-8/+18
| | | | | | | | | | | | | | | | | | Depending on the used environment the port might be appended to the host header resulting in an inaccessible instance when initially setting up on a system with a different HTTP or HTTPS port. (for example test:500) To test this setup ownCloud under a different port with and without this patch. (heads-up: localhost is always white-listed, so use a different domain)
* | | Allow read-only configurationLukas Reschke2014-12-012-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Workaround required for IIS setups running ownCloud to prevent dataloss. Long-term solution would be to move some configuration settings to the database Conflicts: lib/base.php settings/admin.php
* | | Merge pull request #11747 from owncloud/storeCredentialsOnlyInSessionIfRequiredVincent Petry2014-12-018-1/+275
|\ \ \ | | | | | | | | Store credentials only in session if required
| * | | Backport \OC\Security\Crypto to ownCloud 7Lukas Reschke2014-11-208-1/+275
| | |/ | |/| | | | | | | | | | Conflicts: lib/repair/repairconfig.php
* | | Merge pull request #12496 from owncloud/check-xml-writer-for-7Thomas Müller2014-12-011-0/+7
|\ \ \ | | | | | | | | Check for XMLWriter class
| * | | Check for XMLWriter classLukas Reschke2014-11-281-0/+7
| | | | | | | | | | | | | | | | Backport of https://github.com/owncloud/core/pull/12321
* | | | Disable MSSQL for new CE installationsLukas Reschke2014-11-281-1/+3
|/ / / | | | | | | | | | | | | | | | | | | Since automatic schema migrations are not yet possible let's disable this for now. Conflicts: lib/private/setup.php
* | | delete old previewsGeorg Ehrke2014-11-271-1/+1
| | |
* | | Consolidate if statement, and update unit testMiguel Prokop2014-11-261-4/+2
| | |
* | | fix calculation of expiration date if there is a default expiration date set ↵Miguel Prokop2014-11-261-3/+8
| | | | | | | | | | | | (but not forced) and the user does not want the link to expire.
* | | Try to read the file only instead of trying to touchLukas Reschke2014-11-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The permissions are already catched properly on the installation so we just have to check whether the file is readable to prevent fatal errors from happening. Fixes https://github.com/owncloud/core/issues/12135 Conflicts: lib/private/config.php
* | | delete all children's previews when deleting a folderGeorg Ehrke2014-11-231-14/+93
| | | | | | | | | | | | | | | | | | | | | add phpdoc Conflicts: lib/private/preview.php
* | | add y to with-aspect naming schemaGeorg Ehrke2014-11-231-7/+13
|/ /
* | Merge pull request #12288 from owncloud/backport-mapper-fixesJoas Schilling2014-11-191-26/+49
|\ \ | | | | | | Backport mapper fixes
| * | Fix mapping of relative pathsLukas Reschke2014-11-191-14/+30
| | |
| * | Use md5() of the original name instead of uniqid() for slugifyingJoas Schilling2014-11-191-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we used uniqid() here. However this means that the behaviour is not reproducable, so when uploading files into a "empty" folder, the folders name is different. If there would be a md5() hash collition, the deduplicate check will spot this and append an index later, so this should not be a problem. Fix #6722
| * | Fix code layout before fixing the functionJoas Schilling2014-11-191-13/+9
| | |
* | | Simple fix for the wrong Mapper resetJoas Schilling2014-11-191-3/+0
| | |
* | | Make it possible to cleanPath() absolute Windows pathsJoas Schilling2014-11-191-2/+11
|/ /
* | only users can have a display name different from the idBjoern Schiessle2014-11-181-1/+4
| |