-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use authType BASIC for Sabre client in integration tests #27421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -141,7 +141,6 @@ public function downloadFileWithRange($fileSource, $range){ | |||
| public function downloadPublicFileWithRange($range){ | ||||
| $token = $this->lastShareData->data->token; | ||||
| $fullUrl = substr($this->baseUrl, 0, -4) . "public.php/webdav"; | ||||
| $headers['Range'] = $range; | ||||
|
|
||||
| $client = new GClient(); | ||||
| $options = []; | ||||
|
|
@@ -160,7 +159,6 @@ public function downloadPublicFileWithRange($range){ | |||
| public function downloadPublicFileInsideAFolderWithRange($path, $range){ | ||||
| $token = $this->lastShareData->data->token; | ||||
| $fullUrl = substr($this->baseUrl, 0, -4) . "public.php/webdav" . "$path"; | ||||
| $headers['Range'] = $range; | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, my "IDE" told me it was unused when passing by so I removed it 😉
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok |
||||
|
|
||||
| $client = new GClient(); | ||||
| $options = []; | ||||
|
|
@@ -429,6 +427,7 @@ public function getSabreClient($user) { | |||
| } else { | ||||
| $settings['password'] = $this->regularUser; | ||||
| } | ||||
| $settings['authType'] = SClient::AUTH_BASIC; | ||||
|
|
||||
| return new SClient($settings); | ||||
| } | ||||
|
|
@@ -686,6 +685,8 @@ public function changeFavStateOfAnElement($user, $path, $favOrUnfav, $folderDept | |||
| } else { | ||||
| $settings['password'] = $this->regularUser; | ||||
| } | ||||
| $settings['authType'] = SClient::AUTH_BASIC; | ||||
|
|
||||
| $client = new SClient($settings); | ||||
| if (!$properties) { | ||||
| $properties = [ | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really removing the range?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, unused