summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
Commit message (Collapse)AuthorAgeFilesLines
* [Minor] Try to add workaround for replxx usage with no historyVsevolod Stakhov2022-06-131-0/+2
| | | | Issue: #4133
* Spelling (#4086)Josh Soref2022-02-221-5/+5
| | | [Rework] Massive spelling fix from @jsoref
* [Minor] Allow lua_text in addition to stringsVsevolod Stakhov2021-12-141-7/+13
|
* [Minor] Save int64 as lua_Integer not lua_NumberVsevolod Stakhov2021-10-201-1/+1
|
* [Minor] Add helpers to work with boxed int64 numbersVsevolod Stakhov2021-10-201-1/+73
|
* [Minor] Check returned valueVsevolod Stakhov2021-10-161-1/+7
|
* [Minor] Lua_compression: Add support of the compression level for gzipVsevolod Stakhov2021-08-261-1/+1
|
* [Minor] Fix the mess with caseless comparison functionsVsevolod Stakhov2021-08-061-51/+6
|
* [Minor] Lua: Add rspamd_util.strequal_caseless_utf8 routineVsevolod Stakhov2021-08-021-0/+41
|
* [Rework] Move compression routines outside of rspamd_util libraryVsevolod Stakhov2021-04-261-315/+6
|
* [Minor] Lua_util: Allow to use text in several rspamd_util methodsVsevolod Stakhov2021-04-021-32/+36
|
* [Rework] Move parsers to a separate lua libraryVsevolod Stakhov2020-11-111-283/+10
|
* [Minor] Add erroring to smtp parse dateVsevolod Stakhov2020-10-061-8/+18
|
* [Minor] Lua_util: Add parse_smtp_date utilityVsevolod Stakhov2020-10-051-0/+40
|
* [Project] Implement BTC polymod in C as it requires 64 bit opsVsevolod Stakhov2020-07-281-31/+71
|
* [Minor] Return nil if base32 decode failsVsevolod Stakhov2020-07-021-5/+14
|
* [Minor] Allow to specify compression level for zstdVsevolod Stakhov2020-06-291-2/+7
|
* [Minor] Add a simple way to limit number of email addressesVsevolod Stakhov2020-05-191-1/+1
|
* [Feature] extend lua apiJan Smutny2020-04-201-0/+1
| | | | add new value accessible by key 'raw' to the table returned by util:parse_mail_address and task:get_from
* src/lua/lua_util.c: remove unused functionJan Smutny2020-04-171-45/+0
|
* [Rework] add alias util:parse_addr for util:parse_mail_addressJan Smutny2020-04-171-0/+46
|
* [Rework] get rid of util:parse_addr duplicating the util:parse_mail_address, ↵Jan Smutny2020-04-171-69/+0
| | | | replace where used
* [Minor] complete comment part of util:parse_addr and util:parse_mail_address ↵Jan Smutny2020-04-171-5/+24
| | | | method
* [Minor] Correct deflate header detectionVsevolod Stakhov2020-04-131-1/+1
|
* [Minor] Improve log message for inflate/deflateVsevolod Stakhov2020-04-131-2/+13
|
* [Feature] Allow multiple base32 encodings in Lua APIVsevolod Stakhov2020-04-101-5/+25
|
* [Feature] Add multiple base32 alphabets for decodingVsevolod Stakhov2020-04-091-1/+1
|
* [Feature] Support multiple base32 alphabetsVsevolod Stakhov2020-04-091-1/+1
|
* [Minor] Fix strict config checksVsevolod Stakhov2020-02-211-1/+1
|
* [Minor] Add workaround for old libicu (bug in libicu)Vsevolod Stakhov2020-01-081-2/+5
|
* [Project] Improve inflationVsevolod Stakhov2020-01-041-3/+9
|
* [Project] Add inflate utilityVsevolod Stakhov2020-01-031-5/+26
|
* [Project] Lua_util: Allow to set size limit for gzip decompressVsevolod Stakhov2020-01-031-3/+20
|
* [Project] Allow to enable mempool debugging from the protocolVsevolod Stakhov2019-12-231-1/+1
|
* [Project] Support mempool flagsVsevolod Stakhov2019-12-231-3/+5
|
* [Project] Use own utf8 validation instead of glibVsevolod Stakhov2019-11-151-2/+26
|
* [Minor] Add safety check when using icu ubrk iteratorsVsevolod Stakhov2019-10-241-1/+1
|
* [Minor] Do not use floating point when extending buffersVsevolod Stakhov2019-10-171-1/+1
|
* [Fix] Sort keys when getting data from Lua when filling rulesVsevolod Stakhov2019-10-041-2/+1
|
* [Minor] Fix various static leaksVsevolod Stakhov2019-09-271-1/+0
|
* [Minor] Lua_util: Add lower_utf8 utilityVsevolod Stakhov2019-09-131-7/+48
| | | | Issue: #3036
* [Minor] Support unpack for textVsevolod Stakhov2019-09-071-2/+19
|
* [Rework] Start moving to replxxVsevolod Stakhov2019-09-031-4/+32
|
* [Minor] Lua_util: Add qp decode bindingVsevolod Stakhov2019-07-221-0/+56
|
* [Rework] Stop support of signed HTTP maps to simplify codeVsevolod Stakhov2019-07-161-2/+0
|
* [Minor] Use own base64 decode procedureVsevolod Stakhov2019-07-161-26/+9
|
* [Minor] Refrain from gettimeofday direct usageVsevolod Stakhov2019-07-011-17/+2
|
* [Project] Another workaround for signals...Vsevolod Stakhov2019-06-221-2/+2
|
* [Project] Adopt Lua APIVsevolod Stakhov2019-06-221-6/+6
|
* [Project] First refactoring step libevent->libevVsevolod Stakhov2019-06-221-4/+4
|
rt/48359/stable27 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/filesdrop_features/filesdrop.feature
blob: 2c9156dea026855768ef879fd8026e2f9b822f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
Feature: FilesDrop

  Scenario: Put file via files drop
    Given user "user0" exists
    And As an "user0"
    And user "user0" created a folder "/drop"
    And as "user0" creating a share with
      | path | drop |
      | shareType | 3 |
      | publicUpload | true |
    And Updating last share with
      | permissions | 4 |
    When Dropping file "/a.txt" with "abc"
    And Downloading file "/drop/a.txt"
    Then Downloaded content should be "abc"

  Scenario: Put file same file multiple times via files drop
    Given user "user0" exists
    And As an "user0"
    And user "user0" created a folder "/drop"
    And as "user0" creating a share with
      | path | drop |
      | shareType | 3 |
      | publicUpload | true |
    And Updating last share with
      | permissions | 4 |
    When Dropping file "/a.txt" with "abc"
    And Dropping file "/a.txt" with "def"
    And Downloading file "/drop/a.txt"
    Then Downloaded content should be "abc"
    And Downloading file "/drop/a (2).txt"
    Then Downloaded content should be "def"

  Scenario: Files drop ignores directory
    Given user "user0" exists
    And As an "user0"
    And user "user0" created a folder "/drop"
    And as "user0" creating a share with
      | path | drop |
      | shareType | 3 |
      | publicUpload | true |
    And Updating last share with
      | permissions | 4 |
    When Dropping file "/folder/a.txt" with "abc"
    And Downloading file "/drop/a.txt"
    Then Downloaded content should be "abc"

  Scenario: Files drop forbis MKCOL
    Given user "user0" exists
    And As an "user0"
    And user "user0" created a folder "/drop"
    And as "user0" creating a share with
      | path | drop |
      | shareType | 3 |
      | publicUpload | true |
    And Updating last share with
      | permissions | 4 |
    When Creating folder "folder" in drop
    Then the HTTP status code should be "405"

  Scenario: Files request drop
    Given user "user0" exists
    And As an "user0"
    And user "user0" created a folder "/drop"
    And as "user0" creating a share with
      | path | drop |
      | shareType | 4 |
      | permissions | 4 |
      | attributes | [{"scope":"fileRequest","key":"enabled","value":true}] |
      | shareWith |  |
    When Dropping file "/folder/a.txt" with "abc" as "Alice"
    And Downloading file "/drop/Alice/a.txt"
    Then Downloaded content should be "abc"

  Scenario: Put file same file multiple times via files drop
    Given user "user0" exists
    And As an "user0"
    And user "user0" created a folder "/drop"
    And as "user0" creating a share with
      | path | drop |
      | shareType | 4 |
      | permissions | 4 |
      | attributes | [{"scope":"fileRequest","key":"enabled","value":true}] |
      | shareWith |  |
    When Dropping file "/folder/a.txt" with "abc" as "Mallory"
    And Dropping file "/folder/a.txt" with "def" as "Mallory"
    And Downloading file "/drop/Mallory/a.txt"
    Then Downloaded content should be "abc"
    And Downloading file "/drop/Mallory/a (2).txt"
    Then Downloaded content should be "def"