Skip to content

Conversation

@MorrisJobke
Copy link
Member

If an SVG is requested and the app config value for logoMime is set then the logo is there. Otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which needs to be called then).

@MorrisJobke
Copy link
Member Author

/backport to stable20

@rullzer
Copy link
Member

rullzer commented Nov 5, 2020

CI says no

@MorrisJobke MorrisJobke force-pushed the fix/noid/shortcut-to-avoid-filesystem-setup branch from dd53324 to 7531cc5 Compare November 5, 2020 22:17
@MorrisJobke
Copy link
Member Author

CI says no

CI actually checked for the file access 🙈 I removed that and it runs fine locally now.

@MorrisJobke
Copy link
Member Author

Ready for final review. Best to be reviewed in whitespace cleaned mode: https://github.com/nextcloud/server/pull/23889/files?w=1

// explanation: if an SVG is requested and the app config value for logoMime is set then the logo is there.
// otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which
// needs to be called then)
if ($useSvg === true && $logo !== false) {
Copy link
Member

Choose a reason for hiding this comment

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

So this only works if your logo is an SVG logo?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, because in the other case it also tries to create the file on the fly. See the code in getImage. But for the capabilities SVG is used and that was the main driver for this here.

@rullzer
Copy link
Member

rullzer commented Nov 9, 2020

php-cs is not happy

If an SVG is requested and the app config value for logoMime is set then the logo is there. Otherwise we need to check it and maybe also generate a PNG from the SVG (that's done in getImage() which needs to be called then).

Signed-off-by: Morris Jobke <[email protected]>
@MorrisJobke MorrisJobke force-pushed the fix/noid/shortcut-to-avoid-filesystem-setup branch from 7531cc5 to c7ff0c7 Compare November 9, 2020 09:01
@MorrisJobke
Copy link
Member Author

php-cs is not happy

Fixed.

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 9, 2020
@faily-bot
Copy link

faily-bot bot commented Nov 9, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 35246: 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 11:55:00 2020] 127.0.0.1:33180 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:01 2020] 127.0.0.1:33212 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:01 2020] 127.0.0.1:33244 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:01 2020] 127.0.0.1:33272 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                   # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:02 2020] 127.0.0.1:33290 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:02 2020] 127.0.0.1:33310 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:02 2020] 127.0.0.1:33322 [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 11:55:02 2020] 127.0.0.1:33338 [200]: /login
[Mon Nov  9 11:55:03 2020] 127.0.0.1:33342 [303]: /login
[Mon Nov  9 11:55:03 2020] 127.0.0.1:33366 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                        # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:03 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 11:55:03 2020] 127.0.0.1:33412 [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 11:55:04 2020] 127.0.0.1:33414 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:04 2020] 127.0.0.1:33476 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:04 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:04 2020] 127.0.0.1:33496 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:05 2020] 127.0.0.1:33500 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:05 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:05 2020] 127.0.0.1:33516 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:05 2020] 127.0.0.1:33518 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:05 2020] 127.0.0.1:33540 [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 11:55:05 2020] 127.0.0.1:33564 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:06 2020] 127.0.0.1:33582 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:06 2020] 127.0.0.1:33626 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:07 2020] 127.0.0.1:33652 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                       # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:07 2020] 127.0.0.1:33672 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:55:08 2020] 127.0.0.1:33686 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:08 2020] 127.0.0.1:33718 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:55:08 2020] 127.0.0.1:33738 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                         # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:08 2020] 127.0.0.1:33750 [201]: /remote.php/webdav/sharedFileToComment.txt
    And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt"                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:09 2020] 127.0.0.1:33766 [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 11:55:09 2020] 127.0.0.1:33778 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/1
    And user "user0" accepts last share                                                                                             # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 11:55:09 2020] 127.0.0.1:33798 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 11:55:09 2020] 127.0.0.1:33812 [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 11:55:09 2020] 127.0.0.1:33832 [200]: /login
[Mon Nov  9 11:55:10 2020] 127.0.0.1:33834 [303]: /login
[Mon Nov  9 11:55:10 2020] 127.0.0.1:33854 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                            # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:10 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 11:55:10 2020] 127.0.0.1:33860 [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 11:55:10 2020] 127.0.0.1:33862 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:11 2020] 127.0.0.1:33896 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:11 2020] 127.0.0.1:33916 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:55:11 2020] 127.0.0.1:33954 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:55:11 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:11 2020] 127.0.0.1:33976 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:12 2020] 127.0.0.1:33980 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:12 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:12 2020] 127.0.0.1:33996 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:12 2020] 127.0.0.1:34000 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:12 2020] 127.0.0.1:34020 [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 11:55:12 2020] 127.0.0.1:34038 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:13 2020] 127.0.0.1:34060 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:13 2020] 127.0.0.1:34092 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:14 2020] 127.0.0.1:34114 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                              # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:14 2020] 127.0.0.1:34132 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:55:14 2020] 127.0.0.1:34148 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:15 2020] 127.0.0.1:34176 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:55:15 2020] 127.0.0.1:34190 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                                # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:15 2020] 127.0.0.1:34208 [201]: /remote.php/webdav/mySharedFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt"                                                      # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:16 2020] 127.0.0.1:34228 [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 11:55:16 2020] 127.0.0.1:34256 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/2
    And user "user1" accepts last share                                                                                                    # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 11:55:16 2020] 127.0.0.1:34292 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 11:55:17 2020] 127.0.0.1:34310 [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 11:55:17 2020] 127.0.0.1:34336 [200]: /login
[Mon Nov  9 11:55:17 2020] 127.0.0.1:34340 [303]: /login
[Mon Nov  9 11:55:17 2020] 127.0.0.1:34382 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                   # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:17 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 11:55:17 2020] 127.0.0.1:34386 [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 11:55:18 2020] 127.0.0.1:34390 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:18 2020] 127.0.0.1:34446 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:19 2020] 127.0.0.1:34468 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:55:19 2020] 127.0.0.1:34490 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:55:19 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:19 2020] 127.0.0.1:34502 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:19 2020] 127.0.0.1:34504 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:19 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:19 2020] 127.0.0.1:34526 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:19 2020] 127.0.0.1:34528 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:20 2020] 127.0.0.1:34550 [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 11:55:20 2020] 127.0.0.1:34584 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:20 2020] 127.0.0.1:34606 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:21 2020] 127.0.0.1:34694 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:21 2020] 127.0.0.1:34704 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                            # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:21 2020] 127.0.0.1:34722 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:55:22 2020] 127.0.0.1:34734 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:22 2020] 127.0.0.1:34748 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:55:22 2020] 127.0.0.1:34760 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                              # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:23 2020] 127.0.0.1:34778 [201]: /remote.php/webdav/sharedFileToComment.txt
    And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt"                                                      # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:23 2020] 127.0.0.1:34790 [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 11:55:23 2020] 127.0.0.1:34802 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/3
    And user "user0" accepts last share                                                                                                  # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 11:55:23 2020] 127.0.0.1:34822 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 11:55:24 2020] 127.0.0.1:34832 [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 11:55:24 2020] 127.0.0.1:34846 [200]: /login
[Mon Nov  9 11:55:24 2020] 127.0.0.1:34848 [303]: /login
[Mon Nov  9 11:55:24 2020] 127.0.0.1:34872 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                 # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:24 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 11:55:24 2020] 127.0.0.1:34880 [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 11:55:25 2020] 127.0.0.1:34882 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:25 2020] 127.0.0.1:34914 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:26 2020] 127.0.0.1:34944 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:55:26 2020] 127.0.0.1:34968 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:55:26 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:26 2020] 127.0.0.1:34984 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:26 2020] 127.0.0.1:34986 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:26 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:26 2020] 127.0.0.1:34998 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:26 2020] 127.0.0.1:35000 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:27 2020] 127.0.0.1:35020 [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 11:55:27 2020] 127.0.0.1:35048 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:27 2020] 127.0.0.1:35068 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:28 2020] 127.0.0.1:35084 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:28 2020] 127.0.0.1:35112 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                         # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:28 2020] 127.0.0.1:35134 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                       # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:28 2020] 127.0.0.1:35150 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:29 2020] 127.0.0.1:35174 [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 11:55:29 2020] 127.0.0.1:35186 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:29 2020] 127.0.0.1:35202 [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 11:55:29 2020] 127.0.0.1:35216 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:30 2020] 127.0.0.1:35232 [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 11:55:30 2020] 127.0.0.1:35244 [200]: /login
[Mon Nov  9 11:55:30 2020] 127.0.0.1:35246 [303]: /login
[Mon Nov  9 11:55:30 2020] 127.0.0.1:35264 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                              # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55: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":["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 11:55:30 2020] 127.0.0.1:35272 [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 11:55:31 2020] 127.0.0.1:35276 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:31 2020] 127.0.0.1:35306 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:31 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:31 2020] 127.0.0.1:35318 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:31 2020] 127.0.0.1:35324 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:31 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:31 2020] 127.0.0.1:35340 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:31 2020] 127.0.0.1:35342 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:32 2020] 127.0.0.1:35366 [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 11:55:32 2020] 127.0.0.1:35384 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:33 2020] 127.0.0.1:35406 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:33 2020] 127.0.0.1:35454 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:33 2020] 127.0.0.1:35476 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                           # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:33 2020] 127.0.0.1:35498 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                         # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:34 2020] 127.0.0.1:35572 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:34 2020] 127.0.0.1:35590 [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 11:55:34 2020] 127.0.0.1:35606 [200]: /login
[Mon Nov  9 11:55:34 2020] 127.0.0.1:35610 [303]: /login
[Mon Nov  9 11:55:34 2020] 127.0.0.1:35648 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                                # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55: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":["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 11:55:34 2020] 127.0.0.1:35654 [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 11:55:35 2020] 127.0.0.1:35658 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:35 2020] 127.0.0.1:35684 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:35 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:35 2020] 127.0.0.1:35706 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:35 2020] 127.0.0.1:35708 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:35 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:35 2020] 127.0.0.1:35734 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:36 2020] 127.0.0.1:35736 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:36 2020] 127.0.0.1:35756 [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 11:55:36 2020] 127.0.0.1:35778 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:37 2020] 127.0.0.1:35806 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:37 2020] 127.0.0.1:35848 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:37 2020] 127.0.0.1:35864 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                           # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:38 2020] 127.0.0.1:35878 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                         # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:38 2020] 127.0.0.1:35894 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:38 2020] 127.0.0.1:35906 [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 11:55:38 2020] 127.0.0.1:35924 [200]: /login
[Mon Nov  9 11:55:39 2020] 127.0.0.1:35926 [303]: /login
[Mon Nov  9 11:55:39 2020] 127.0.0.1:35936 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                                # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:39 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 11:55:39 2020] 127.0.0.1:35940 [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 11:55:39 2020] 127.0.0.1:35942 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:39 2020] 127.0.0.1:35982 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:39 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:39 2020] 127.0.0.1:36004 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:40 2020] 127.0.0.1:36006 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:40 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:40 2020] 127.0.0.1:36028 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:40 2020] 127.0.0.1:36036 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:41 2020] 127.0.0.1:36064 [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 11:55:41 2020] 127.0.0.1:36142 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:41 2020] 127.0.0.1:36176 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:42 2020] 127.0.0.1:36226 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:42 2020] 127.0.0.1:36240 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                           # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:42 2020] 127.0.0.1:36252 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                         # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:43 2020] 127.0.0.1:36272 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:43 2020] 127.0.0.1:36292 [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 11:55:43 2020] 127.0.0.1:36310 [200]: /login
[Mon Nov  9 11:55:43 2020] 127.0.0.1:36314 [303]: /login
[Mon Nov  9 11:55:43 2020] 127.0.0.1:36336 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                                # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:43 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 11:55:43 2020] 127.0.0.1:36344 [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 11:55:44 2020] 127.0.0.1:36346 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:44 2020] 127.0.0.1:36394 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:44 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:44 2020] 127.0.0.1:36418 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:44 2020] 127.0.0.1:36422 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:44 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:44 2020] 127.0.0.1:36436 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:45 2020] 127.0.0.1:36438 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:45 2020] 127.0.0.1:36446 [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 11:55:45 2020] 127.0.0.1:36462 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:46 2020] 127.0.0.1:36480 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:46 2020] 127.0.0.1:36518 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:46 2020] 127.0.0.1:36534 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                             # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:47 2020] 127.0.0.1:36558 [201]: /remote.php/webdav/subfolder
    And user "user0" created a folder "/subfolder"                                                                                        # FeatureContext::userCreatedAFolder()
[Mon Nov  9 11:55:47 2020] 127.0.0.1:36588 [201]: /remote.php/webdav/subfolder/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/subfolder/myFileToComment.txt"                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:47 2020] 127.0.0.1:36598 [207]: /remote.php/webdav//subfolder/myFileToComment.txt
[Mon Nov  9 11:55:47 2020] 127.0.0.1:36640 [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 11:55:47 2020] 127.0.0.1:36698 [200]: /login
[Mon Nov  9 11:55:48 2020] 127.0.0.1:36700 [303]: /login
[Mon Nov  9 11:55:48 2020] 127.0.0.1:36714 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                  # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:48 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 11:55:48 2020] 127.0.0.1:36732 [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 11:55:48 2020] 127.0.0.1:36746 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:49 2020] 127.0.0.1:36784 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:49 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:49 2020] 127.0.0.1:36796 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:55:49 2020] 127.0.0.1:36800 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:55:49 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:55:49 2020] 127.0.0.1:36812 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:55:49 2020] 127.0.0.1:36814 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:55:49 2020] 127.0.0.1:36840 [404]: /remote.php/dav/calendars/admin/MyCalendar

  Scenario: Search several comments                                                                                                                                                                                            # /drone/src/build/integration/features/comments-search.feature:176
[Mon Nov  9 11:55:50 2020] 127.0.0.1:36858 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:55:50 2020] 127.0.0.1:36888 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:51 2020] 127.0.0.1:36938 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:55:51 2020] 127.0.0.1:36956 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                                                                                                  # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:51 2020] 127.0.0.1:36968 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:55:52 2020] 127.0.0.1:36982 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:55:52 2020] 127.0.0.1:37004 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:55:52 2020] 127.0.0.1:37024 [200]: /ocs/v2.php/cloud/users/user1
    And user "user1" exists                                                                                                                                                                                                    # FeatureContext::assureUserExists()
[Mon Nov  9 11:55:53 2020] 127.0.0.1:37034 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                                                                                                # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:53 2020] 127.0.0.1:37054 [201]: /remote.php/webdav/mySharedFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt"                                                                                                                                          # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:53 2020] 127.0.0.1:37074 [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 11:55:53 2020] 127.0.0.1:37098 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/4
    And user "user1" accepts last share                                                                                                                                                                                        # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 11:55:54 2020] 127.0.0.1:37114 [201]: /remote.php/webdav/sharedFileToComment.txt
    And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt"                                                                                                                                            # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:55:54 2020] 127.0.0.1:37144 [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 11:55:54 2020] 127.0.0.1:37158 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/5
    And user "user0" accepts last share                                                                                                                                                                                        # FeatureContext::userAcceptsLastShare()
[Mon Nov  9 11:55:55 2020] 127.0.0.1:37178 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:55 2020] 127.0.0.1:37216 [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 11:55:55 2020] 127.0.0.1:37240 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:55 2020] 127.0.0.1:37256 [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 11:55:56 2020] 127.0.0.1:37314 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 11:55:56 2020] 127.0.0.1:37346 [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 11:55:56 2020] 127.0.0.1:37358 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 11:55:56 2020] 127.0.0.1:37396 [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 11:55:57 2020] 127.0.0.1:37412 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov  9 11:55:57 2020] 127.0.0.1:37436 [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 11:55:57 2020] 127.0.0.1:37448 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 11:55:57 2020] 127.0.0.1:37474 [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 11:55:58 2020] 127.0.0.1:37508 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 11:55:58 2020] 127.0.0.1:37534 [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 11:55:58 2020] 127.0.0.1:37544 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov  9 11:55:58 2020] 127.0.0.1:37614 [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 11:55:59 2020] 127.0.0.1:37634 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:55:59 2020] 127.0.0.1:37652 [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 11:55:59 2020] 127.0.0.1:37662 [200]: /login
[Mon Nov  9 11:55:59 2020] 127.0.0.1:37664 [303]: /login
[Mon Nov  9 11:55:59 2020] 127.0.0.1:37690 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                                                                                                       # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:55:59 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 11:55:59 2020] 127.0.0.1:37694 [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 11:56:00 2020] 127.0.0.1:37700 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:56:00 2020] 127.0.0.1:37728 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:56:01 2020] 127.0.0.1:37740 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov  9 11:56:01 2020] 127.0.0.1:37770 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov  9 11:56:01 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:56:01 2020] 127.0.0.1:37784 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:56:01 2020] 127.0.0.1:37788 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:56:01 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:56:01 2020] 127.0.0.1:37802 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:56:02 2020] 127.0.0.1:37804 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:56:02 2020] 127.0.0.1:37840 [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 11:56:02 2020] 127.0.0.1:37858 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:56:03 2020] 127.0.0.1:37878 [200]: /ocs/v1.php/cloud/users
[Mon Nov  9 11:56:03 2020] 127.0.0.1:37942 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:56:03 2020] 127.0.0.1:37964 [200]: /ocs/v2.php/cloud/users/user0
    Given user "user0" exists                                                                                                                   # FeatureContext::assureUserExists()
[Mon Nov  9 11:56:04 2020] 127.0.0.1:37982 [201]: /remote.php/webdav/myFileToComment.txt
    And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"                                                                 # FeatureContext::userUploadsAFileTo()
[Mon Nov  9 11:56:04 2020] 127.0.0.1:37996 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov  9 11:56:04 2020] 127.0.0.1:38036 [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 11:56:04 2020] 127.0.0.1:38054 [200]: /login
[Mon Nov  9 11:56:05 2020] 127.0.0.1:38064 [303]: /login
[Mon Nov  9 11:56:05 2020] 127.0.0.1:38142 [200]: /index.php/apps/dashboard/
    When Logging in using web as "user0"                                                                                                        # FeatureContext::loggingInUsingWebAs()
[Mon Nov  9 11:56:05 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 11:56:05 2020] 127.0.0.1:38164 [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 11:56:05 2020] 127.0.0.1:38168 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov  9 11:56:06 2020] 127.0.0.1:38198 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov  9 11:56:06 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:56:06 2020] 127.0.0.1:38214 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov  9 11:56:06 2020] 127.0.0.1:38216 [207]: /remote.php/dav/systemtags/
[Mon Nov  9 11:56:06 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov  9 11:56:06 2020] 127.0.0.1:38232 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov  9 11:56:06 2020] 127.0.0.1:38238 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov  9 11:56:06 2020] 127.0.0.1:38320 [404]: /remote.php/dav/calendars/admin/MyCalendar

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

Labels

4. to release Ready to be released and/or waiting for tests to finish performance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants