]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
7 years agoUse PHP built-in web server instead of Apache in Drone
Daniel Calviño Sánchez [Tue, 18 Apr 2017 18:24:46 +0000 (20:24 +0200)]
Use PHP built-in web server instead of Apache in Drone

Instead of running an additional Drone service with the Nextcloud server
now the Nextcloud server is run in the same Drone step as the acceptance
tests themselves using the PHP built-in web server.

Thanks to this, the Nextcloud server control is no longer needed, as the
acceptance tests can now directly reset, start and stop the Nextcloud
server. Also, the "nextcloudci/php7.0:php7.0-7" image provides
everything needed to run and manage the Nextcloud server (including the
Git command used to restore the directory to a saved state), so the
custom image is no longer needed either.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoReplace downloaded Selenium server with Docker container
Daniel Calviño Sánchez [Sun, 16 Apr 2017 18:31:52 +0000 (20:31 +0200)]
Replace downloaded Selenium server with Docker container

Instead of downloading the Selenium server and requiring a specific
Firefox version to be installed in the system now the Selenium server is
run using one of the official Selenium Docker images, which provides
both the Selenium server and the appropriate version of Firefox.

Moreover, as it is run inside the Docker container, the web browser is
now run in headless mode; however, if needed, it can still be viewed
through VNC.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoMake possible to specify a subset of the acceptance tests to run
Daniel Calviño Sánchez [Sun, 16 Apr 2017 16:12:12 +0000 (18:12 +0200)]
Make possible to specify a subset of the acceptance tests to run

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd acceptance test steps to Drone
Daniel Calviño Sánchez [Sun, 16 Apr 2017 11:39:59 +0000 (13:39 +0200)]
Add acceptance test steps to Drone

Each acceptance test feature is run in its own Drone step. The container
of the step runs the acceptance tests themselves, but they require two
additional Drone services. One service provides the Selenium server that
performs the web browser actions specified by the tests, and the other
service provides the Nextcloud server that the tests will be run
against (due to security concerns the acceptance tests themselves can
not create Docker containers for the Nextcloud server as done when
running them in a local system, as if Drone containers had access to
Docker a malicious pull request could be used to take over the Drone
server).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd general multiplier for find timeouts
Daniel Calviño Sánchez [Sat, 15 Apr 2017 16:56:24 +0000 (18:56 +0200)]
Add general multiplier for find timeouts

Although the timeouts specified in the acceptance tests are enough in
most cases they may not be when running them in a slow system or
environment. For those situations a general multiplier for find
timeouts is added. It can be set in the "behat.yml" configuration file
to increase the timeout used in every find call (except those that used
a timeout of 0, as in those cases the element had to be already present
when finding it and whether the system is slow or not does not change
that).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd the timeout in NoSuchElementException messages
Daniel Calviño Sánchez [Sat, 15 Apr 2017 12:53:28 +0000 (14:53 +0200)]
Add the timeout in NoSuchElementException messages

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd NextcloudTestServerHelper for Nextcloud servers in Drone services
Daniel Calviño Sánchez [Sat, 15 Apr 2017 12:30:12 +0000 (14:30 +0200)]
Add NextcloudTestServerHelper for Nextcloud servers in Drone services

Due to security concerns, the public Nextcloud server repository is not
set as "trusted" in Drone (otherwise a malicious pull request could be
used to take over the server), so it is not possible to create Docker
containers from the containers started by Drone. Therefore, the
Nextcloud server must be started as a service by Drone itself.

The NextcloudTestServerDroneHelper is added to manage from the
acceptance tests a Nextcloud test server running in a Drone service; to
be able to control the remote Nextcloud server the Drone service must
provide the Nextcloud server control server.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoExtract waiting for the server to start to the Utils class
Daniel Calviño Sánchez [Sun, 16 Apr 2017 10:57:48 +0000 (12:57 +0200)]
Extract waiting for the server to start to the Utils class

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoExtract installation and configuration of the Nextcloud server
Daniel Calviño Sánchez [Sat, 15 Apr 2017 11:28:59 +0000 (13:28 +0200)]
Extract installation and configuration of the Nextcloud server

The installation and configuration of the Nextcloud server as expected
by the acceptance tests is extracted to its own script so it can be used
from any element that launches the acceptance tests.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoUse NextcloudTestServerHelper in NextcloudTestServerContext
Daniel Calviño Sánchez [Mon, 10 Apr 2017 18:56:47 +0000 (20:56 +0200)]
Use NextcloudTestServerHelper in NextcloudTestServerContext

Instead of depending on a Nextcloud test server created through Docker,
NextcloudTestServerContext now uses the NextcloudTestServerHelper
interface. This makes possible to provide other implementations of the
interface for those cases in which using a Docker container is not a
valid approach, like in the continuous integration system of the public
repository due to security concerns.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoExtract NextcloudTestServerHelper interface
Daniel Calviño Sánchez [Mon, 10 Apr 2017 17:03:40 +0000 (19:03 +0200)]
Extract NextcloudTestServerHelper interface

The NextcloudTestServerHelper interface provides the needed methods to
manage the Nextcloud server used in acceptance tests.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoReorganize method position inside class
Daniel Calviño Sánchez [Mon, 10 Apr 2017 17:10:03 +0000 (19:10 +0200)]
Reorganize method position inside class

For consistency with the rest of private methods in the class,
"isContainerRegistered" is moved below the only public method in which
it is used ("cleanUp").

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoHide methods not needed outside the class
Daniel Calviño Sánchez [Mon, 10 Apr 2017 17:08:30 +0000 (19:08 +0200)]
Hide methods not needed outside the class

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoRemove no longer needed methods
Daniel Calviño Sánchez [Mon, 10 Apr 2017 17:06:58 +0000 (19:06 +0200)]
Remove no longer needed methods

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoMove all Docker-related logic to NextcloudTestServerDockerHelper
Daniel Calviño Sánchez [Mon, 10 Apr 2017 16:59:31 +0000 (18:59 +0200)]
Move all Docker-related logic to NextcloudTestServerDockerHelper

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoRename methods to something less tied to its implementation
Daniel Calviño Sánchez [Mon, 10 Apr 2017 10:26:52 +0000 (12:26 +0200)]
Rename methods to something less tied to its implementation

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd acceptance tests related to access levels
Daniel Calviño Sánchez [Tue, 4 Apr 2017 15:24:30 +0000 (17:24 +0200)]
Add acceptance tests related to access levels

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd acceptance tests related to login
Daniel Calviño Sánchez [Tue, 4 Apr 2017 15:20:19 +0000 (17:20 +0200)]
Add acceptance tests related to login

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd script to set up and run the acceptance tests
Daniel Calviño Sánchez [Tue, 4 Apr 2017 14:31:23 +0000 (16:31 +0200)]
Add script to set up and run the acceptance tests

The acceptance tests require several elements to be set up in order to
be run. Besides those PHP packages that it depends on, like Behat or
Mink, it requires a running Selenium server and a Docker image with the
Nextcloud server to be tested available in the system. The "run.sh"
script takes care of preparing all the needed elements and then run the
acceptance tests; once finished, either normally or due to an error, it
also cleans up the temporal elements created/started by the script and
the acceptance tests.

The Docker image with the Nextcloud server to be tested is created from
the Nextcloud code in the greatparent directory each time "run.sh" is
executed; the code is copied inside the image, so once the acceptance
tests are started the code in the greatparent directory can be modified
without affecting them. As it is based on the current code at the time
of the launch that image is created and destroyed each time the
acceptance tests are run. However, the image that it is based on, which
is created using "docker/nextcloud-local-parent/Dockerfile", does not
change between runs, so it is kept built in the system to speed up the
launch of acceptance tests.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd wrappers to adapt the element finding system of Mink
Daniel Calviño Sánchez [Tue, 4 Apr 2017 14:25:22 +0000 (16:25 +0200)]
Add wrappers to adapt the element finding system of Mink

Mink elements (including the document element) provide a
"find(selector, locator)" method to look for child elements in their web
browser session. The Locator class is added to be able to store the
selector and locator in a single object; it also provides a fluent API
to ease the definition of Mink locators, specially those using the
"named" selector.

The method "find(locator, timeout, timeoutStep)" is added to Actor
objects; it is simply a wrapper over Mink's "find(selector, locator)"
method, although it throws an exception if the element can not be found
instead of returning null, and it also makes possible to automatically
retry to find the element for certain amount of time.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd actors for test scenarios
Daniel Calviño Sánchez [Tue, 4 Apr 2017 14:18:05 +0000 (16:18 +0200)]
Add actors for test scenarios

An actor plays the role of an end-user in the test scenario. As such,
each actor has its own web browser session used to perform the actions
specified by the steps of the scenario. Only one actor is active at a
time in a test scenario, and the current actor can be set through the "I
act as XXX" step; from then on, all the steps are performed by that
actor, until a different actor is set by calling "I act as XXX" again.
If no actor was explicitly set in a scenario then the default actor,
unsurprisingly named "default", is the one used.

The ActorContext class is added to provide automatic support for all
that. To use the ActorContext, besides adding it to the context list in
"behat.yml", a Mink session for each actor used in the features must be
specified in "behat.yml". Once done other Contexts just need to
implement the ActorAwareInterface (which can be done simply by using the
ActorAware trait) to have access to the current Actor object of the test
scenario; as the Actor object provides its own session other Contexts do
not need to extend from RawMinkContext. The ActorContext is itself a
RawMinkContext, so it automatically receives the base URL of the
Nextcloud test server run by NextcloudTestServerContext and propagates
that base URL to all the actors.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd helper context to isolate the test server with Docker containers
Daniel Calviño Sánchez [Tue, 4 Apr 2017 14:11:34 +0000 (16:11 +0200)]
Add helper context to isolate the test server with Docker containers

Scenarios in acceptance tests must be independent one of each other.
That is, the execution of one scenario can not affect the execution of
another scenario, nor it can depend on the result of the execution of a
different scenario. Each scenario must be isolated and self-contained.
As the acceptance tests are run against a Nextcloud server the server
must be in a known and predefined initial state each time a scenario
begins.

The NextcloudTestServerContext is introduced to automatically set up the
Nextcloud test server for each scenario.

This can be achieved using Docker containers. Before an scenario begins
a new Docker container with a Nextcloud server is run; the scenario is
then run against the server provided by the container. When the scenario
ends the container is destroyed. As long as the Nextcloud server uses
local data storage each scenario is thus isolated from the rest.

The NextcloudTestServerContext also notifies its sibling RawMinkContexts
about the base URL of the Nextcloud test server being used in each
scenario.

Although it uses the Behat context system, NextcloudTestServerContext is
not really part of the acceptance tests, but a provider of core features
needed by them; it can be seen as part of a Nextcloud acceptance test
library. Therefore, those classes are stored in the "core" directory
instead of the "bootstrap" directory. Besides its own (quite limited)
autoload configuration, Behat also uses the Composer autoloader, so the
"core" directory has to be added there for its classes to be found by
Behat.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoAdd basic files for the automated acceptance test system
Daniel Calviño Sánchez [Tue, 4 Apr 2017 14:11:20 +0000 (16:11 +0200)]
Add basic files for the automated acceptance test system

The acceptance tests verify that a Nextcloud server works as expected
from the point of view of an end-user. They are specified as user
stories using Behat paired with Mink, which provides web browser
automation.

Mink supports several browser emulators, but the system is set up to use
Selenium, as it is FOSS and the one that better reflects the use of a
web browser by an end-user (as, in fact, it controls real web browsers).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoMerge pull request #4371 from nextcloud/dont-allow-dot-usernames
Morris Jobke [Wed, 19 Apr 2017 01:04:32 +0000 (20:04 -0500)]
Merge pull request #4371 from nextcloud/dont-allow-dot-usernames

Better validation of allowed user names

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 19 Apr 2017 00:07:40 +0000 (00:07 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 18 Apr 2017 23:08:43 +0000 (23:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #4369 from nextcloud/fix-translations
Morris Jobke [Tue, 18 Apr 2017 23:01:50 +0000 (18:01 -0500)]
Merge pull request #4369 from nextcloud/fix-translations

Fix translations

7 years agoMerge pull request #3585 from nextcloud/popover-clickable-area
Morris Jobke [Tue, 18 Apr 2017 22:59:42 +0000 (17:59 -0500)]
Merge pull request #3585 from nextcloud/popover-clickable-area

expand clickable area of popover menu entries to full width

7 years agoMerge pull request #4379 from nextcloud/nicely-designed-confirmation-mail
Morris Jobke [Tue, 18 Apr 2017 22:17:40 +0000 (17:17 -0500)]
Merge pull request #4379 from nextcloud/nicely-designed-confirmation-mail

Beautify test email

7 years agoexpand clickable area of popover menu entries to full width 3585/head
Jan-Christoph Borchardt [Wed, 22 Feb 2017 16:29:45 +0000 (17:29 +0100)]
expand clickable area of popover menu entries to full width

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
7 years agoFix translations 4369/head
Joas Schilling [Tue, 18 Apr 2017 07:53:02 +0000 (09:53 +0200)]
Fix translations

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoMerge pull request #4380 from nextcloud/show-instance-name-in-from
Morris Jobke [Tue, 18 Apr 2017 21:22:56 +0000 (16:22 -0500)]
Merge pull request #4380 from nextcloud/show-instance-name-in-from

Add instance name to default sender

7 years agoBeautify test email 4379/head
Lukas Reschke [Tue, 18 Apr 2017 19:30:31 +0000 (21:30 +0200)]
Beautify test email

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoMerge pull request #4372 from nextcloud/smtp-password
Morris Jobke [Tue, 18 Apr 2017 21:13:31 +0000 (16:13 -0500)]
Merge pull request #4372 from nextcloud/smtp-password

Don't put the SMTP password into the HTML code

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 18 Apr 2017 20:47:45 +0000 (20:47 +0000)]
[tx-robot] updated from transifex

7 years agoFix unit tests 4372/head
Morris Jobke [Tue, 18 Apr 2017 20:08:38 +0000 (15:08 -0500)]
Fix unit tests

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoAdd instance name to default sender 4380/head
Lukas Reschke [Tue, 18 Apr 2017 19:44:37 +0000 (21:44 +0200)]
Add instance name to default sender

Otherwise your mail program shows "foo@mail.com" instead of "Nextcloud" or whatever your instance name is.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoMerge pull request #4376 from nextcloud/add-bruteforce-protection-to-change-self...
Christoph Wurst [Tue, 18 Apr 2017 19:43:11 +0000 (21:43 +0200)]
Merge pull request #4376 from nextcloud/add-bruteforce-protection-to-change-self-password

Add bruteforce protection to changePersonalPassword

7 years agoAdd bruteforce protection to changePersonalPassword 4376/head
Lukas Reschke [Tue, 18 Apr 2017 15:55:51 +0000 (17:55 +0200)]
Add bruteforce protection to changePersonalPassword

While the risk is actually quite low because one would already have the user session and could potentially do other havoc it makes sense to throttle here in case of invalid previous password attempts.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoFix some more stuff
Joas Schilling [Tue, 18 Apr 2017 14:11:29 +0000 (16:11 +0200)]
Fix some more stuff

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix tests
Joas Schilling [Tue, 18 Apr 2017 14:08:29 +0000 (16:08 +0200)]
Fix tests

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoDon't put the SMTP password into the HTML code
Joas Schilling [Tue, 18 Apr 2017 13:44:20 +0000 (15:44 +0200)]
Don't put the SMTP password into the HTML code

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoBetter validation of allowed user names 4371/head
Joas Schilling [Wed, 12 Apr 2017 08:29:28 +0000 (10:29 +0200)]
Better validation of allowed user names

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 18 Apr 2017 00:07:25 +0000 (00:07 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 17 Apr 2017 00:07:33 +0000 (00:07 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 16 Apr 2017 00:07:23 +0000 (00:07 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #2834 from nextcloud/accesListToShareManager
Morris Jobke [Sat, 15 Apr 2017 18:06:24 +0000 (13:06 -0500)]
Merge pull request #2834 from nextcloud/accesListToShareManager

Access list to share manager

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 15 Apr 2017 00:07:36 +0000 (00:07 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #4330 from nextcloud/activities-for-password-mail-change
Roeland Jago Douma [Fri, 14 Apr 2017 06:16:43 +0000 (08:16 +0200)]
Merge pull request #4330 from nextcloud/activities-for-password-mail-change

Add activities when email or password is changed

7 years agoMerge pull request #4346 from nextcloud/properly-do-bruteforce-protection-via-annotation
Roeland Jago Douma [Fri, 14 Apr 2017 06:15:55 +0000 (08:15 +0200)]
Merge pull request #4346 from nextcloud/properly-do-bruteforce-protection-via-annotation

Make BruteForceProtection annotation more clever

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 14 Apr 2017 00:07:36 +0000 (00:07 +0000)]
[tx-robot] updated from transifex

7 years agoFix autoloader 4330/head
Morris Jobke [Thu, 13 Apr 2017 21:28:07 +0000 (16:28 -0500)]
Fix autoloader

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoMake BruteForceProtection annotation more clever 4346/head
Lukas Reschke [Thu, 13 Apr 2017 20:50:44 +0000 (22:50 +0200)]
Make BruteForceProtection annotation more clever

This makes the new `@BruteForceProtection` annotation more clever and moves the relevant code into it's own middleware.

Basically you can now set `@BruteForceProtection(action=$key)` as annotation and that will make the controller bruteforce protected. However, the difference to before is that you need to call `$responmse->throttle()` to increase the counter. Before the counter was increased every time which leads to all kind of unexpected problems.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoMerge pull request #4326 from nextcloud/downstream-27562
Morris Jobke [Thu, 13 Apr 2017 18:11:47 +0000 (13:11 -0500)]
Merge pull request #4326 from nextcloud/downstream-27562

Reorder the entries of the log for easier reading

7 years agoMerge pull request #4308 from nextcloud/lost-password-email
Lukas Reschke [Thu, 13 Apr 2017 18:02:15 +0000 (20:02 +0200)]
Merge pull request #4308 from nextcloud/lost-password-email

Update email template for lost password email

7 years agoMerge pull request #2424 from nextcloud/fix-login-controller-test-consolidate-login
Morris Jobke [Thu, 13 Apr 2017 17:16:38 +0000 (12:16 -0500)]
Merge pull request #2424 from nextcloud/fix-login-controller-test-consolidate-login

Fix login controller test and consolidate login

7 years agoImprove PHPDoc 2424/head
Morris Jobke [Thu, 13 Apr 2017 17:16:12 +0000 (12:16 -0500)]
Improve PHPDoc

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoMerge pull request #4337 from nextcloud/fix-adblock-share-icon
Morris Jobke [Thu, 13 Apr 2017 17:10:37 +0000 (12:10 -0500)]
Merge pull request #4337 from nextcloud/fix-adblock-share-icon

Fix AdBlock blocking share icon, ref #866

7 years agoUse constants 4326/head
Joas Schilling [Wed, 12 Apr 2017 11:04:28 +0000 (13:04 +0200)]
Use constants

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoMerge pull request #4341 from nextcloud/local-link-explanation
Morris Jobke [Thu, 13 Apr 2017 17:01:57 +0000 (12:01 -0500)]
Merge pull request #4341 from nextcloud/local-link-explanation

Explain local link

7 years agoExplain local link 4341/head
Jos Poortvliet [Thu, 13 Apr 2017 09:30:35 +0000 (11:30 +0200)]
Explain local link

The local link is a clever thing and the clients should support this imho but it might not be clear to all users. For one, the term 'local link' is a bit odd. Local with respect to what? It links directly to the file or folder, so direct link seems to make more sense to me. And we should explain the difference with a public link. So this PR:
* renames local link to direct link
* adds a short explanation, noting it only works for users who have access to this file/folder.

As other links are called public link you could also consider calling this 'private link', I suppose. But the links we sent by mail to ppl could also be called 'private link' (they are for one user, who git it by email) so I think it might be confusing. What do @nextcloud/designers think?

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoMerge pull request #4336 from nextcloud/add-ratelimiting
Lukas Reschke [Thu, 13 Apr 2017 16:53:56 +0000 (18:53 +0200)]
Merge pull request #4336 from nextcloud/add-ratelimiting

Add support for ratelimiting via annotations

7 years agoMerge pull request #4342 from nextcloud/update-certificate-bundle
Morris Jobke [Thu, 13 Apr 2017 15:40:12 +0000 (10:40 -0500)]
Merge pull request #4342 from nextcloud/update-certificate-bundle

Update CA bundle

7 years agoMerge pull request #4344 from nextcloud/dont-load-handlebars
Roeland Jago Douma [Thu, 13 Apr 2017 14:08:29 +0000 (16:08 +0200)]
Merge pull request #4344 from nextcloud/dont-load-handlebars

Don't load handlebars in template

7 years agoMail shares trigger the public key 2834/head
Roeland Jago Douma [Thu, 13 Apr 2017 13:14:30 +0000 (15:14 +0200)]
Mail shares trigger the public key

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoUpdate autoloader
Roeland Jago Douma [Thu, 13 Apr 2017 12:56:05 +0000 (14:56 +0200)]
Update autoloader

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoFix server container registration
Roeland Jago Douma [Thu, 13 Apr 2017 12:52:09 +0000 (14:52 +0200)]
Fix server container registration

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoDon't load handlebars in template 4344/head
Lukas Reschke [Thu, 13 Apr 2017 12:01:21 +0000 (14:01 +0200)]
Don't load handlebars in template

It's already loaded in core.json

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoNot needed in the DIContainer anymore
Roeland Jago Douma [Thu, 13 Apr 2017 11:37:39 +0000 (13:37 +0200)]
Not needed in the DIContainer anymore

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoDo not set full path if not currentAccess
Roeland Jago Douma [Thu, 13 Apr 2017 10:58:29 +0000 (12:58 +0200)]
Do not set full path if not currentAccess

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoAdd samples to the docs
Joas Schilling [Tue, 11 Apr 2017 12:45:18 +0000 (14:45 +0200)]
Add samples to the docs

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAdd more tests for the share helper
Joas Schilling [Tue, 11 Apr 2017 12:45:02 +0000 (14:45 +0200)]
Add more tests for the share helper

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoCatch exceptions and use as many results as possible
Joas Schilling [Tue, 11 Apr 2017 12:16:17 +0000 (14:16 +0200)]
Catch exceptions and use as many results as possible

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoActivate the test
Joas Schilling [Tue, 11 Apr 2017 12:08:35 +0000 (14:08 +0200)]
Activate the test

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAdjust docs and make !$currentAccess simpler
Joas Schilling [Tue, 11 Apr 2017 10:40:36 +0000 (12:40 +0200)]
Adjust docs and make !$currentAccess simpler

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAdd unit tests for sharebymail provider
Joas Schilling [Tue, 11 Apr 2017 10:16:10 +0000 (12:16 +0200)]
Add unit tests for sharebymail provider

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix share manager test
Joas Schilling [Mon, 10 Apr 2017 14:53:58 +0000 (16:53 +0200)]
Fix share manager test

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix default share provider
Joas Schilling [Mon, 10 Apr 2017 14:22:12 +0000 (16:22 +0200)]
Fix default share provider

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix tests for ShareHelper
Joas Schilling [Mon, 10 Apr 2017 14:10:34 +0000 (16:10 +0200)]
Fix tests for ShareHelper

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix federated file sharing
Joas Schilling [Mon, 10 Apr 2017 13:40:30 +0000 (15:40 +0200)]
Fix federated file sharing

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix returned paths for remote shares
Joas Schilling [Tue, 28 Mar 2017 15:06:26 +0000 (17:06 +0200)]
Fix returned paths for remote shares

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoReturn the token as well
Joas Schilling [Tue, 28 Mar 2017 08:51:44 +0000 (10:51 +0200)]
Return the token as well

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAlso return the token
Joas Schilling [Mon, 27 Mar 2017 21:39:20 +0000 (23:39 +0200)]
Also return the token

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoReturn the paths for the users without setting them all up
Joas Schilling [Mon, 27 Mar 2017 14:06:31 +0000 (16:06 +0200)]
Return the paths for the users without setting them all up

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix comments
Roeland Jago Douma [Mon, 20 Mar 2017 13:22:06 +0000 (14:22 +0100)]
Fix comments

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoAdd shareHelper test
Roeland Jago Douma [Wed, 4 Jan 2017 08:13:08 +0000 (09:13 +0100)]
Add shareHelper test

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoAdd mail element to access list
Roeland Jago Douma [Wed, 4 Jan 2017 07:59:43 +0000 (08:59 +0100)]
Add mail element to access list

* Each provider just returns what they have so adding an element won't
require changing everything
* Added tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoOffload acceslist creation to providers
Roeland Jago Douma [Thu, 22 Dec 2016 20:44:21 +0000 (21:44 +0100)]
Offload acceslist creation to providers

* This allows for effective queries.
* Introduce currentAccess parameter to speciy if the users needs to have
currently acces (deleted incomming group share). (For notifications)

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoAdded ShareHelper
Roeland Jago Douma [Thu, 27 Oct 2016 13:32:23 +0000 (15:32 +0200)]
Added ShareHelper

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoFix tests
Roeland Jago Douma [Thu, 27 Oct 2016 13:16:53 +0000 (15:16 +0200)]
Fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoPort Encryption/file to new getAccessList
Roeland Jago Douma [Wed, 19 Oct 2016 19:27:34 +0000 (21:27 +0200)]
Port Encryption/file to new getAccessList

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoAdded to public interface
Roeland Jago Douma [Wed, 19 Oct 2016 19:27:07 +0000 (21:27 +0200)]
Added to public interface

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoAdd owner to access list
Roeland Jago Douma [Fri, 9 Sep 2016 10:57:01 +0000 (12:57 +0200)]
Add owner to access list

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoAdd getAccessList to ShareManager
Roeland Jago Douma [Fri, 9 Sep 2016 10:53:17 +0000 (12:53 +0200)]
Add getAccessList to ShareManager

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoNo need for those emails anymore
Joas Schilling [Thu, 13 Apr 2017 10:35:08 +0000 (12:35 +0200)]
No need for those emails anymore

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoSend an email to the old address on email change
Joas Schilling [Thu, 13 Apr 2017 10:34:34 +0000 (12:34 +0200)]
Send an email to the old address on email change

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAllow to read the old email on the hook as well
Joas Schilling [Thu, 13 Apr 2017 10:34:02 +0000 (12:34 +0200)]
Allow to read the old email on the hook as well

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoMerge pull request #4313 from nextcloud/ldap-name-change
Lukas Reschke [Thu, 13 Apr 2017 10:28:24 +0000 (12:28 +0200)]
Merge pull request #4313 from nextcloud/ldap-name-change

Change LDAP method names

7 years agoMove logic into new class with DI
Joas Schilling [Thu, 13 Apr 2017 09:58:19 +0000 (11:58 +0200)]
Move logic into new class with DI

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoRemove expired attempts 4336/head
Lukas Reschke [Wed, 12 Apr 2017 21:00:02 +0000 (23:00 +0200)]
Remove expired attempts

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>