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

Check if we have a proper fileinfo #14437

Merged
merged 2 commits into from
Feb 27, 2015
Merged

Check if we have a proper fileinfo #14437

merged 2 commits into from
Feb 27, 2015

Conversation

icewind1991
Copy link
Contributor

@PVince81
Copy link
Contributor

Makes sense 👍

@@ -60,11 +64,21 @@ public function __construct($root, $view, $path) {
/**
* Returns the matching file info
*
* @return \OCP\Files\FileInfo
* @return FileInfo
* @throws InvalidPathException
Copy link
Member

Choose a reason for hiding this comment

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

PHPDoc on the interface has to be adjusted as well - behavior-wise a breaking change which has to be documented in the 8.1 features wiki - https://github.com/owncloud/core/wiki/ownCloud-8.1-Features#public-api

Copy link
Contributor

Choose a reason for hiding this comment

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

@icewind1991 This needs to be addressed ;)

@DeepDiver1975
Copy link
Member

Do unit tests cover this case? THX

@oparoz
Copy link
Contributor

oparoz commented Feb 24, 2015

According to this message, this doesn't fix the problem
owncloud/gallery#28 (comment)

Fatal error: Call to a member function getId() on a non-object in /var/www/owncloud/lib/private/files/node/node.php on line 156

@DeepDiver1975 DeepDiver1975 added this to the 8.1-next milestone Feb 25, 2015
@DeepDiver1975
Copy link
Member

@icewind1991 please have a look - THX

@DeepDiver1975
Copy link
Member

Fatal error: Call to a member function getId() on a non-object in /var/www/owncloud/lib/private/files/node/node.php on line 156

That error message does not match up with the code in this pr

@oparoz
Copy link
Contributor

oparoz commented Feb 25, 2015

@DeepDiver1975 - Probably because the patch was applied on stable8

@icewind1991
Copy link
Contributor Author

Added unit test

@vader2014
Copy link

correct, i applied the change to stable8

@DeepDiver1975
Copy link
Member

Added unit test

🙈

@icewind1991
Copy link
Contributor Author

Actually push unit test....

@scrutinizer-notifier
Copy link

The inspection completed: 3 new issues, 2 updated code elements

@ghost
Copy link

ghost commented Feb 26, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/9995/
Test PASSed.

@MorrisJobke
Copy link
Contributor

Beside my comment above: 👍

@DeepDiver1975
Copy link
Member

👍

DeepDiver1975 added a commit that referenced this pull request Feb 27, 2015
@DeepDiver1975 DeepDiver1975 merged commit 7fe07e9 into master Feb 27, 2015
@DeepDiver1975 DeepDiver1975 deleted the node-check-fileinfo branch February 27, 2015 10:56
@DeepDiver1975
Copy link
Member

we need a backport pr for stable8 @nickvergessen can you please help out here? THX

@DeepDiver1975
Copy link
Member

@karlitschek backport requested because original issue was reported against oc8 - THX

@karlitschek
Copy link
Contributor

backport is fine

@MorrisJobke
Copy link
Contributor

Backport is in #14568

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OC\Files\Node\Node doesn't check it has a valid FileInfo object before working on it
8 participants