-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[stable9] minor smb logging, do not use deprecated method #25994
Conversation
@butonic, thanks for your PR! By analyzing the annotation information on this pull request, we identified @icewind1991, @jmaciasportela, @jvillafanez and @Xenopathic to be potential reviewers |
@@ -410,7 +412,7 @@ public function fopen($path, $mode) { | |||
if (!$this->isCreatable(dirname($path))) { | |||
break; | |||
} | |||
$tmpFile = \OCP\Files::tmpFile($ext); | |||
$tmpFile = \OC::$server->getTempManager()->getTemporaryFile($ext); |
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.
@butonic interrresting. Why we are creating file with the name which is either strrpos($path, '.')
or empty string in the first place?
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.
and what happens if any directory in $path
has a dot: /something/that/is/not.supposed/tohappen
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.
um from phpdoc * @param string $postFix Postfix appended to the temporary file name
. so $ext is just appended to have the same filetype if it is given. That being said /something/that/is/not.supposed/tohappen
is a valid point. I guess
- dropping the $ext is fine.
- add a PR for a unit test that extends directory providers with
/something/that/is/not.supposed/tohappen
@VicDeo good catch!
any update ? would move to 9.0.6 |
d665c9d
to
95efe7d
Compare
95efe7d
to
d0152b4
Compare
tests are coming out green. @PVince81 @VicDeo @jvillafanez |
I take that back:
investigating |
Changes look good expect for the failing test. |
Moving to 9.0.7. |
@butonic any update ? |
is this backport still worth it ? |
no feedback since sep 2016, closing |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
add log for the actual smb implementation that is used (libsmbclient vs smbclient)
already contained in master and stable9 PRs
cc @felixboehm @DeepDiver1975 @PVince81