Commit graph

34749 commits

Author SHA1 Message Date
Morris Jobke
cbcb53119a
add updated composer autoloader code 2016-09-12 15:32:22 +02:00
Thomas Müller
3212e2f9e3
Clean up code coverage
- owncloud/core#26091
2016-09-12 15:03:35 +02:00
Morris Jobke
4e674b32e1 Merge pull request #1369 from nextcloud/georgehrke-readme-patch-1
replace he with they in readme
2016-09-12 14:38:58 +02:00
Joas Schilling
a7226996f7 Merge pull request #1359 from nextcloud/cache_controller_name
Cache the build ControllerName
2016-09-12 14:26:51 +02:00
Georg Ehrke
4d6a5ccb8d replace he with they in readme 2016-09-12 14:25:13 +02:00
Nextcloud bot
cf57055960
[tx-robot] updated from transifex 2016-09-12 00:09:35 +00:00
Morris Jobke
9c3ffa6a65 Merge pull request #1351 from nextcloud/cast_to_int
Cast query result to int
2016-09-11 23:18:44 +02:00
Roeland Jago Douma
bc40a033f3 Merge pull request #1250 from nextcloud/remote_ocs
Move remote_shares OCS endpoint to AppFramework
2016-09-11 20:57:46 +02:00
Roeland Jago Douma
959bf0d1a7
Cache the build ControllerName
Often a route.php file will have many N routes but only M controllers.
Where N >= M. Which means that in most cases the ControllerName will be
converted multiple times. This is of course far from ideal.

Note that this is per app so the cache will contain at most N entries.
Which is not to bad.
2016-09-11 13:25:32 +02:00
Nextcloud bot
96d176d1e8
[tx-robot] updated from transifex 2016-09-11 00:09:14 +00:00
Roeland Jago Douma
ef4eaaee17 Merge pull request #1346 from nextcloud/trash-detect-correct-mimetype
deleted files, fix mimetype detection
2016-09-10 14:42:06 +02:00
Nextcloud bot
341d4f0c01
[tx-robot] updated from transifex 2016-09-10 00:09:19 +00:00
Roeland Jago Douma
94fb5bcbae
Cast query result to int
Else we never create the default address book
2016-09-09 19:15:27 +02:00
Semih Serhat Karakaya
cfc1c7cbd2 Update CachedMountInfo for user home storage
In getMountPointNode function rootId is not inside of the userFolder for home storage. We was searching '/user' folder in '/user/files' folder. So, it was return NULL. I moved searching part to parent folder. It solves everything. Also, obviously other storage types not affect then this change.

Related owncloud commit :
https://github.com/owncloud/core/pull/26017
2016-09-09 18:07:21 +03:00
Bjoern Schiessle
68b53669c0
detect the correct mimetype of the files in the trashbin, therefore we have to check the filename without the appended timestamp 2016-09-09 15:36:30 +02:00
Roeland Jago Douma
b945848f78
[3rdparty] Bump symfony/event-dispatcher 2016-09-09 15:14:41 +02:00
Morris Jobke
3fc37b2fc5 Merge pull request #1342 from nextcloud/throw-exceptions-not-printable
Don't print exception message in HTML
2016-09-09 14:57:23 +02:00
Morris Jobke
f6c7b4e6eb Merge pull request #1339 from nextcloud/master-limit-possible-image-mimetypes
Filter more mimetypes
2016-09-09 14:46:44 +02:00
Morris Jobke
f56ae37e8f
Opening the trashbin causes errors in log for files without preview
* put a file without a generated preview in the trashbin
  (e.g. a *.docx file)
* open the trashbin
* following errors will show up in the nextcloud.log:
	- filesize(): stat failed for ...
	- fopen(...): failed to open stream: No such file or directory at ...
	- fread() expects parameter 1 to be resource, boolean given at ...
	- fclose() expects parameter 1 to be resource, boolean given at ...
	- imagecreatefromstring(): Empty string or invalid image at ...

This is because the preview code tries to load an SVG image, which
is obviously only text.

The fix simply handles this before the loading happens and the web UI
keeps showing the default mimetype icon.
2016-09-09 13:53:06 +02:00
Lukas Reschke
f715b5ea2e
Don't print exception message in HTML
The exception message is potentially influenced by user input and could thus be confusing (e.g. somebody could try to open a file like "Please send a mail to support@foo.com", and then the message would include that string.

It is thus reasonable to not show the exception message by default. Also for the browser view I added an `exit()` at the end, as otherwise the XML exception would be attached.
2016-09-09 13:52:34 +02:00
Lukas Reschke
67439951e6
Filter more mimetypes
There's no need to allow more than those defined mimetypes for images.
2016-09-09 12:33:10 +02:00
Roeland Jago Douma
ba104233b0
Move remote_shares OCS endpoint to AppFramework 2016-09-09 07:40:33 +02:00
Nextcloud bot
f5aafdc897
[tx-robot] updated from transifex 2016-09-09 00:09:31 +00:00
Morris Jobke
c16aefcff5 Merge pull request #1317 from nextcloud/add-sharing-disclaimer
Adding a optional disclaimer to the anonymous upload page
2016-09-08 21:18:28 +02:00
Morris Jobke
5ac26d12f0 Merge pull request #1247 from nextcloud/storage-id-global-cache
more efficient querying of numeric storage ids
2016-09-08 21:09:14 +02:00
Lukas Reschke
268c5a0aa0
Adjust test 2016-09-08 20:34:04 +02:00
Lukas Reschke
404b212b87
Use l10n 2016-09-08 20:11:54 +02:00
Lukas Reschke
9a2ae2fe7d
Fix tests 2016-09-08 20:11:21 +02:00
Roeland Jago Douma
e18fecae47 Merge pull request #1297 from nextcloud/catch-exceptions-with-invalid-passwords
Catch the exception of the password policy app
2016-09-08 19:54:27 +02:00
Morris Jobke
6bb95de1c5
Adding a optional disclaimer to the anonymous upload page 2016-09-08 18:44:27 +02:00
Morris Jobke
d8c4f18c0c Merge pull request #1328 from nextcloud/add-exemption-for-osx
Add exemptions for incompatible UAs
2016-09-08 18:39:33 +02:00
Lukas Reschke
6ac890812f
Add exemptions for incompatible UAs
Some user agents are notorious and don't really properly follow HTTP
 specifications. For those, have an automated opt-out. Since the protection
for remote.php is applied in base.php as starting point we need to opt out
here.
2016-09-08 17:20:46 +02:00
Morris Jobke
7cd1369f76 Merge pull request #1323 from nextcloud/show-download-button-for-updates-atm
Show an download button instead of the updater
2016-09-08 15:40:41 +02:00
Lukas Reschke
ef56b0b5c9 Merge pull request #1318 from nextcloud/11-supports-php7.1
Master supports PHP 7.1
2016-09-08 13:23:18 +02:00
Joas Schilling
fd6ed3aacc Merge pull request #1315 from nextcloud/remove_password_compat
[3rdparty] PasswordCompat is no longer required
2016-09-08 12:33:28 +02:00
Joas Schilling
0cec06d0c8
Change updater URL 2016-09-08 12:30:17 +02:00
Joas Schilling
27a3c68d84
Fix tests 2016-09-08 11:13:36 +02:00
Joas Schilling
202ae42506
Show an update button instead of the updater 2016-09-08 10:59:14 +02:00
Roeland Jago Douma
3e46c925f8
[3rdparty] PasswordCompat is no longer required 2016-09-08 09:57:52 +02:00
Lukas Reschke
b7decc52e9
Master supports PHP 7.1 2016-09-08 09:20:33 +02:00
Lukas Reschke
ff691b4d8a Merge pull request #836 from nextcloud/php7.1
Add PHP 7.1 drone tests
2016-09-08 09:19:59 +02:00
Joas Schilling
cdfe538452 Merge pull request #1243 from nextcloud/fix-detection-of-file-types-a-bit
Fix detection of file types a bit
2016-09-08 09:19:33 +02:00
Nextcloud bot
b992bf2142
[tx-robot] updated from transifex 2016-09-08 00:10:21 +00:00
Roeland Jago Douma
9d00f367f9
Compare arrays not json strings
In php 7.1 the pretty print json output changed. Thus now we compare
arrays.
2016-09-07 23:06:18 +02:00
Lukas Reschke
1b2021a243
Use the PHP 7.1-3 tag
Bumps the PHP version from beta2 to RC1
2016-09-07 22:24:29 +02:00
Lukas Reschke
d4cbc24bae
Update 3rdparty ref 2016-09-07 22:09:37 +02:00
Roeland Jago Douma
1cdf4e9540
Set default 2016-09-07 22:09:32 +02:00
Roeland Jago Douma
fb4850ffa8
Fix intergrity checker
* Set salt length to 0
  See https://tools.ietf.org/html/rfc3447#page-38
* Fix tests for new phpunit
2016-09-07 22:09:29 +02:00
Lukas Reschke
1937e6eb35
Use updated phpseclib ref 2016-09-07 22:09:09 +02:00
Thomas Müller
1631ef5acc
Initialize array elements properly 2016-09-07 22:09:08 +02:00