Skip to content

Use query builder instead of OC_DB in OC\Files\* - #23937

Merged
skjnldsv merged 1 commit into
masterfrom
bugfix/noid/files-ocdb
Nov 9, 2020
Merged

Use query builder instead of OC_DB in OC\Files\*#23937
skjnldsv merged 1 commit into
masterfrom
bugfix/noid/files-ocdb

Conversation

@nickvergessen

Copy link
Copy Markdown
Member

Ref #23929

@nickvergessen

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

@icewind1991icewind1991 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🎉

@MorrisJobkeMorrisJobke 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 6, 2020
Signed-off-by: Joas Schilling <coding@schilljs.com>
@faily-bot

faily-botBot commented Nov 9, 2020

Copy link
Copy Markdown

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 35238: 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 09:19:36 2020] 127.0.0.1:52266 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:19:37 2020] 127.0.0.1:52322 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:19:37 2020] 127.0.0.1:52406 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:19:37 2020] 127.0.0.1:52454 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:19:37 2020] 127.0.0.1:52488 [201]: /remote.php/webdav/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:19:38 2020] 127.0.0.1:52526 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:19:38 2020] 127.0.0.1:52562 [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 09:19:38 2020] 127.0.0.1:52598 [200]: /login
[Mon Nov 9 09:19:38 2020] 127.0.0.1:52608 [303]: /login
[Mon Nov 9 09:19:39 2020] 127.0.0.1:52654 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:19: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":["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 09:19:39 2020] 127.0.0.1:52742 [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 09:19:39 2020] 127.0.0.1:52750 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:19:40 2020] 127.0.0.1:52814 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:19:40 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:19:40 2020] 127.0.0.1:52834 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:19:40 2020] 127.0.0.1:52836 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:19:40 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:19:40 2020] 127.0.0.1:52840 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:19:40 2020] 127.0.0.1:52842 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:19:40 2020] 127.0.0.1:52850 [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 09:19:41 2020] 127.0.0.1:52856 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:19:41 2020] 127.0.0.1:52862 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:19:42 2020] 127.0.0.1:52874 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:19:42 2020] 127.0.0.1:52878 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:19:42 2020] 127.0.0.1:52884 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:19:43 2020] 127.0.0.1:52886 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:19:43 2020] 127.0.0.1:52902 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:19:43 2020] 127.0.0.1:52908 [200]: /ocs/v2.php/cloud/users/user1
And user "user1" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:19:44 2020] 127.0.0.1:52914 [201]: /remote.php/webdav/sharedFileToComment.txt
And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:19:44 2020] 127.0.0.1:52918 [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 09:19:44 2020] 127.0.0.1:52924 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/1
And user "user0" accepts last share # FeatureContext::userAcceptsLastShare()
[Mon Nov 9 09:19:44 2020] 127.0.0.1:52928 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov 9 09:19:45 2020] 127.0.0.1:52934 [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 09:19:45 2020] 127.0.0.1:52950 [200]: /login
[Mon Nov 9 09:19:45 2020] 127.0.0.1:52964 [303]: /login
[Mon Nov 9 09:19:45 2020] 127.0.0.1:53014 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:19:45 2020] {"Exception":"Exception","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/AppFramework\/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\SearchController"},"search"]},{"file":"\/drone\/src\/lib\/private\/Route\/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\SearchController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"action":null,"_route":"core.Search.search"}]},{"file":"\/drone\/src\/lib\/base.php","line":1009,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/core\/search"]},{"file":"\/drone\/src\/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":159,"Previous":{"Exception":"Error","Message":"Call to a member function search() on null","Code":0,"Trace":[{"file":"\/drone\/src\/lib\/private\/Search\/Provider\/File.php","line":47,"function":"search","class":"OC\\Files\\Filesystem","type":"::","args":["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 09:19:45 2020] 127.0.0.1:53026 [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 09:19:46 2020] 127.0.0.1:53028 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:19:46 2020] 127.0.0.1:53110 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:19:46 2020] 127.0.0.1:53158 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:19:47 2020] 127.0.0.1:53228 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:19:47 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:19:47 2020] 127.0.0.1:53262 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:19:47 2020] 127.0.0.1:53276 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:19:47 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:19:47 2020] 127.0.0.1:53308 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:19:47 2020] 127.0.0.1:53310 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:19:47 2020] 127.0.0.1:53350 [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 09:19:48 2020] 127.0.0.1:53400 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:19:48 2020] 127.0.0.1:53448 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:19:49 2020] 127.0.0.1:53548 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:19:49 2020] 127.0.0.1:53586 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:19:49 2020] 127.0.0.1:53618 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:19:50 2020] 127.0.0.1:53660 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:19:50 2020] 127.0.0.1:53744 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:19:51 2020] 127.0.0.1:53788 [200]: /ocs/v2.php/cloud/users/user1
And user "user1" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:19:51 2020] 127.0.0.1:53818 [201]: /remote.php/webdav/mySharedFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:19:51 2020] 127.0.0.1:53850 [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 09:19:51 2020] 127.0.0.1:53896 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/2
And user "user1" accepts last share # FeatureContext::userAcceptsLastShare()
[Mon Nov 9 09:19:52 2020] 127.0.0.1:53940 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov 9 09:19:52 2020] 127.0.0.1:53984 [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 09:19:52 2020] 127.0.0.1:54016 [200]: /login
[Mon Nov 9 09:19:52 2020] 127.0.0.1:54018 [303]: /login
[Mon Nov 9 09:19:52 2020] 127.0.0.1:54070 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:19:52 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 09:19:52 2020] 127.0.0.1:54072 [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 09:19:53 2020] 127.0.0.1:54082 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:19:53 2020] 127.0.0.1:54140 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:19:54 2020] 127.0.0.1:54164 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:19:54 2020] 127.0.0.1:54222 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:19:54 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:19:54 2020] 127.0.0.1:54264 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:19:54 2020] 127.0.0.1:54274 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:19:54 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:19:54 2020] 127.0.0.1:54314 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:19:55 2020] 127.0.0.1:54316 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:19:55 2020] 127.0.0.1:54360 [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 09:19:55 2020] 127.0.0.1:54386 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:19:56 2020] 127.0.0.1:54416 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:19:56 2020] 127.0.0.1:54482 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:19:56 2020] 127.0.0.1:54524 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:19:57 2020] 127.0.0.1:54558 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:19:57 2020] 127.0.0.1:54586 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:19:57 2020] 127.0.0.1:54644 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:19:58 2020] 127.0.0.1:54672 [200]: /ocs/v2.php/cloud/users/user1
And user "user1" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:19:58 2020] 127.0.0.1:54696 [201]: /remote.php/webdav/sharedFileToComment.txt
And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:19:58 2020] 127.0.0.1:54716 [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 09:19:58 2020] 127.0.0.1:54740 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/3
And user "user0" accepts last share # FeatureContext::userAcceptsLastShare()
[Mon Nov 9 09:19:59 2020] 127.0.0.1:54766 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov 9 09:19:59 2020] 127.0.0.1:54796 [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 09:19:59 2020] 127.0.0.1:54832 [200]: /login
[Mon Nov 9 09:19:59 2020] 127.0.0.1:54834 [303]: /login
[Mon Nov 9 09:19:59 2020] 127.0.0.1:54862 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:19: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":["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 09:19:59 2020] 127.0.0.1:54868 [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 09:20:00 2020] 127.0.0.1:54872 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:00 2020] 127.0.0.1:54942 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:01 2020] 127.0.0.1:54974 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:20:01 2020] 127.0.0.1:55038 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:20:01 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:01 2020] 127.0.0.1:55070 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:01 2020] 127.0.0.1:55072 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:01 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:01 2020] 127.0.0.1:55104 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:01 2020] 127.0.0.1:55108 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:02 2020] 127.0.0.1:55138 [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 09:20:02 2020] 127.0.0.1:55170 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:03 2020] 127.0.0.1:55212 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:03 2020] 127.0.0.1:55284 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:03 2020] 127.0.0.1:55320 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:03 2020] 127.0.0.1:55348 [201]: /remote.php/webdav/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:04 2020] 127.0.0.1:55380 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:04 2020] 127.0.0.1:55416 [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 09:20:04 2020] 127.0.0.1:55454 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:04 2020] 127.0.0.1:55488 [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 09:20:05 2020] 127.0.0.1:55518 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:05 2020] 127.0.0.1:55546 [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 09:20:05 2020] 127.0.0.1:55586 [200]: /login
[Mon Nov 9 09:20:05 2020] 127.0.0.1:55588 [303]: /login
[Mon Nov 9 09:20:05 2020] 127.0.0.1:55634 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:20: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":["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 09:20:05 2020] 127.0.0.1:55644 [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 09:20:06 2020] 127.0.0.1:55648 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:06 2020] 127.0.0.1:55728 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:06 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:06 2020] 127.0.0.1:55758 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:07 2020] 127.0.0.1:55760 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:07 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:07 2020] 127.0.0.1:55790 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:07 2020] 127.0.0.1:55794 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:07 2020] 127.0.0.1:55830 [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 09:20:07 2020] 127.0.0.1:55862 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:08 2020] 127.0.0.1:55886 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:08 2020] 127.0.0.1:55946 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:09 2020] 127.0.0.1:55984 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:09 2020] 127.0.0.1:56014 [201]: /remote.php/webdav/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:09 2020] 127.0.0.1:56046 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:09 2020] 127.0.0.1:56076 [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 09:20:09 2020] 127.0.0.1:56104 [200]: /login
[Mon Nov 9 09:20:10 2020] 127.0.0.1:56110 [303]: /login
[Mon Nov 9 09:20:10 2020] 127.0.0.1:56148 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:20: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":["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 09:20:10 2020] 127.0.0.1:56154 [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 09:20:10 2020] 127.0.0.1:56158 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:10 2020] 127.0.0.1:56226 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:10 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:10 2020] 127.0.0.1:56260 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:11 2020] 127.0.0.1:56264 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:11 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:11 2020] 127.0.0.1:56304 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:11 2020] 127.0.0.1:56308 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:12 2020] 127.0.0.1:56346 [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 09:20:12 2020] 127.0.0.1:56428 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:13 2020] 127.0.0.1:56464 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:13 2020] 127.0.0.1:56528 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:13 2020] 127.0.0.1:56558 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:14 2020] 127.0.0.1:56590 [201]: /remote.php/webdav/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:14 2020] 127.0.0.1:56622 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:14 2020] 127.0.0.1:56652 [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 09:20:14 2020] 127.0.0.1:56686 [200]: /login
[Mon Nov 9 09:20:15 2020] 127.0.0.1:56690 [303]: /login
[Mon Nov 9 09:20:15 2020] 127.0.0.1:56728 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:20:15 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 09:20:15 2020] 127.0.0.1:56736 [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 09:20:15 2020] 127.0.0.1:56740 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:16 2020] 127.0.0.1:56798 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:16 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:16 2020] 127.0.0.1:56832 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:16 2020] 127.0.0.1:56834 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:16 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:16 2020] 127.0.0.1:56862 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:16 2020] 127.0.0.1:56866 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:16 2020] 127.0.0.1:56892 [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 09:20:17 2020] 127.0.0.1:56916 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:17 2020] 127.0.0.1:56946 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:17 2020] 127.0.0.1:57016 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:18 2020] 127.0.0.1:57042 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:18 2020] 127.0.0.1:57074 [201]: /remote.php/webdav/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:18 2020] 127.0.0.1:57104 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:19 2020] 127.0.0.1:57132 [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 09:20:19 2020] 127.0.0.1:57160 [200]: /login
[Mon Nov 9 09:20:19 2020] 127.0.0.1:57162 [303]: /login
[Mon Nov 9 09:20:19 2020] 127.0.0.1:57200 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:20:19 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 09:20:19 2020] 127.0.0.1:57206 [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 09:20:20 2020] 127.0.0.1:57214 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:20 2020] 127.0.0.1:57282 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:20 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:20 2020] 127.0.0.1:57328 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:20 2020] 127.0.0.1:57332 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:20 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:20 2020] 127.0.0.1:57380 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:21 2020] 127.0.0.1:57382 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:21 2020] 127.0.0.1:57426 [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 09:20:21 2020] 127.0.0.1:57468 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:22 2020] 127.0.0.1:57504 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:22 2020] 127.0.0.1:57552 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:23 2020] 127.0.0.1:57586 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:23 2020] 127.0.0.1:57614 [201]: /remote.php/webdav/subfolder
And user "user0" created a folder "/subfolder" # FeatureContext::userCreatedAFolder()
[Mon Nov 9 09:20:23 2020] 127.0.0.1:57650 [201]: /remote.php/webdav/subfolder/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/subfolder/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:23 2020] 127.0.0.1:57682 [207]: /remote.php/webdav//subfolder/myFileToComment.txt
[Mon Nov 9 09:20:24 2020] 127.0.0.1:57710 [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 09:20:24 2020] 127.0.0.1:57740 [200]: /login
[Mon Nov 9 09:20:24 2020] 127.0.0.1:57748 [303]: /login
[Mon Nov 9 09:20:24 2020] 127.0.0.1:57778 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:20: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 09:20:24 2020] 127.0.0.1:57788 [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 09:20:25 2020] 127.0.0.1:57792 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:25 2020] 127.0.0.1:57848 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:25 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:25 2020] 127.0.0.1:57876 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:25 2020] 127.0.0.1:57880 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:25 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:25 2020] 127.0.0.1:57908 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:25 2020] 127.0.0.1:57912 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:26 2020] 127.0.0.1:57950 [404]: /remote.php/dav/calendars/admin/MyCalendar
Scenario: Search several comments # /drone/src/build/integration/features/comments-search.feature:176
[Mon Nov 9 09:20:26 2020] 127.0.0.1:57984 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:27 2020] 127.0.0.1:58024 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:27 2020] 127.0.0.1:58100 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:28 2020] 127.0.0.1:58156 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:28 2020] 127.0.0.1:58196 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:20:29 2020] 127.0.0.1:58238 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:29 2020] 127.0.0.1:58308 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:20:29 2020] 127.0.0.1:58342 [200]: /ocs/v2.php/cloud/users/user1
And user "user1" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:30 2020] 127.0.0.1:58376 [201]: /remote.php/webdav/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:30 2020] 127.0.0.1:58406 [201]: /remote.php/webdav/mySharedFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/mySharedFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:30 2020] 127.0.0.1:58440 [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 09:20:31 2020] 127.0.0.1:58478 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/4
And user "user1" accepts last share # FeatureContext::userAcceptsLastShare()
[Mon Nov 9 09:20:31 2020] 127.0.0.1:58514 [201]: /remote.php/webdav/sharedFileToComment.txt
And User "user1" uploads file "data/textfile.txt" to "/sharedFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:31 2020] 127.0.0.1:58552 [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 09:20:32 2020] 127.0.0.1:58586 [200]: /ocs/v1.php/apps/files_sharing/api/v1/shares/pending/5
And user "user0" accepts last share # FeatureContext::userAcceptsLastShare()
[Mon Nov 9 09:20:32 2020] 127.0.0.1:58618 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:32 2020] 127.0.0.1:58642 [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 09:20:32 2020] 127.0.0.1:58668 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:33 2020] 127.0.0.1:58700 [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 09:20:33 2020] 127.0.0.1:58726 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov 9 09:20:33 2020] 127.0.0.1:58750 [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 09:20:33 2020] 127.0.0.1:58780 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov 9 09:20:34 2020] 127.0.0.1:58814 [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 09:20:34 2020] 127.0.0.1:58850 [207]: /remote.php/webdav//mySharedFileToComment.txt
[Mon Nov 9 09:20:34 2020] 127.0.0.1:58884 [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 09:20:35 2020] 127.0.0.1:58916 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov 9 09:20:35 2020] 127.0.0.1:58946 [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 09:20:36 2020] 127.0.0.1:58986 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov 9 09:20:36 2020] 127.0.0.1:59028 [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 09:20:36 2020] 127.0.0.1:59060 [207]: /remote.php/webdav//sharedFileToComment.txt
[Mon Nov 9 09:20:36 2020] 127.0.0.1:59084 [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 09:20:37 2020] 127.0.0.1:59112 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:37 2020] 127.0.0.1:59146 [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 09:20:37 2020] 127.0.0.1:59184 [200]: /login
[Mon Nov 9 09:20:38 2020] 127.0.0.1:59186 [303]: /login
[Mon Nov 9 09:20:38 2020] 127.0.0.1:59246 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:20:38 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 09:20:38 2020] 127.0.0.1:59252 [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 09:20:38 2020] 127.0.0.1:59260 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:38 2020] 127.0.0.1:59318 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:39 2020] 127.0.0.1:59352 [200]: /ocs/v1.php/cloud/users/user1
[Mon Nov 9 09:20:39 2020] 127.0.0.1:59398 [404]: /ocs/v2.php/cloud/users/user1
[Mon Nov 9 09:20:39 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:39 2020] 127.0.0.1:59428 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:39 2020] 127.0.0.1:59430 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:39 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:39 2020] 127.0.0.1:59468 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:40 2020] 127.0.0.1:59470 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:40 2020] 127.0.0.1:59514 [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 09:20:40 2020] 127.0.0.1:59548 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:41 2020] 127.0.0.1:59578 [200]: /ocs/v1.php/cloud/users
[Mon Nov 9 09:20:41 2020] 127.0.0.1:59650 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:42 2020] 127.0.0.1:59698 [200]: /ocs/v2.php/cloud/users/user0
Given user "user0" exists # FeatureContext::assureUserExists()
[Mon Nov 9 09:20:42 2020] 127.0.0.1:59726 [201]: /remote.php/webdav/myFileToComment.txt
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt" # FeatureContext::userUploadsAFileTo()
[Mon Nov 9 09:20:42 2020] 127.0.0.1:59760 [207]: /remote.php/webdav//myFileToComment.txt
[Mon Nov 9 09:20:42 2020] 127.0.0.1:59790 [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 09:20:42 2020] 127.0.0.1:59824 [200]: /login
[Mon Nov 9 09:20:43 2020] 127.0.0.1:59826 [303]: /login
[Mon Nov 9 09:20:43 2020] 127.0.0.1:59860 [200]: /index.php/apps/dashboard/
When Logging in using web as "user0" # FeatureContext::loggingInUsingWebAs()
[Mon Nov 9 09:20: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":["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 09:20:43 2020] 127.0.0.1:59864 [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 09:20:43 2020] 127.0.0.1:59876 [200]: /ocs/v1.php/cloud/users/user0
[Mon Nov 9 09:20:43 2020] 127.0.0.1:59936 [404]: /ocs/v2.php/cloud/users/user0
[Mon Nov 9 09:20:43 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:43 2020] 127.0.0.1:59966 [401]: /remote.php/webdav/myFileToComment.txt
[Mon Nov 9 09:20:44 2020] 127.0.0.1:59974 [207]: /remote.php/dav/systemtags/
[Mon Nov 9 09:20:44 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Mon Nov 9 09:20:44 2020] 127.0.0.1:60012 [401]: /remote.php/webdav/myFileToTag.txt
[Mon Nov 9 09:20:44 2020] 127.0.0.1:60016 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Mon Nov 9 09:20:44 2020] 127.0.0.1:60050 [404]: /remote.php/dav/calendars/admin/MyCalendar

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

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: filesystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@nickvergessen@icewind1991@ChristophWurst@skjnldsv@MorrisJobke