Skip to content
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

Error: undefined variable $response in DAV storage #11140

Open
ChristophWurst opened this issue Sep 10, 2018 · 8 comments
Open

Error: undefined variable $response in DAV storage #11140

ChristophWurst opened this issue Sep 10, 2018 · 8 comments

Comments

@ChristophWurst
Copy link
Member

Steps to reproduce

  1. Call
    protected function convertException(Exception $e, $path = '') {
  2. Hit https://github.com/nextcloud/server/blob/master/lib/private/Files/Storage/DAV.php#L855
  3. Hit
    return $response;

Expected behaviour

Condition is detected and handled (logged, ignored).

Actual behaviour

An unexpected condition is met and a non-existent variable is accessed.

Ref https://sentry.rullzer.com/sentry/nextcloud/issues/150 (for people with access).

@ChristophWurst ChristophWurst added bug feature: dav 0. Needs triage Pending check for reproducibility or if it fits our roadmap feature: files labels Sep 10, 2018
@nextcloud-bot

This comment has been minimized.

@ChristophWurst

This comment was marked as resolved.

@skjnldsv
Copy link
Member

Still relevant @ChristophWurst ?

@kesselb
Copy link
Contributor

kesselb commented Aug 14, 2019

Yes. See #16471 for example. We should not reach return $response if undefined.

@kesselb kesselb added 1. to develop Accepted and waiting to be taken care of and removed needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Aug 14, 2019
@skjnldsv
Copy link
Member

Nice!
So duplicate or relevant of #16471 @kesselb ?

@kesselb
Copy link
Contributor

kesselb commented Aug 14, 2019

Relevant but not a duplicate. #16471 is running into the undefined return but the problem is with sabre/dav or alfresco. This issue is about the incomplete error handling.

@szaimen

This comment has been minimized.

@szaimen

This comment was marked as resolved.

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Jan 9, 2023
@szaimen szaimen closed this as completed Mar 6, 2023
@kesselb kesselb reopened this Mar 7, 2023
@kesselb kesselb added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info labels Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants