]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
9 years agoDo not remove dir entry if it has the same name as the parent
Vincent Petry [Thu, 13 Nov 2014 16:37:56 +0000 (17:37 +0100)]
Do not remove dir entry if it has the same name as the parent

This fixes an issue when a subdir has the same name as its parent, it
would get exluded from the list.

9 years agoMerge pull request #12663 from zinks-/l10n-fr-backport
Morris Jobke [Wed, 10 Dec 2014 07:59:11 +0000 (08:59 +0100)]
Merge pull request #12663 from zinks-/l10n-fr-backport

Patched french translation (backported from master)

9 years agoMerge pull request #12656 from owncloud/stable7-fix-12164
Morris Jobke [Wed, 10 Dec 2014 07:26:02 +0000 (08:26 +0100)]
Merge pull request #12656 from owncloud/stable7-fix-12164

Wipe cache if there is no response from feed

9 years agoAdd js unit test
Robin Appelman [Tue, 25 Nov 2014 16:16:23 +0000 (17:16 +0100)]
Add js unit test

9 years agoDont show the delete button for selected files if one of the selected files is not...
Robin Appelman [Thu, 20 Nov 2014 15:53:32 +0000 (16:53 +0100)]
Dont show the delete button for selected files if one of the selected files is not deletable

9 years agoCheck if files are deletable before trying to delete them
Robin Appelman [Thu, 20 Nov 2014 15:34:33 +0000 (16:34 +0100)]
Check if files are deletable before trying to delete them

9 years agofix placeholder fake in IE8 & 9 that brokes group listing in user management - fixes...
Morris Jobke [Fri, 5 Dec 2014 11:16:22 +0000 (12:16 +0100)]
fix placeholder fake in IE8 & 9 that brokes group listing in user management - fixes #12525

9 years agotranslated saved message in files external
Volkan Gezer [Mon, 8 Dec 2014 20:40:15 +0000 (21:40 +0100)]
translated saved message in files external

9 years agoSkip headers that can not be split
Victor Dubiniuk [Mon, 8 Dec 2014 20:43:43 +0000 (23:43 +0300)]
Skip headers that can not be split

9 years agoremove duplicate loaded personal.js - fixes #12674
Morris Jobke [Tue, 9 Dec 2014 08:27:10 +0000 (09:27 +0100)]
remove duplicate loaded personal.js - fixes #12674

9 years ago7.0.4 v7.0.4
Frank Karlitschek [Mon, 8 Dec 2014 18:27:21 +0000 (19:27 +0100)]
7.0.4

9 years agoadd doc
Arthur Schiwon [Mon, 8 Dec 2014 16:22:52 +0000 (17:22 +0100)]
add doc

9 years agopreserve an asterisk at the start when escaping a search term
Arthur Schiwon [Mon, 8 Dec 2014 16:12:13 +0000 (17:12 +0100)]
preserve an asterisk at the start when escaping a search term

9 years agoCreate config if it does not exists
Lukas Reschke [Fri, 5 Dec 2014 16:32:19 +0000 (17:32 +0100)]
Create config if it does not exists

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.

9 years agoWipe cache if there is no response from feed
Victor Dubiniuk [Sat, 6 Dec 2014 12:19:20 +0000 (15:19 +0300)]
Wipe cache if there is no response from feed

9 years agoPatched french translation (backported from master)
Thomas Imbreckx [Fri, 5 Dec 2014 18:14:08 +0000 (19:14 +0100)]
Patched french translation (backported from master)

9 years agoAdd test for IPv6 without port
Lukas Reschke [Thu, 4 Dec 2014 11:16:33 +0000 (12:16 +0100)]
Add test for IPv6 without port

9 years agoAdd workaround for older instances
Lukas Reschke [Wed, 3 Dec 2014 20:13:27 +0000 (21:13 +0100)]
Add workaround for older instances

To be removed with oCAdd workaround for older instances

To be removed with oC99

9 years agoTrim port from domain
Lukas Reschke [Wed, 3 Dec 2014 18:54:48 +0000 (19:54 +0100)]
Trim port from domain

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)

9 years ago7.0.4 RC2 v7.0.4RC2
Frank Karlitschek [Fri, 5 Dec 2014 03:24:13 +0000 (04:24 +0100)]
7.0.4 RC2

9 years agoMerge pull request #12623 from owncloud/fix-s2s-oc7
Björn Schießle [Thu, 4 Dec 2014 21:24:57 +0000 (22:24 +0100)]
Merge pull request #12623 from owncloud/fix-s2s-oc7

password column needs to allow null (oc7 backport)

9 years agoMerge pull request #12309 from owncloud/ldap-cache-user-count
blizzz [Thu, 4 Dec 2014 18:08:20 +0000 (19:08 +0100)]
Merge pull request #12309 from owncloud/ldap-cache-user-count

LDAP: cache total  user count

9 years agoMerge pull request #12493 from owncloud/ldap_search_perf
blizzz [Thu, 4 Dec 2014 17:58:18 +0000 (18:58 +0100)]
Merge pull request #12493 from owncloud/ldap_search_perf

LDAP search behaviour modifications

9 years agopassword column needs to allow null otherwise Oracle will break for empty passwords
Bjoern Schiessle [Thu, 4 Dec 2014 11:11:38 +0000 (12:11 +0100)]
password column needs to allow null otherwise Oracle will break for empty passwords

9 years agotrim search string before passing it on
Arthur Schiwon [Thu, 4 Dec 2014 14:29:16 +0000 (15:29 +0100)]
trim search string before passing it on

9 years agoMerge pull request #12528 from owncloud/backport-12419
Thomas Müller [Wed, 3 Dec 2014 16:48:25 +0000 (17:48 +0100)]
Merge pull request #12528 from owncloud/backport-12419

Allow read-only configuration

9 years agoadd proper description what database is supported by CE and EE
Morris Jobke [Wed, 3 Dec 2014 07:52:59 +0000 (08:52 +0100)]
add proper description what database is supported by CE and EE

9 years ago7.0.4 RC1 v7.0.4RC1
Frank Karlitschek [Mon, 1 Dec 2014 20:42:19 +0000 (21:42 +0100)]
7.0.4 RC1

9 years agoAllow read-only configuration
Lukas Reschke [Tue, 25 Nov 2014 15:12:12 +0000 (16:12 +0100)]
Allow read-only configuration

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

9 years agoMerge pull request #11747 from owncloud/storeCredentialsOnlyInSessionIfRequired
Vincent Petry [Mon, 1 Dec 2014 10:07:57 +0000 (11:07 +0100)]
Merge pull request #11747 from owncloud/storeCredentialsOnlyInSessionIfRequired

Store credentials only in session if required

9 years agoMerge pull request #12496 from owncloud/check-xml-writer-for-7
Thomas Müller [Mon, 1 Dec 2014 09:53:50 +0000 (10:53 +0100)]
Merge pull request #12496 from owncloud/check-xml-writer-for-7

Check for XMLWriter class

10 years agoAdjust sample config
Lukas Reschke [Fri, 28 Nov 2014 15:58:09 +0000 (16:58 +0100)]
Adjust sample config

10 years agoDisable MSSQL for new CE installations
Lukas Reschke [Fri, 28 Nov 2014 15:08:38 +0000 (16:08 +0100)]
Disable MSSQL for new CE installations

Since automatic schema migrations are not yet possible let's disable this for now.

Conflicts:
lib/private/setup.php

10 years agoCheck for XMLWriter class
Lukas Reschke [Fri, 28 Nov 2014 14:40:11 +0000 (15:40 +0100)]
Check for XMLWriter class

Backport of https://github.com/owncloud/core/pull/12321

10 years agoLDAP search filter creation changes:
Arthur Schiwon [Fri, 28 Nov 2014 12:31:57 +0000 (13:31 +0100)]
LDAP search filter creation changes:

1. do not prepend * wildcard to search terms. Will result in faster search, but
you don't find "foobar"  when looking for "bar"
2. advanced behaviour when search string contains a space and multiple search
attributes are present. The search string is split into single words. The
resulting filter requires that each word at least appears once in any search
attribute. This is supposed to return better results in big LDAPs.

10 years agoadd ldap-search command to occ
Arthur Schiwon [Fri, 28 Nov 2014 11:08:33 +0000 (12:08 +0100)]
add ldap-search command to occ

10 years agoMarkup corrections
Carla Schroder [Tue, 25 Nov 2014 23:01:05 +0000 (15:01 -0800)]
Markup corrections

10 years agoAdd notes that SQLite is CE only
Carla Schroder [Tue, 25 Nov 2014 22:57:17 +0000 (14:57 -0800)]
Add notes that SQLite is CE only

10 years agodelete old previews
Georg Ehrke [Tue, 25 Nov 2014 14:42:02 +0000 (15:42 +0100)]
delete old previews

10 years agoadded comment that App Store is disabled for EE
Carla Schroder [Wed, 26 Nov 2014 00:31:02 +0000 (16:31 -0800)]
added comment that App Store is disabled for EE

10 years agoDon't show favicon to prevent iteration through subfolders
Lukas Reschke [Wed, 26 Nov 2014 11:38:26 +0000 (12:38 +0100)]
Don't show favicon to prevent iteration through subfolders

The codepath for generating the favicons iterates through subnodes and if one of those nodes is unavailable is throwing a 503 exception. Since these favicons don't have any use except of "making a tool for developers looking nicer" I consider it feasible to remove them.

10 years agoConsolidate if statement, and update unit test
Miguel Prokop [Fri, 21 Nov 2014 12:31:56 +0000 (13:31 +0100)]
Consolidate if statement, and update unit test

10 years agofix calculation of expiration date if there is a default expiration date set (but...
Miguel Prokop [Fri, 21 Nov 2014 10:01:39 +0000 (11:01 +0100)]
fix calculation of expiration date if there is a default expiration date set (but not forced) and the user does not want the link to expire.

10 years agoMerge pull request #12397 from owncloud/fix-undefined-appitem
Morris Jobke [Wed, 26 Nov 2014 10:18:15 +0000 (11:18 +0100)]
Merge pull request #12397 from owncloud/fix-undefined-appitem

[stable7] fixes undefined appitem - fixes #12396

10 years agoMerge pull request #12415 from owncloud/port-12262
Morris Jobke [Tue, 25 Nov 2014 14:45:27 +0000 (15:45 +0100)]
Merge pull request #12415 from owncloud/port-12262

Backport #12262

10 years agoTry to read the file only instead of trying to touch
Lukas Reschke [Wed, 12 Nov 2014 14:56:02 +0000 (15:56 +0100)]
Try to read the file only instead of trying to touch

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

10 years agouse login name to verify password
Bjoern Schiessle [Mon, 24 Nov 2014 14:44:43 +0000 (15:44 +0100)]
use login name to verify password

10 years agoThe "dir" key is used within the public sharing template to indicate in which directo...
Lukas Reschke [Tue, 25 Nov 2014 12:52:44 +0000 (13:52 +0100)]
The "dir" key is used within the public sharing template to indicate in which directory the user currently is when sharing a directory with subdirectories. This is needed by the JS scripts.

However, when not accessing a directory then "dir" was set to the relative path of the file (from the user's home directory), meaning that for every public shared file the sharee can see the path.
(For example if you share the file "foo.txt" from "finances/topsecret/" the sharee would still see the path "finances/topsecret/" from the shared HTML template)

This is not the excpected behaviour and can be considered a privacy problem, this patch addresses this by setting "dir" to an empty key.

Port of https://github.com/owncloud/core/pull/12262, approved with https://github.com/owncloud/core/pull/12262#issuecomment-64394040

10 years agofixes undefined appitem - fixes #12396
Morris Jobke [Mon, 24 Nov 2014 16:07:38 +0000 (17:07 +0100)]
fixes undefined appitem - fixes #12396

10 years agoMerge pull request #12373 from owncloud/backport_preview_fixes_stable7
Morris Jobke [Mon, 24 Nov 2014 12:28:00 +0000 (13:28 +0100)]
Merge pull request #12373 from owncloud/backport_preview_fixes_stable7

Backport preview fixes stable7

10 years agoUse `/` as redirect location if webroot is set to an empty value
Lukas Reschke [Fri, 21 Nov 2014 14:35:14 +0000 (15:35 +0100)]
Use `/` as redirect location if webroot is set to an empty value

If the webroot has been set to an empty value or ownCloud has been installed at the root location (`/``) there is a fair chance that the redirect for password resets does not work at all.

This means that while the password is getting resetted the user is not redirected to the login page.

I'm aware that it might be better to just set the webroot to `/` in those cases but this patch is better in the regard that it cannot break stuff.

Thanks to @PVince81 for helping me debugging this. (I'm a moron and assumed it couldn't be THAT easy)

Reported by @cdamken

10 years agodelete all children's previews when deleting a folder
Georg Ehrke [Tue, 26 Aug 2014 10:41:03 +0000 (12:41 +0200)]
delete all children's previews when deleting a folder

add phpdoc

Conflicts:
lib/private/preview.php

10 years agoadd y to with-aspect naming schema
Georg Ehrke [Tue, 26 Aug 2014 14:43:08 +0000 (16:43 +0200)]
add y to with-aspect naming schema

10 years agoMerge pull request #12131 from owncloud/stable7-enc-recoverykeywithextstoragefix
Vincent Petry [Thu, 20 Nov 2014 15:43:20 +0000 (16:43 +0100)]
Merge pull request #12131 from owncloud/stable7-enc-recoverykeywithextstoragefix

[stable7] Fix file upload to ext storage when recovery key is enabled

10 years agoOnly store user credentials when SMB_OC storage is enabled
Lukas Reschke [Thu, 23 Oct 2014 18:17:08 +0000 (20:17 +0200)]
Only store user credentials when SMB_OC storage is enabled

10 years agoBackport \OC\Security\Crypto to ownCloud 7
Lukas Reschke [Thu, 20 Nov 2014 15:02:32 +0000 (16:02 +0100)]
Backport \OC\Security\Crypto to ownCloud 7

Conflicts:
lib/repair/repairconfig.php

10 years agoShow warning when invalid user was passed
Vincent Petry [Fri, 14 Nov 2014 11:45:36 +0000 (12:45 +0100)]
Show warning when invalid user was passed

Sometimes there are bugs that cause setupFS() to be called for
non-existing users. Instead of failing hard and breaking the instance,
this fix simply logs a warning.

Backport c941c3fa5139ba4f122d4f40d9c9db5e50f8bcb7 from master

10 years agocache total user count
Arthur Schiwon [Wed, 19 Nov 2014 17:16:08 +0000 (18:16 +0100)]
cache total  user count

10 years agoadjust autocomplete behavior for sharing menu
Craig Morrissey [Fri, 17 Oct 2014 15:55:32 +0000 (11:55 -0400)]
adjust autocomplete behavior for sharing menu

10 years agoMerge pull request #12288 from owncloud/backport-mapper-fixes
Joas Schilling [Wed, 19 Nov 2014 15:29:30 +0000 (16:29 +0100)]
Merge pull request #12288 from owncloud/backport-mapper-fixes

Backport mapper fixes

10 years agoMerge pull request #12291 from owncloud/issue/10991-stable7-backport
Joas Schilling [Wed, 19 Nov 2014 15:19:06 +0000 (16:19 +0100)]
Merge pull request #12291 from owncloud/issue/10991-stable7-backport

Issue/10991 stable7 backport

10 years agofixing cache routes
Clark Tomlinson [Mon, 22 Sep 2014 17:38:46 +0000 (13:38 -0400)]
fixing cache routes

Conflicts:
tests/lib/cache/file.php
tests/lib/cache/usercache.php

10 years agoFix mapping of relative paths
Lukas Reschke [Wed, 17 Sep 2014 09:36:08 +0000 (11:36 +0200)]
Fix mapping of relative paths

10 years agoUse md5() of the original name instead of uniqid() for slugifying
Joas Schilling [Mon, 25 Aug 2014 12:29:07 +0000 (14:29 +0200)]
Use md5() of the original name instead of uniqid() for slugifying

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

10 years agoFix code layout before fixing the function
Joas Schilling [Mon, 25 Aug 2014 10:48:26 +0000 (12:48 +0200)]
Fix code layout before fixing the function

10 years agouse the new base class for share/share.php tests
Bjoern Schiessle [Tue, 18 Nov 2014 10:08:01 +0000 (11:08 +0100)]
use the new base class for share/share.php tests

10 years agoSimple fix for the wrong Mapper reset
Joas Schilling [Tue, 18 Nov 2014 11:35:44 +0000 (12:35 +0100)]
Simple fix for the wrong Mapper reset

10 years agoBack to OC_Util::generateRandomBytes()
Joas Schilling [Mon, 17 Nov 2014 16:37:37 +0000 (17:37 +0100)]
Back to OC_Util::generateRandomBytes()

10 years agoCorrectly restore previous root mount point after testing
Joas Schilling [Wed, 12 Nov 2014 14:54:41 +0000 (15:54 +0100)]
Correctly restore previous root mount point after testing

Conflicts:
tests/lib/cache/file.php
tests/lib/cache/usercache.php

10 years agoCorrectly refresh the apps list after removing the mock
Joas Schilling [Fri, 14 Nov 2014 11:51:59 +0000 (12:51 +0100)]
Correctly refresh the apps list after removing the mock

10 years agoFix Files\Storage\Home::testRoot()
Joas Schilling [Mon, 10 Nov 2014 10:38:14 +0000 (11:38 +0100)]
Fix Files\Storage\Home::testRoot()

10 years agoMake it possible to cleanPath() absolute Windows paths
Joas Schilling [Fri, 7 Nov 2014 09:52:37 +0000 (10:52 +0100)]
Make it possible to cleanPath() absolute Windows paths

10 years agoFix single run of encryption tests and usages of uniqid() and fopen()
Joas Schilling [Thu, 6 Nov 2014 15:53:35 +0000 (16:53 +0100)]
Fix single run of encryption tests and usages of uniqid() and fopen()

Conflicts:
apps/files_encryption/tests/crypt.php
apps/files_encryption/tests/helper.php
apps/files_encryption/tests/hooks.php
apps/files_encryption/tests/keymanager.php
apps/files_encryption/tests/proxy.php
apps/files_encryption/tests/share.php
apps/files_encryption/tests/stream.php
apps/files_encryption/tests/trashbin.php
apps/files_encryption/tests/webdav.php

10 years agoSkip some more tests on Windows which just can not work at all
Joas Schilling [Mon, 10 Nov 2014 10:01:43 +0000 (11:01 +0100)]
Skip some more tests on Windows which just can not work at all

Conflicts:
tests/lib/archive/tar.php
tests/lib/files/storage/local.php
tests/lib/files/view.php

10 years agoWindows does not support CHMOD, therefor we can not test not writable folders
Joas Schilling [Wed, 5 Nov 2014 15:47:27 +0000 (16:47 +0100)]
Windows does not support CHMOD, therefor we can not test not writable folders

Conflicts:
tests/lib/tempmanager.php

10 years agoTest LargeFileHelperGetFileSize also with ascii only characters
Joas Schilling [Wed, 5 Nov 2014 15:42:19 +0000 (16:42 +0100)]
Test LargeFileHelperGetFileSize also with ascii only characters

And skip the UTF8 names on Windows as they are not supported

10 years agoDo not use uniqid in Group and User tests as it is not unique on windows
Joas Schilling [Wed, 5 Nov 2014 11:21:02 +0000 (12:21 +0100)]
Do not use uniqid in Group and User tests as it is not unique on windows

10 years agoTestcase base class
Joas Schilling [Wed, 5 Nov 2014 12:20:43 +0000 (13:20 +0100)]
Testcase base class

10 years agoonly users can have a display name different from the id
Bjoern Schiessle [Tue, 18 Nov 2014 10:41:45 +0000 (11:41 +0100)]
only users can have a display name different from the id

10 years agomake sure that we only find the shares from the correct share type if users and group...
Bjoern Schiessle [Mon, 17 Nov 2014 17:05:12 +0000 (18:05 +0100)]
make sure that we only find the shares from the correct share type if users and groups with the same ID exists

10 years agomake sure that we don't find the wrong shares if a user and a group have the same ID
Bjoern Schiessle [Mon, 17 Nov 2014 12:09:13 +0000 (13:09 +0100)]
make sure that we don't find the wrong shares if a user and a group have the same ID

10 years agoMerge pull request #12154 from owncloud/ignore-port-for-trusted-domain
Morris Jobke [Tue, 18 Nov 2014 09:53:22 +0000 (10:53 +0100)]
Merge pull request #12154 from owncloud/ignore-port-for-trusted-domain

Ignore port for trusted domains

10 years agoadd newline
Morris Jobke [Tue, 18 Nov 2014 09:48:38 +0000 (10:48 +0100)]
add newline

10 years agoMerge pull request #12223 from owncloud/fix-unit-tests-s7
Lukas Reschke [Mon, 17 Nov 2014 12:48:56 +0000 (13:48 +0100)]
Merge pull request #12223 from owncloud/fix-unit-tests-s7

Backport #12181

10 years agofile size on non-(Linux/BSD/Windows)-installations
Michael Roitzsch [Thu, 7 Aug 2014 13:41:58 +0000 (15:41 +0200)]
file size on non-(Linux/BSD/Windows)-installations

Determining the file size using the exec() method is implemented for Linux, BSD, and Windows. However, on systems matching neither platform name (like SunOS), the fall-through path will return a file size result constituting a zero size instead of an invalid null return value.

10 years agoBackport #12181
Lukas Reschke [Mon, 17 Nov 2014 11:48:13 +0000 (12:48 +0100)]
Backport #12181

This should fix the stable7 unit tests again since the last CI update.

10 years agoFix file upload to ext storage when recovery key is enabled
Vincent Petry [Wed, 12 Nov 2014 12:33:41 +0000 (13:33 +0100)]
Fix file upload to ext storage when recovery key is enabled

Fixes an issue when uploading files to external storage when recovery
keys are enabled

The Util class only works with real users, so instantiating it with the
virtual recovery key user or public key user can cause issues.

10 years agoCheck if app is enabled for user
Lukas Reschke [Fri, 14 Nov 2014 16:20:51 +0000 (17:20 +0100)]
Check if app is enabled for user

Fixes https://github.com/owncloud/core/issues/12188 for AppFramework apps

10 years agoHiding add to your own cloud if server2server sharing is not enabled
Clark Tomlinson [Wed, 3 Sep 2014 14:00:01 +0000 (10:00 -0400)]
Hiding add to your own cloud if server2server sharing is not enabled

10 years agocleanup group admin(s) on deleteGroup
michag86 [Wed, 8 Oct 2014 12:05:06 +0000 (14:05 +0200)]
cleanup group admin(s) on deleteGroup

10 years agoremoval of wrong/double implemented check
michag86 [Tue, 4 Nov 2014 20:18:50 +0000 (21:18 +0100)]
removal of wrong/double implemented check

Check already implemented in core/settings/ajax/changedisplayname.php

10 years agofix for issue #10880
michag86 [Tue, 7 Oct 2014 14:07:48 +0000 (16:07 +0200)]
fix for issue #10880

10 years agoAdd repair steps for legacy config files
Lukas Reschke [Thu, 13 Nov 2014 12:34:11 +0000 (13:34 +0100)]
Add repair steps for legacy config files

Remove all ports from the trusted domains

10 years agoMerge pull request #12109 from owncloud/add-preupdate-before-upgrade
Lukas Reschke [Thu, 13 Nov 2014 11:07:10 +0000 (12:07 +0100)]
Merge pull request #12109 from owncloud/add-preupdate-before-upgrade

Run preupdate before an update

10 years agoIgnore port for trusted domains
Lukas Reschke [Thu, 13 Nov 2014 10:15:47 +0000 (11:15 +0100)]
Ignore port for trusted domains

This lead to a lot of confusion in the past and did not really offer any value. Let's remove the port check therefore. (it's anyways not really a part of the domain)

Fixes https://github.com/owncloud/core/issues/12150 and https://github.com/owncloud/core/issues/12123 and also a problem reported by @DeepDiver1975.

10 years agouser_ldap: Reimplement convertSID2Str() without BCMath dependency.
Andreas Fischer [Thu, 18 Sep 2014 22:01:57 +0000 (00:01 +0200)]
user_ldap: Reimplement convertSID2Str() without BCMath dependency.

Also explicitly format sub-id integers as unsigned, which is required for
32-bit systems.

10 years agoFix root path handling for WebDAV ext storage
Vincent Petry [Tue, 11 Nov 2014 14:20:36 +0000 (15:20 +0100)]
Fix root path handling for WebDAV ext storage

Added missing cleanPath() call that converts "/" to "" when calling
SabreDAV. This is needed because SabreDAV will discard its base URL when
passing "/".

10 years agoRun preupdate before an update
Lukas Reschke [Tue, 11 Nov 2014 16:26:08 +0000 (17:26 +0100)]
Run preupdate before an update

The update routine tries to test the database migration before actually performing the update.

However, this will fail hard if the schema has changed (for example an unique key has been added). App developers can convert the DB in preupdate.php, however it is not called before and therefore the update fails.

This actually breaks ownCloud updates from ownCloud 6 to ownCloud 7 when the files_antivirus app is enabled.

10 years agoFix infinite loop if count and limit is 0
Morris Jobke [Tue, 11 Nov 2014 11:15:30 +0000 (12:15 +0100)]
Fix infinite loop if count and limit is 0

* otherwise it will always think it hits the limit and need another round to fetch additional results

10 years agodont fail with 500 if configured display name attribute is not set
Arthur Schiwon [Mon, 27 Oct 2014 14:58:23 +0000 (15:58 +0100)]
dont fail with 500 if configured display name attribute is not set