Commit Graph

40727 Commits

Author SHA1 Message Date
Roeland Jago Douma ce7a211743 Actually return the root folder when traversing up the tree
If you now keep calling $node->getParent() you will at some point get
the RootFolder back. This is a nice termination check and will prevent
endless loops if an exit condition is slightly off.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-10-26 08:35:55 +02:00
Nextcloud bot ce4927b92b
[tx-robot] updated from transifex 2018-10-26 00:13:18 +00:00
Morris Jobke 24b688de52
Merge pull request #11998 from nextcloud/stable12-11967-fix-opening-a-section-again-in-the-files-app
[stable12] Fix opening a section again in the Files app
2018-10-25 14:12:29 +02:00
Nextcloud bot f0cfd79db4
[tx-robot] updated from transifex 2018-10-25 00:13:34 +00:00
Nextcloud bot 272ea4ec66
[tx-robot] updated from transifex 2018-10-24 00:12:58 +00:00
Daniel Calviño Sánchez fc3ddce0a2 Add acceptance tests for opening a section in the Files app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-10-23 17:46:34 +02:00
Daniel Calviño Sánchez ba07152164 Remove event handler no longer needed
The custom handler for "URL changed" events were added to reload the
file list whenever the sections for favorites and shares were opened;
this was used to fix the problem of not reloading the file lists when
opening them for a second time. However, besides that the handlers were
not really necessary, and as the root of the bug was fixed in the
previous commit those handlers are now removed.

The file list for tags uses the handler for a different purpose, though,
so that one was kept.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-10-23 17:46:34 +02:00
Daniel Calviño Sánchez be878f2e76 Fix opening a section again in the Files app
When a section is open in the Files app a "show" event is triggered.
File list objects handle that event by reloading themselves, but only
if the file list was shown at least once. However, the file list objects
of plugins are created when the "show" event is triggered for the first
time for their section; as the file list objects register their handler
for the "show" event when they are created they never handle the first
triggered "show" event, as the handler is set while that event is being
already handled. Therefore, from the point of view of the handler, the
second time that a "show" event was triggered it was seen as if the file
list was shown for the first time, and thus it was not reloaded. Now the
"shown" property is explicitly set for those file lists that are created
while handling a "show" event, which causes them to be reloaded as
expected when opening their section again.

Note that it is not possible to just reload the file list whenever it is
shown; the file list is reloaded also when the directory changes, and
this can happen when the web page is initially loaded and the URL is
parsed. In that case, if file lists were reloaded when shown for the
first time then it could be reloaded twice, one with the default
parameters due to the "show" event and another one with the proper
parameters once the URL was parsed, and the files that appeard in the
list would depend on which response from the server was received the
last.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-10-23 17:46:34 +02:00
Nextcloud bot 6aa42e04db
[tx-robot] updated from transifex 2018-10-23 14:55:01 +00:00
Morris Jobke 8574915a2e
Merge pull request #11763 from nextcloud/stable12-11756-ignore-session-lifetime-if-it-can-not-be-converted-to-a-number
[stable12] Ignore "session_lifetime" if it can not be converted to a number
2018-10-11 14:44:30 +02:00
Daniel Calviño Sánchez a36c6c27c0 Ignore "session_lifetime" if it can not be converted to a number
When "session_lifetime" can not be converted to a number the interval
becomes a NaN due to dividing it by 2. This NaN was "dragged" over all
the other mathematical operations and caused the heartbeat to be post
again and again due to an infinite loop with no pauses in "setInterval".
Now, the interval is set to the default value instead if the
"session_lifetime" can not be converted to a number.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-10-11 12:23:52 +02:00
Morris Jobke 58a5e5d471
Merge pull request #11753 from nextcloud/release/12.0.12
12.0.12
2018-10-11 09:16:16 +02:00
Roeland Jago Douma b522e4928d
12.0.12
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-10-11 08:05:48 +02:00
Nextcloud bot 5114d13b79
[tx-robot] updated from transifex 2018-10-10 00:13:48 +00:00
Morris Jobke 759934ddf0
Merge pull request #11712 from nextcloud/version/noid/12.0.12RC2
12.0.12 RC 2
2018-10-09 15:42:35 +02:00
Morris Jobke b2036a6bbb
12.0.12 RC 2
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-10-09 13:35:34 +02:00
Morris Jobke 127f28a9c6
Merge pull request #11708 from nextcloud/backport/11705/update-crl-12
[stable12] Update CRL due to changed cert for linkshareex
2018-10-09 13:35:13 +02:00
Morris Jobke efa12a949c
Update CRL due to changed cert for linkshareex
See https://github.com/nextcloud/app-certificate-requests/pull/193

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-10-09 11:59:10 +02:00
Nextcloud bot 06056e44b5
[tx-robot] updated from transifex 2018-10-09 00:12:55 +00:00
Nextcloud bot f37ae0d4e2
[tx-robot] updated from transifex 2018-10-08 00:13:21 +00:00
Nextcloud bot a4ee772932
[tx-robot] updated from transifex 2018-10-07 00:12:46 +00:00
Nextcloud bot d831434428
[tx-robot] updated from transifex 2018-10-06 00:12:39 +00:00
Nextcloud bot b6db4a3cb9
[tx-robot] updated from transifex 2018-10-05 00:13:31 +00:00
Morris Jobke 7d7daed49e
Merge pull request #11590 from nextcloud/version/noid/12.0.12RC1
12.0.12 RC 1
2018-10-04 17:35:20 +02:00
Morris Jobke 9e28fb8a3d
12.0.12 RC 1
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-10-04 16:39:38 +02:00
Robin Appelman 616908ad53
use a dummy database name for the default postgres database name
For some reason the docker image does not setup the permissions correctly,
by using a different name the nextcloud installer will create the database instead
with the correct permissions

Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-10-04 16:39:38 +02:00
Morris Jobke 118e86f3ce
Merge pull request #11601 from nextcloud/migration/noid/whitelist-10.0.9-and-10.0.10
[stable12] Add future releases to be migrated from
2018-10-04 09:28:17 +02:00
Nextcloud bot 325006368c
[tx-robot] updated from transifex 2018-10-04 00:12:36 +00:00
Nextcloud bot c1cc61fde6
[tx-robot] updated from transifex 2018-10-03 16:59:22 +00:00
Morris Jobke 61fe457a8c
Add future releases to be migrated from
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-10-03 18:47:08 +02:00
Nextcloud bot b64c0c87b3
[tx-robot] updated from transifex 2018-10-02 00:13:17 +00:00
Morris Jobke e374041bba
Merge pull request #11495 from nextcloud/backport/11416/show-email-authtype-none-12
[stable12] Show auth type "None" in email settings
2018-10-01 14:23:07 +02:00
Morris Jobke 87fd7e7962
Show auth type "None" in email settings
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-10-01 10:52:05 +02:00
Nextcloud bot 19fd4a681b
[tx-robot] updated from transifex 2018-10-01 00:12:58 +00:00
Nextcloud bot b60e1532ae
[tx-robot] updated from transifex 2018-09-30 00:12:24 +00:00
Nextcloud bot 1e1b457e9d
[tx-robot] updated from transifex 2018-09-29 00:12:36 +00:00
Nextcloud bot 1022d640c3
[tx-robot] updated from transifex 2018-09-28 11:14:31 +00:00
Morris Jobke ca2f2c227d
Merge pull request #10882 from nextcloud/large-share-count-performance-12
[12] Improve performance when dealing with large numbers of shares
2018-09-27 17:09:36 +02:00
Nextcloud bot a6304378b0
[tx-robot] updated from transifex 2018-09-27 00:12:45 +00:00
Nextcloud bot e43d3783b8
[tx-robot] updated from transifex 2018-09-26 00:12:42 +00:00
Roeland Jago Douma 4a14e987b6
Merge pull request #11285 from nextcloud/stable12-11268-include-empty-directories-in-the-default-state-of-acceptance-tests
[stable12] Include empty directories in the default state of acceptance tests
2018-09-25 16:05:17 +02:00
Nextcloud bot 1cc7f61c8e
[tx-robot] updated from transifex 2018-09-25 00:12:33 +00:00
Nextcloud bot 57aaa1523b
[tx-robot] updated from transifex 2018-09-24 00:12:34 +00:00
Nextcloud bot 27614cef82
[tx-robot] updated from transifex 2018-09-23 00:12:50 +00:00
Nextcloud bot a877f0d15d
[tx-robot] updated from transifex 2018-09-22 00:12:28 +00:00
Nextcloud bot b4d0c3ebd9
[tx-robot] updated from transifex 2018-09-21 00:12:45 +00:00
Nextcloud bot e47f7480be
[tx-robot] updated from transifex 2018-09-20 00:13:17 +00:00
Nextcloud bot 30ae0ccf14
[tx-robot] updated from transifex 2018-09-19 12:38:19 +00:00
Daniel Calviño Sánchez f973926290 Include empty directories in the default state of acceptance tests
Before each scenario of the acceptance tests is run the Nextcloud server
is reset to a default state. To do this the full directory of the
Nextcloud server is commited to a local Git repository and then reset to
that commit when needed.

Unfortunately, Git does not support including empty directories in a
commit. Due to this, when the default state was restored, it could
happen that the file cache listed an empty directory that did not exist
because it was not properly restored (for example,
"data/appdata_*/css/icons"), and that in turn could lead to an error
when the directory was used.

Currently the only way to force Git to include an empty directory is to
add a dummy file to the directory (so it will no longer be empty,
but that should not be a problem in the affected directories, even if
the dummy file is not included in the file cache); although Git FAQ
suggests using a ".gitignore" file a ".keep" file was used instead, as
it conveys better its purpose.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-19 12:52:10 +02:00
Nextcloud bot 4cc8f86c76
[tx-robot] updated from transifex 2018-09-19 00:12:42 +00:00