Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | chore: Add SPDX header | Andy Scherzinger | 2024-05-24 | 1 | -24/+4 |
| | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de> | ||||
* | fix: Apply new coding standard to all files | Côme Chilliet | 2024-04-02 | 1 | -2/+2 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | also improe cache ci for shared cache | Robin Appelman | 2024-02-09 | 1 | -6/+8 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | optimize cache jail creation | Robin Appelman | 2023-10-19 | 1 | -2/+0 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_private | Robin Appelman | 2023-06-01 | 1 | -1/+1 |
|\ | | | | | Refactors "strpos" calls in lib/private to improve code readability. | ||||
| * | Refactors "strpos" calls in lib/private to improve code readability. | Faraz Samapoor | 2023-05-15 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com> | ||||
* | | Fix return types in phpdoc | Côme Chilliet | 2023-05-15 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | fix type hints | Robin Appelman | 2023-04-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | escape path prefix when doing cache jail search | Robin Appelman | 2022-11-02 | 1 | -1/+1 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Fix various other small psalm issues | Carl Schwan | 2022-10-17 | 1 | -1/+1 |
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> | ||||
* | directly build the search filter for shared storage instead of setting up ↵ | Robin Appelman | 2022-08-17 | 1 | -2/+6 |
| | | | | | | the source cache Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | optimize search post-processing for jail wrapper | Robin Appelman | 2022-08-16 | 1 | -5/+7 |
| | | | | | | don't both asking the wrapped cache if we know it's not in our jail anyway Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Document all getIncomplete implementations as returning string|false | Côme Chilliet | 2022-08-02 | 1 | -1/+1 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | properly handle cases where cache wrappers block access | Robin Appelman | 2021-11-01 | 1 | -1/+1 |
| | | | | | | `CacheWrapper::formatCacheEntry` can return false for files that should be filtered out Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Merge pull request #28476 from nextcloud/search-jail-insensitive | Vincent Petry | 2021-08-24 | 1 | -1/+1 |
|\ | | | | | use case insensitive like when limiting search to jail | ||||
| * | use case insensitive like when limiting search to jail | Robin Appelman | 2021-08-17 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | use getGetUnjailedRoot to determine if jailed search needs the path filter | Robin Appelman | 2021-08-23 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | dont apply jail search filter is on the root | Robin Appelman | 2021-07-26 | 1 | -11/+15 |
| | | | | | | the extra '/' breaks things and the filter wouldn't do anything anyway except making the databases job harder Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | use searchoperation for storage filter instead of db expression | Robin Appelman | 2021-06-14 | 1 | -10/+16 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | rework search api to allow searching on multiple caches at once | Robin Appelman | 2021-06-14 | 1 | -103/+24 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Update php licenses | John Molakvoæ (skjnldsv) | 2021-06-04 | 1 | -1/+0 |
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | ||||
* | properly use limit and offset for search in Jail wrapper | Robin Appelman | 2021-05-21 | 1 | -7/+2 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | adjust tests | Robin Appelman | 2021-01-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | fix search in nested jails | Robin Appelman | 2021-01-26 | 1 | -19/+35 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | fix cachjail searching for root | Robin Appelman | 2021-01-26 | 1 | -3/+14 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | do cachejail search filtering in sql | Robin Appelman | 2021-01-26 | 1 | -3/+57 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Update the license headers for Nextcloud 20 | Christoph Wurst | 2020-08-24 | 1 | -1/+0 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Use matching parameter names form interfaces and implementations | Morris Jobke | 2020-08-19 | 1 | -2/+2 |
| | | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de> | ||||
* | Format control structures, classes, methods and function | Christoph Wurst | 2020-04-10 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Use elseif instead of else if | Christoph Wurst | 2020-04-10 | 1 | -1/+1 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Update the license headers for Nextcloud 19 | Christoph Wurst | 2020-03-31 | 1 | -0/+1 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Use the short array syntax, everywhere | Christoph Wurst | 2020-03-26 | 1 | -3/+3 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Use lowercase true, false and null constants | Christoph Wurst | 2020-03-25 | 1 | -1/+1 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Update license headers | Christoph Wurst | 2019-12-05 | 1 | -2/+2 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | Remove deprecated searchByTag | Roeland Jago Douma | 2019-07-26 | 1 | -12/+0 |
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> | ||||
* | Avoid calculating folder size for parent that needs scan. | Ari Selseng | 2019-03-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Ari Selseng <ari@selseng.net> | ||||
* | Properly search the root of a shared external storage | Roeland Jago Douma | 2018-11-05 | 1 | -1/+1 |
| | | | | | | | | | | | Fixes #1020 When an external storage is shared with you in full the root is '' (empty). This adds an extra check for an empty jail basically. Because if the jail is on the empty string. It matches all paths. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> | ||||
* | CacheJail should apply limit and offset after searching | Roeland Jago Douma | 2018-02-07 | 1 | -2/+9 |
| | | | | | | Else the results might not be correct. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> | ||||
* | Do not try to get the jailed path if we can't find the id | Roeland Jago Douma | 2018-02-03 | 1 | -0/+4 |
| | | | | | | | | | Fixes #8047 If we can't find the file by id there we should just return null instead of trying to get the jailed path of null. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> | ||||
* | delay calculating the shared cache root until it's used | Robin Appelman | 2017-12-04 | 1 | -9/+14 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Update license headers | Morris Jobke | 2017-11-06 | 1 | -0/+1 |
| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de> | ||||
* | fix moving folders out of a cache jail | Robin Appelman | 2017-06-15 | 1 | -1/+11 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Implement webdav SEARCH | Robin Appelman | 2017-03-01 | 1 | -0/+6 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Make sure we use the correct storage id when scanning a jailed storage | Robin Appelman | 2017-01-25 | 1 | -5/+1 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | make source cache injectable in cache wrappers | Robin Appelman | 2016-11-17 | 1 | -18/+18 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | reuse the known rootinfo in the shared cache when possible | Robin Appelman | 2016-11-17 | 1 | -1/+2 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Adding test case for getPathById including a jailed cache where root is just ↵ | Thomas Müller | 2016-08-05 | 1 | -1/+3 |
| | | | | empty | ||||
* | getJailedPath expects $path to have a trailing / - fixes #25464 | Thomas Müller | 2016-08-05 | 1 | -0/+1 |
| | |||||
* | Update with robin | Joas Schilling | 2016-07-21 | 1 | -1/+1 |
| | |||||
* | Fix others | Joas Schilling | 2016-07-21 | 1 | -2/+3 |
| |