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

[DEBUG] Log debug info for share (2) issue #26355

Closed
wants to merge 4 commits into from

Conversation

PVince81
Copy link
Contributor

⛔ DON'T MERGE, DEBUG ONLY ⛔

@mention-bot
Copy link

@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @icewind1991, @rullzer and @schiessle to be potential reviewers.

@PVince81
Copy link
Contributor Author

Example output for a legitimate duplicate:

{"reqId":"5OZeu218FfwbpELE7Bnt","remoteAddr":"127.0.0.1","app":"DEBUG","message":"Share two DEBUG: {\"stack\":[{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/SharedMount.php\",\"line\":97,\"function\":\"generateUniqueTarget\",\"class\":\"OCA\\\\Files_Sharing\\\\SharedMount\",\"object\":{},\"type\":\"->\",\"args\":[\"\\\/test\",{},[]]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/SharedMount.php\",\"line\":71,\"function\":\"verifyMountPoint\",\"class\":\"OCA\\\\Files_Sharing\\\\SharedMount\",\"object\":{},\"type\":\"->\",\"args\":[{},[]]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/MountProvider.php\",\"line\":92,\"function\":\"__construct\",\"class\":\"OCA\\\\Files_Sharing\\\\SharedMount\",\"object\":{},\"type\":\"->\",\"args\":[\"\\\\OC\\\\Files\\\\Storage\\\\Shared\",[],{\"user\":\"user1\",\"superShare\":{},\"groupedShares\":[{}]},{}]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Config\\\/MountProviderCollection.php\",\"line\":76,\"function\":\"getMountsForUser\",\"class\":\"OCA\\\\Files_Sharing\\\\MountProvider\",\"object\":{},\"type\":\"->\",\"args\":[{},{}]},{\"function\":\"OC\\\\Files\\\\Config\\\\{closure}\",\"class\":\"OC\\\\Files\\\\Config\\\\MountProviderCollection\",\"object\":{},\"type\":\"->\",\"args\":[{}]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Config\\\/MountProviderCollection.php\",\"line\":77,\"function\":\"array_map\",\"args\":[{},[{},{},{}]]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Filesystem.php\",\"line\":422,\"function\":\"getMountsForUser\",\"class\":\"OC\\\\Files\\\\Config\\\\MountProviderCollection\",\"object\":{},\"type\":\"->\",\"args\":[{}]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php\",\"line\":91,\"function\":\"initMountPoints\",\"class\":\"OC\\\\Files\\\\Filesystem\",\"type\":\"::\",\"args\":[\"user1\"]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/core\\\/Controller\\\/AvatarController.php\",\"line\":117,\"function\":\"getAvatar\",\"class\":\"OC\\\\AvatarManager\",\"object\":{},\"type\":\"->\",\"args\":[\"user1\"]},{\"function\":\"getAvatar\",\"class\":\"OC\\\\Core\\\\Controller\\\\AvatarController\",\"object\":{},\"type\":\"->\",\"args\":[\"user1\",32]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php\",\"line\":159,\"function\":\"call_user_func_array\",\"args\":[[{},\"getAvatar\"],[\"user1\",32]]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php\",\"line\":89,\"function\":\"executeController\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"object\":{},\"type\":\"->\",\"args\":[{},\"getAvatar\"]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php\",\"line\":110,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"object\":{},\"type\":\"->\",\"args\":[{},\"getAvatar\"]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php\",\"line\":46,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\",\"args\":[\"AvatarController\",\"getAvatar\",{},{\"userId\":\"user1\",\"size\":\"32\",\"_route\":\"core.avatar.getAvatar\"}]},{\"function\":\"__invoke\",\"class\":\"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler\",\"object\":{},\"type\":\"->\",\"args\":[{\"userId\":\"user1\",\"size\":\"32\",\"_route\":\"core.avatar.getAvatar\"}]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php\",\"line\":280,\"function\":\"call_user_func\",\"args\":[{},{\"userId\":\"user1\",\"size\":\"32\",\"_route\":\"core.avatar.getAvatar\"}]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/lib\\\/base.php\",\"line\":891,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"object\":{},\"type\":\"->\",\"args\":[\"\\\/avatar\\\/user1\\\/32\"]},{\"file\":\"\\\/srv\\\/www\\\/htdocs\\\/owncloud\\\/index.php\",\"line\":39,\"function\":\"handleRequest\",\"class\":\"OC\",\"type\":\"::\",\"args\":[]}],\"user\":\"user1\",\"path\":\"\\\/test (2)\",\"url\":\"\\\/owncloud\\\/index.php\\\/avatar\\\/user1\\\/32\"}","level":0,"time":"2016-10-12T12:30:36+00:00","method":"GET","url":"\/owncloud\/index.php\/avatar\/user1\/32","user":"admin"}

Vincent Petry added 3 commits October 12, 2016 15:15
In case of unplanned recursion, avoiding to call getPath() and using
the cached value is likely safer.

It should also increase performance slightly by avoiding refinding the
source path.
@PVince81 PVince81 closed this Oct 19, 2016
@PVince81 PVince81 deleted the debug-sharetwo-stack branch October 19, 2016 08:23
@lock
Copy link

lock bot commented Aug 4, 2019

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.

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

Successfully merging this pull request may close these issues.

2 participants