Skip to content

Conversation

@skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Nov 7, 2020

Fix #23579

@skjnldsv
Copy link
Member Author

skjnldsv commented Nov 7, 2020

/backport to stable20

@skjnldsv
Copy link
Member Author

skjnldsv commented Nov 7, 2020

/backport to stable19

@skjnldsv skjnldsv force-pushed the fix/quota-storage-getsize branch from 576bdc5 to 6a453ac Compare November 9, 2020 07:49
@skjnldsv skjnldsv requested a review from rullzer November 9, 2020 07:50
@faily-bot
Copy link

faily-bot bot commented Nov 9, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 35236: failure

integration-comments-search

  • build/integration/features/comments-search.feature:3
  • build/integration/features/comments-search.feature:19
  • build/integration/features/comments-search.feature:41
  • build/integration/features/comments-search.feature:63
  • build/integration/features/comments-search.feature:85
  • build/integration/features/comments-search.feature:111
  • build/integration/features/comments-search.feature:127
  • build/integration/features/comments-search.feature:143
  • build/integration/features/comments-search.feature:159
  • build/integration/features/comments-search.feature:176
  • build/integration/features/comments-search.feature:253
Show full log
  Scenario: Search my own comment on a file belonging to myself                                                                 # /drone/src/build/integration/features/comments-search.feature:3
[Mon Nov  9 07:57:52 2020] 127.0.0.1:47480 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:57:52 2020] 127.0.0.1:47508 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:57:53 2020] 127.0.0.1:47540 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:57:53 2020] 127.0.0.1:47564 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                   # FeatureContext::assureUserExists()
[Mon Nov  9 07:57:53 2020] 127.0.0.1:47578 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:57:53 2020] 127.0.0.1:47596 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:57:54 2020] 127.0.0.1:47612 [201]: /remote.php/dav/comments/files/25/
    And "user0" posts a comment with content "My first comment" on the file named "/myFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:57:54 2020] 127.0.0.1:47630 [200]: /login
[Mon Nov  9 07:57:54 2020] 127.0.0.1:47638 [303]: /login
[Mon Nov  9 07:57:54 2020] 127.0.0.1:47650 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                        # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:57:54 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["first"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["first"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:57:54 2020] 127.0.0.1:47688 [500]: /index.php/core/search?query=first&inApps%5B%5D=files
    And searching for "first" in app "files"                                                                                    # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=first&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                             # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                              # FeatureContext::searchResultXContains()
      | type       | comment             |
      | comment    | My first comment    |
      | authorId   | user0               |
      | authorName | user0               |
      | path       | myFileToComment.txt |
      | fileName   | myFileToComment.txt |
      | name       | My first comment    |
[Mon Nov  9 07:57:55 2020] 127.0.0.1:47696 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:57:55 2020] 127.0.0.1:47722 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:57:55 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:57:55 2020] 127.0.0.1:47736 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:57:55 2020] 127.0.0.1:47738 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:57:55 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:57:55 2020] 127.0.0.1:47754 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:57:56 2020] 127.0.0.1:47756 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:57:56 2020] 127.0.0.1:47770 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search my own comment on a file shared by someone with me                                                               # /drone/src/build/integration/features/comments-search.feature:19
[Mon Nov  9 07:57:56 2020] 127.0.0.1:47790 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:57:57 2020] 127.0.0.1:47804 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:57:57 2020] 127.0.0.1:47836 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:57:57 2020] 127.0.0.1:47850 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                       # FeatureContext::assureUserExists()
[Mon Nov  9 07:57:57 2020] 127.0.0.1:47866 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:57:58 2020] 127.0.0.1:47880 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:57:58 2020] 127.0.0.1:47920 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:57:58 2020] 127.0.0.1:47948 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                         # FeatureContext::assureUserExists()
[Mon Nov  9 07:57:59 2020] 127.0.0.1:47980 [201]: /remote.php/webdav/sharedFileToComment.txt
    And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt"                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:57:59 2020] 127.0.0.1:47998 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares
    And as "user1" creating a share with                                                                                            # FeatureContext::asCreatingAShareWith()
      | path      | sharedFileToComment.txt |
      | shareWith | user0                   |
      | shareType | 0                       |
[Mon Nov  9 07:57:59 2020] 127.0.0.1:48020 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/1
    And user "user0" accepts last share                                                                                             # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 07:57:59 2020] 127.0.0.1:48030 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 07:58:00 2020] 127.0.0.1:48052 [201]: /remote.php/dav/comments/files/90/
    And "user0" posts a comment with content "My first comment" on the file named "/sharedFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:00 2020] 127.0.0.1:48064 [200]: /login
[Mon Nov  9 07:58:00 2020] 127.0.0.1:48070 [303]: /login
[Mon Nov  9 07:58:00 2020] 127.0.0.1:48088 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                            # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:00 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["first"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["first"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:00 2020] 127.0.0.1:48090 [500]: /index.php/core/search?query=first&inApps%5B%5D=files
    And searching for "first" in app "files"                                                                                        # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=first&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                                 # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                  # FeatureContext::searchResultXContains()
      | type       | comment                 |
      | comment    | My first comment        |
      | authorId   | user0                   |
      | authorName | user0                   |
      | path       | sharedFileToComment.txt |
      | fileName   | sharedFileToComment.txt |
      | name       | My first comment        |
[Mon Nov  9 07:58:00 2020] 127.0.0.1:48098 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:01 2020] 127.0.0.1:48124 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:01 2020] 127.0.0.1:48136 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:58:01 2020] 127.0.0.1:48178 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:58:01 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:01 2020] 127.0.0.1:48190 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:02 2020] 127.0.0.1:48200 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:02 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:02 2020] 127.0.0.1:48214 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:02 2020] 127.0.0.1:48216 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:02 2020] 127.0.0.1:48234 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search other user's comment on a file shared by me                                                                             # /drone/src/build/integration/features/comments-search.feature:41
[Mon Nov  9 07:58:02 2020] 127.0.0.1:48254 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:03 2020] 127.0.0.1:48290 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:03 2020] 127.0.0.1:48330 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:03 2020] 127.0.0.1:48356 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                              # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:03 2020] 127.0.0.1:48378 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:58:04 2020] 127.0.0.1:48402 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:04 2020] 127.0.0.1:48442 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:58:05 2020] 127.0.0.1:48458 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                                # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:05 2020] 127.0.0.1:48476 [201]: /remote.php/webdav/mySharedFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt"                                                      # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:05 2020] 127.0.0.1:48494 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares
    And as "user0" creating a share with                                                                                                   # FeatureContext::asCreatingAShareWith()
      | path      | mySharedFileToComment.txt |
      | shareWith | user1                     |
      | shareType | 0                         |
[Mon Nov  9 07:58:05 2020] 127.0.0.1:48514 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/2
    And user "user1" accepts last share                                                                                                    # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 07:58:06 2020] 127.0.0.1:48530 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 07:58:06 2020] 127.0.0.1:48548 [201]: /remote.php/dav/comments/files/133/
    And "user1" posts a comment with content "Other's first comment" on the file named "/mySharedFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:06 2020] 127.0.0.1:48558 [200]: /login
[Mon Nov  9 07:58:06 2020] 127.0.0.1:48564 [303]: /login
[Mon Nov  9 07:58:06 2020] 127.0.0.1:48578 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                   # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:06 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["first"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["first"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:06 2020] 127.0.0.1:48584 [500]: /index.php/core/search?query=first&inApps%5B%5D=files
    And searching for "first" in app "files"                                                                                               # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=first&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                                        # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                         # FeatureContext::searchResultXContains()
      | type       | comment                   |
      | comment    | Other's first comment     |
      | authorId   | user1                     |
      | authorName | user1                     |
      | path       | mySharedFileToComment.txt |
      | fileName   | mySharedFileToComment.txt |
      | name       | Other's first comment     |
[Mon Nov  9 07:58:07 2020] 127.0.0.1:48586 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:07 2020] 127.0.0.1:48616 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:07 2020] 127.0.0.1:48636 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:58:08 2020] 127.0.0.1:48666 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:58:08 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:08 2020] 127.0.0.1:48674 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:08 2020] 127.0.0.1:48676 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:08 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:08 2020] 127.0.0.1:48684 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:08 2020] 127.0.0.1:48688 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:08 2020] 127.0.0.1:48696 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search other user's comment on a file shared by someone with me                                                              # /drone/src/build/integration/features/comments-search.feature:63
[Mon Nov  9 07:58:09 2020] 127.0.0.1:48702 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:09 2020] 127.0.0.1:48710 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:09 2020] 127.0.0.1:48732 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:10 2020] 127.0.0.1:48750 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                            # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:10 2020] 127.0.0.1:48762 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:58:11 2020] 127.0.0.1:48770 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:11 2020] 127.0.0.1:48790 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:58:11 2020] 127.0.0.1:48800 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                              # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:12 2020] 127.0.0.1:48804 [201]: /remote.php/webdav/sharedFileToComment.txt
    And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt"                                                      # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:12 2020] 127.0.0.1:48812 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares
    And as "user1" creating a share with                                                                                                 # FeatureContext::asCreatingAShareWith()
      | path      | sharedFileToComment.txt |
      | shareWith | user0                   |
      | shareType | 0                       |
[Mon Nov  9 07:58:12 2020] 127.0.0.1:48822 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/3
    And user "user0" accepts last share                                                                                                  # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 07:58:12 2020] 127.0.0.1:48830 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 07:58:12 2020] 127.0.0.1:48836 [201]: /remote.php/dav/comments/files/176/
    And "user1" posts a comment with content "Other's first comment" on the file named "/sharedFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:12 2020] 127.0.0.1:48844 [200]: /login
[Mon Nov  9 07:58:13 2020] 127.0.0.1:48846 [303]: /login
[Mon Nov  9 07:58:13 2020] 127.0.0.1:48854 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                 # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:13 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["first"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["first"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:13 2020] 127.0.0.1:48856 [500]: /index.php/core/search?query=first&inApps%5B%5D=files
    And searching for "first" in app "files"                                                                                             # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=first&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                                      # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                       # FeatureContext::searchResultXContains()
      | type       | comment                 |
      | comment    | Other's first comment   |
      | authorId   | user1                   |
      | authorName | user1                   |
      | path       | sharedFileToComment.txt |
      | fileName   | sharedFileToComment.txt |
      | name       | Other's first comment   |
[Mon Nov  9 07:58:13 2020] 127.0.0.1:48860 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:13 2020] 127.0.0.1:48872 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:14 2020] 127.0.0.1:48898 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:58:14 2020] 127.0.0.1:48922 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:58:14 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:14 2020] 127.0.0.1:48934 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:14 2020] 127.0.0.1:48942 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:14 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:14 2020] 127.0.0.1:48964 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:15 2020] 127.0.0.1:48966 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:15 2020] 127.0.0.1:48984 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search several comments on a file belonging to myself                                                                                     # /drone/src/build/integration/features/comments-search.feature:85
[Mon Nov  9 07:58:15 2020] 127.0.0.1:49004 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:16 2020] 127.0.0.1:49016 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:16 2020] 127.0.0.1:49058 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:16 2020] 127.0.0.1:49074 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                         # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:16 2020] 127.0.0.1:49088 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                       # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:17 2020] 127.0.0.1:49100 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:17 2020] 127.0.0.1:49118 [201]: /remote.php/dav/comments/files/202/
    And "user0" posts a comment with content "My first comment to be found" on the file named "/myFileToComment.txt" it should return "201"           # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:17 2020] 127.0.0.1:49132 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:17 2020] 127.0.0.1:49150 [201]: /remote.php/dav/comments/files/202/
    And "user0" posts a comment with content "The second comment should not be found" on the file named "/myFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:18 2020] 127.0.0.1:49160 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:18 2020] 127.0.0.1:49182 [201]: /remote.php/dav/comments/files/202/
    And "user0" posts a comment with content "My third comment to be found" on the file named "/myFileToComment.txt" it should return "201"           # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:18 2020] 127.0.0.1:49194 [200]: /login
[Mon Nov  9 07:58:18 2020] 127.0.0.1:49200 [303]: /login
[Mon Nov  9 07:58:18 2020] 127.0.0.1:49216 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                              # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:18 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["comment to be found"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["comment to be found"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["comment to be found",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["comment to be found",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:18 2020] 127.0.0.1:49220 [500]: /index.php/core/search?query=comment%20to%20be%20found&inApps%5B%5D=files
    And searching for "comment to be found" in app "files"                                                                                            # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=comment%20to%20be%20found&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "2" results                                                                                                   # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                                    # FeatureContext::searchResultXContains()
      | type       | comment                      |
      | comment    | My third comment to be found |
      | authorId   | user0                        |
      | authorName | user0                        |
      | path       | myFileToComment.txt          |
      | fileName   | myFileToComment.txt          |
      | name       | My third comment to be found |
    And search result "1" contains                                                                                                                    # FeatureContext::searchResultXContains()
      | type       | comment                      |
      | comment    | My first comment to be found |
      | authorId   | user0                        |
      | authorName | user0                        |
      | path       | myFileToComment.txt          |
      | fileName   | myFileToComment.txt          |
      | name       | My first comment to be found |
[Mon Nov  9 07:58:19 2020] 127.0.0.1:49222 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:19 2020] 127.0.0.1:49256 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:19 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:19 2020] 127.0.0.1:49274 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:19 2020] 127.0.0.1:49276 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:19 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:19 2020] 127.0.0.1:49296 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:20 2020] 127.0.0.1:49298 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:20 2020] 127.0.0.1:49316 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search comment with a large message ellipsized on the right                                                                                                                                                                 # /drone/src/build/integration/features/comments-search.feature:111
[Mon Nov  9 07:58:20 2020] 127.0.0.1:49342 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:21 2020] 127.0.0.1:49356 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:21 2020] 127.0.0.1:49408 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:21 2020] 127.0.0.1:49434 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                           # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:21 2020] 127.0.0.1:49452 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                         # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:22 2020] 127.0.0.1:49470 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:22 2020] 127.0.0.1:49486 [201]: /remote.php/dav/comments/files/224/
    And "user0" posts a comment with content "A very verbose message that is meant to be used to test the ellipsized message returned when searching for long comments" on the file named "/myFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:22 2020] 127.0.0.1:49506 [200]: /login
[Mon Nov  9 07:58:22 2020] 127.0.0.1:49510 [303]: /login
[Mon Nov  9 07:58:22 2020] 127.0.0.1:49530 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                                # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:22 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["verbose"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["verbose"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["verbose",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["verbose",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:22 2020] 127.0.0.1:49532 [500]: /index.php/core/search?query=verbose&inApps%5B%5D=files
    And searching for "verbose" in app "files"                                                                                                                                                                                          # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=verbose&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                                                                                                                                     # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                                                                                                                      # FeatureContext::searchResultXContains()
      | type       | comment                                                                                                                  |
      | comment    | A very verbose message that is meant to…                                                                                 |
      | authorId   | user0                                                                                                                    |
      | authorName | user0                                                                                                                    |
      | path       | myFileToComment.txt                                                                                                      |
      | fileName   | myFileToComment.txt                                                                                                      |
      | name       | A very verbose message that is meant to be used to test the ellipsized message returned when searching for long comments |
[Mon Nov  9 07:58:23 2020] 127.0.0.1:49536 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:23 2020] 127.0.0.1:49572 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:23 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:23 2020] 127.0.0.1:49596 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:23 2020] 127.0.0.1:49600 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:23 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:23 2020] 127.0.0.1:49614 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:24 2020] 127.0.0.1:49618 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:24 2020] 127.0.0.1:49638 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search comment with a large message ellipsized on the left                                                                                                                                                                  # /drone/src/build/integration/features/comments-search.feature:127
[Mon Nov  9 07:58:24 2020] 127.0.0.1:49662 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:25 2020] 127.0.0.1:49686 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:25 2020] 127.0.0.1:49722 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:25 2020] 127.0.0.1:49746 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                           # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:25 2020] 127.0.0.1:49760 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                         # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:26 2020] 127.0.0.1:49778 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:26 2020] 127.0.0.1:49794 [201]: /remote.php/dav/comments/files/246/
    And "user0" posts a comment with content "A very verbose message that is meant to be used to test the ellipsized message returned when searching for long comments" on the file named "/myFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:26 2020] 127.0.0.1:49816 [200]: /login
[Mon Nov  9 07:58:26 2020] 127.0.0.1:49818 [303]: /login
[Mon Nov  9 07:58:26 2020] 127.0.0.1:49842 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                                # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:26 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["searching"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["searching"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["searching",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["searching",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:26 2020] 127.0.0.1:49846 [500]: /index.php/core/search?query=searching&inApps%5B%5D=files
    And searching for "searching" in app "files"                                                                                                                                                                                        # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=searching&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                                                                                                                                     # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                                                                                                                      # FeatureContext::searchResultXContains()
      | type       | comment                                                                                                                  |
      | comment    | …ed message returned when searching for long comments                                                                    |
      | authorId   | user0                                                                                                                    |
      | authorName | user0                                                                                                                    |
      | path       | myFileToComment.txt                                                                                                      |
      | fileName   | myFileToComment.txt                                                                                                      |
      | name       | A very verbose message that is meant to be used to test the ellipsized message returned when searching for long comments |
[Mon Nov  9 07:58:27 2020] 127.0.0.1:49854 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:27 2020] 127.0.0.1:49882 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:27 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:27 2020] 127.0.0.1:49910 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:27 2020] 127.0.0.1:49912 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:27 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:27 2020] 127.0.0.1:49938 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:28 2020] 127.0.0.1:49940 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:28 2020] 127.0.0.1:49964 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search comment with a large message ellipsized on both ends                                                                                                                                                                 # /drone/src/build/integration/features/comments-search.feature:143
[Mon Nov  9 07:58:28 2020] 127.0.0.1:49992 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:29 2020] 127.0.0.1:50012 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:29 2020] 127.0.0.1:50076 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:29 2020] 127.0.0.1:50102 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                           # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:29 2020] 127.0.0.1:50132 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                         # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:30 2020] 127.0.0.1:50156 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:30 2020] 127.0.0.1:50176 [201]: /remote.php/dav/comments/files/268/
    And "user0" posts a comment with content "A very verbose message that is meant to be used to test the ellipsized message returned when searching for long comments" on the file named "/myFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:30 2020] 127.0.0.1:50194 [200]: /login
[Mon Nov  9 07:58:30 2020] 127.0.0.1:50198 [303]: /login
[Mon Nov  9 07:58:30 2020] 127.0.0.1:50220 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                                # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:30 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["ellipsized"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["ellipsized"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["ellipsized",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["ellipsized",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:30 2020] 127.0.0.1:50224 [500]: /index.php/core/search?query=ellipsized&inApps%5B%5D=files
    And searching for "ellipsized" in app "files"                                                                                                                                                                                       # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=ellipsized&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                                                                                                                                     # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                                                                                                                      # FeatureContext::searchResultXContains()
      | type       | comment                                                                                                                  |
      | comment    | …t to be used to test the ellipsized message returned when se…                                                           |
      | authorId   | user0                                                                                                                    |
      | authorName | user0                                                                                                                    |
      | path       | myFileToComment.txt                                                                                                      |
      | fileName   | myFileToComment.txt                                                                                                      |
      | name       | A very verbose message that is meant to be used to test the ellipsized message returned when searching for long comments |
[Mon Nov  9 07:58:31 2020] 127.0.0.1:50228 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:31 2020] 127.0.0.1:50268 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:31 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:31 2020] 127.0.0.1:50288 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:31 2020] 127.0.0.1:50292 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:31 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:31 2020] 127.0.0.1:50314 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:32 2020] 127.0.0.1:50316 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:32 2020] 127.0.0.1:50338 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search comment on a file in a subfolder                                                                                       # /drone/src/build/integration/features/comments-search.feature:159
[Mon Nov  9 07:58:32 2020] 127.0.0.1:50364 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:33 2020] 127.0.0.1:50380 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:33 2020] 127.0.0.1:50430 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:33 2020] 127.0.0.1:50454 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                             # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:33 2020] 127.0.0.1:50478 [201]: /remote.php/webdav/subfolder
    And user "user0" created a folder "/subfolder"                                                                                        # FeatureContext::userCreatedAFolder()
[Mon Nov  9 07:58:34 2020] 127.0.0.1:50500 [201]: /remote.php/webdav/subfolder/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/subfolder/myFileToComment.txt"                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:34 2020] 127.0.0.1:50520 [207]: /remote.php/webdav//subfolder/myFileToComment.txt
[Mon Nov  9 07:58:34 2020] 127.0.0.1:50542 [201]: /remote.php/dav/comments/files/291/
    And "user0" posts a comment with content "My first comment" on the file named "/subfolder/myFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:34 2020] 127.0.0.1:50564 [200]: /login
[Mon Nov  9 07:58:34 2020] 127.0.0.1:50568 [303]: /login
[Mon Nov  9 07:58:34 2020] 127.0.0.1:50586 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                  # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:34 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["first"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["first"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["first",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:34 2020] 127.0.0.1:50594 [500]: /index.php/core/search?query=first&inApps%5B%5D=files
    And searching for "first" in app "files"                                                                                              # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=first&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "1" results                                                                                       # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                        # FeatureContext::searchResultXContains()
      | type       | comment                       |
      | comment    | My first comment              |
      | authorId   | user0                         |
      | authorName | user0                         |
      | path       | subfolder/myFileToComment.txt |
      | fileName   | myFileToComment.txt           |
      | name       | My first comment              |
[Mon Nov  9 07:58:35 2020] 127.0.0.1:50596 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:35 2020] 127.0.0.1:50640 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:35 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:35 2020] 127.0.0.1:50658 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:35 2020] 127.0.0.1:50662 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:35 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:35 2020] 127.0.0.1:50686 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:36 2020] 127.0.0.1:50690 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:36 2020] 127.0.0.1:50712 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search several comments                                                                                                                                                                                            # /drone/src/build/integration/features/comments-search.feature:176
[Mon Nov  9 07:58:36 2020] 127.0.0.1:50734 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:37 2020] 127.0.0.1:50748 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:37 2020] 127.0.0.1:50794 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:37 2020] 127.0.0.1:50814 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                  # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:38 2020] 127.0.0.1:50838 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:58:38 2020] 127.0.0.1:50864 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:38 2020] 127.0.0.1:50908 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:58:39 2020] 127.0.0.1:50932 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                                                                                                                    # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:39 2020] 127.0.0.1:50958 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:39 2020] 127.0.0.1:50968 [201]: /remote.php/webdav/mySharedFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt"                                                                                                                                          # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:39 2020] 127.0.0.1:50982 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares
    And as "user0" creating a share with                                                                                                                                                                                       # FeatureContext::asCreatingAShareWith()
      | path      | mySharedFileToComment.txt |
      | shareWith | user1                     |
      | shareType | 0                         |
[Mon Nov  9 07:58:40 2020] 127.0.0.1:50996 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/4
    And user "user1" accepts last share                                                                                                                                                                                        # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 07:58:40 2020] 127.0.0.1:51024 [201]: /remote.php/webdav/sharedFileToComment.txt
    And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt"                                                                                                                                            # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:40 2020] 127.0.0.1:51040 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares
    And as "user1" creating a share with                                                                                                                                                                                       # FeatureContext::asCreatingAShareWith()
      | path      | sharedFileToComment.txt |
      | shareWith | user0                   |
      | shareType | 0                       |
[Mon Nov  9 07:58:40 2020] 127.0.0.1:51060 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/5
    And user "user0" accepts last share                                                                                                                                                                                        # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 07:58:41 2020] 127.0.0.1:51078 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:41 2020] 127.0.0.1:51094 [201]: /remote.php/dav/comments/files/330/
    And "user0" posts a comment with content "My first comment to be found" on the file named "/myFileToComment.txt" it should return "201"                                                                                    # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:41 2020] 127.0.0.1:51108 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:41 2020] 127.0.0.1:51116 [201]: /remote.php/dav/comments/files/330/
    And "user0" posts a comment with content "The second comment should not be found" on the file named "/myFileToComment.txt" it should return "201"                                                                          # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:42 2020] 127.0.0.1:51130 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 07:58:42 2020] 127.0.0.1:51146 [201]: /remote.php/dav/comments/files/331/
    And "user0" posts a comment with content "My first comment to be found" on the file named "/mySharedFileToComment.txt" it should return "201"                                                                              # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:42 2020] 127.0.0.1:51162 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 07:58:42 2020] 127.0.0.1:51180 [201]: /remote.php/dav/comments/files/331/
    And "user1" posts a comment with content "Other's first comment that should not be found" on the file named "/mySharedFileToComment.txt" it should return "201"                                                            # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:43 2020] 127.0.0.1:51186 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 07:58:43 2020] 127.0.0.1:51202 [201]: /remote.php/dav/comments/files/331/
    And "user1" posts a comment with content "Other's second comment to be found" on the file named "/mySharedFileToComment.txt" it should return "201"                                                                        # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:43 2020] 127.0.0.1:51220 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 07:58:43 2020] 127.0.0.1:51240 [201]: /remote.php/dav/comments/files/332/
    And "user0" posts a comment with content "My first comment that should not be found" on the file named "/sharedFileToComment.txt" it should return "201"                                                                   # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:44 2020] 127.0.0.1:51256 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 07:58:44 2020] 127.0.0.1:51274 [201]: /remote.php/dav/comments/files/332/
    And "user1" posts a comment with content "Other's first comment to be found" on the file named "/sharedFileToComment.txt" it should return "201"                                                                           # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:44 2020] 127.0.0.1:51286 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 07:58:44 2020] 127.0.0.1:51302 [201]: /remote.php/dav/comments/files/332/
    And "user0" posts a comment with content "My second comment to be found that happens to be more verbose than the others and thus should be ellipsized" on the file named "/sharedFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:45 2020] 127.0.0.1:51308 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:45 2020] 127.0.0.1:51326 [201]: /remote.php/dav/comments/files/330/
    And "user0" posts a comment with content "My third comment to be found" on the file named "/myFileToComment.txt" it should return "201"                                                                                    # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:45 2020] 127.0.0.1:51336 [200]: /login
[Mon Nov  9 07:58:45 2020] 127.0.0.1:51346 [303]: /login
[Mon Nov  9 07:58:45 2020] 127.0.0.1:51364 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                       # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:45 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["comment to be found"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["comment to be found"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["comment to be found",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["comment to be found",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:45 2020] 127.0.0.1:51372 [500]: /index.php/core/search?query=comment%20to%20be%20found&inApps%5B%5D=files
    And searching for "comment to be found" in app "files"                                                                                                                                                                     # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=comment%20to%20be%20found&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "6" results                                                                                                                                                                            # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                                                                                                             # FeatureContext::searchResultXContains()
      | type       | comment                      |
      | comment    | My third comment to be found |
      | authorId   | user0                        |
      | authorName | user0                        |
      | path       | myFileToComment.txt          |
      | fileName   | myFileToComment.txt          |
      | name       | My third comment to be found |
    And search result "1" contains                                                                                                                                                                                             # FeatureContext::searchResultXContains()
      | type       | comment                                                                                                     |
      | comment    | My second comment to be found that happens to be more …                                                     |
      | authorId   | user0                                                                                                       |
      | authorName | user0                                                                                                       |
      | path       | sharedFileToComment.txt                                                                                     |
      | fileName   | sharedFileToComment.txt                                                                                     |
      | name       | My second comment to be found that happens to be more verbose than the others and thus should be ellipsized |
    And search result "2" contains                                                                                                                                                                                             # FeatureContext::searchResultXContains()
      | type       | comment                           |
      | comment    | Other's first comment to be found |
      | authorId   | user1                             |
      | authorName | user1                             |
      | path       | sharedFileToComment.txt           |
      | fileName   | sharedFileToComment.txt           |
      | name       | Other's first comment to be found |
    And search result "3" contains                                                                                                                                                                                             # FeatureContext::searchResultXContains()
      | type       | comment                            |
      | comment    | Other's second comment to be found |
      | authorId   | user1                              |
      | authorName | user1                              |
      | path       | mySharedFileToComment.txt          |
      | fileName   | mySharedFileToComment.txt          |
      | name       | Other's second comment to be found |
    And search result "4" contains                                                                                                                                                                                             # FeatureContext::searchResultXContains()
      | type       | comment                      |
      | comment    | My first comment to be found |
      | authorId   | user0                        |
      | authorName | user0                        |
      | path       | mySharedFileToComment.txt    |
      | fileName   | mySharedFileToComment.txt    |
      | name       | My first comment to be found |
    And search result "5" contains                                                                                                                                                                                             # FeatureContext::searchResultXContains()
      | type       | comment                      |
      | comment    | My first comment to be found |
      | authorId   | user0                        |
      | authorName | user0                        |
      | path       | myFileToComment.txt          |
      | fileName   | myFileToComment.txt          |
      | name       | My first comment to be found |
[Mon Nov  9 07:58:46 2020] 127.0.0.1:51374 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:46 2020] 127.0.0.1:51408 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:46 2020] 127.0.0.1:51424 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 07:58:47 2020] 127.0.0.1:51462 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 07:58:47 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:47 2020] 127.0.0.1:51478 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:47 2020] 127.0.0.1:51480 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:47 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:47 2020] 127.0.0.1:51500 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:47 2020] 127.0.0.1:51504 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:47 2020] 127.0.0.1:51524 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search comment with a query that also matches a file name                                                                           # /drone/src/build/integration/features/comments-search.feature:253
[Mon Nov  9 07:58:48 2020] 127.0.0.1:51540 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:48 2020] 127.0.0.1:51562 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 07:58:49 2020] 127.0.0.1:51600 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:49 2020] 127.0.0.1:51614 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                   # FeatureContext::assureUserExists()
[Mon Nov  9 07:58:49 2020] 127.0.0.1:51626 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 07:58:49 2020] 127.0.0.1:51646 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 07:58:50 2020] 127.0.0.1:51666 [201]: /remote.php/dav/comments/files/358/
    And "user0" posts a comment with content "A comment in myFileToComment.txt" on the file named "/myFileToComment.txt" it should return "201" # CommentsContext::postsACommentWithContentOnTheFileNamedItShouldReturn()
[Mon Nov  9 07:58:50 2020] 127.0.0.1:51688 [200]: /login
[Mon Nov  9 07:58:50 2020] 127.0.0.1:51692 [303]: /login
[Mon Nov  9 07:58:50 2020] 127.0.0.1:51732 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                        # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 07:58:50 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["myFileToComment"]},{"file":"\/drone\/src\/lib\/private\/Search.php","line":61,"function":"search","class":"OC\\Search\\Provider\\File","type":"->","args":["myFileToComment"]},{"file":"\/drone\/src\/core\/Controller\/SearchController.php","line":60,"function":"searchPaged","class":"OC\\Search","type":"->","args":["myFileToComment",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":218,"function":"search","class":"OC\\Core\\Controller\\SearchController","type":"->","args":["myFileToComment",["files"],1,30]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/Files\/Filesystem.php","Line":763},"CustomMessage":"--"}
[Mon Nov  9 07:58:50 2020] 127.0.0.1:51740 [500]: /index.php/core/search?query=myFileToComment&inApps%5B%5D=files
    And searching for "myFileToComment" in app "files"                                                                                          # FeatureContext::searchingForInApp()
      Server error: `GET http://localhost:8080/index.php/core/search?query=myFileToComment&inApps%5B%5D=files` resulted in a `500 Internal Server Error` response:
      <!DOCTYPE html>
      <html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" >
      	<head
       data-requesttok (truncated...)
       (GuzzleHttp\Exception\ServerException)
    Then the list of search results has "2" results                                                                                             # FeatureContext::theListOfSearchResultsHasResults()
    And search result "0" contains                                                                                                              # FeatureContext::searchResultXContains()
      | type | file                 |
      | path | /myFileToComment.txt |
      | name | myFileToComment.txt  |
    And search result "1" contains                                                                                                              # FeatureContext::searchResultXContains()
      | type       | comment                          |
      | comment    | A comment in myFileToComment.txt |
      | authorId   | user0                            |
      | authorName | user0                            |
      | path       | myFileToComment.txt              |
      | fileName   | myFileToComment.txt              |
      | name       | A comment in myFileToComment.txt |
[Mon Nov  9 07:58:51 2020] 127.0.0.1:51746 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 07:58:51 2020] 127.0.0.1:51814 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 07:58:51 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:51 2020] 127.0.0.1:51838 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 07:58:51 2020] 127.0.0.1:51842 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 07:58:51 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 07:58:51 2020] 127.0.0.1:51860 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 07:58:51 2020] 127.0.0.1:51864 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 07:58:52 2020] 127.0.0.1:51880 [404]: /remote.php/dav/calendars/admin/MyCalendar

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding users creates php error

5 participants