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

Closed
ChristophWurst opened this issue Sep 10, 2018 · 8 comments · Fixed by #49146
Closed

Error: undefined variable $response in DAV storage #11140

ChristophWurst opened this issue Sep 10, 2018 · 8 comments · Fixed by #49146

Comments

@ChristophWurst
Copy link
Member

ChristophWurst commented Sep 10, 2018

Steps to reproduce

  1. Call
    protected function convertException(Exception $e, $path = '') {
  2. Hit
    // TODO: only log for now, but in the future need to wrap/rethrow exception
  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
@susnux susnux added the bug label Aug 15, 2024
@skjnldsv skjnldsv self-assigned this Nov 8, 2024
@skjnldsv skjnldsv added 2. developing Work in progress 3. to review Waiting for reviews and removed 1. to develop Accepted and waiting to be taken care of 2. developing Work in progress labels Nov 8, 2024
@skjnldsv skjnldsv added this to the Nextcloud 31 milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants