-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
OCP\Files\NotPermittedException: No delete permission for path
logged repeatedly when authenticating against the user_ldap
backend
#10848
Comments
GitMate.io thinks possibly related issues are #2431 (App passwords vanish), #6075 (App Passwords not displayed ), #3873 (Option for more secure app passwords), and #8635 (OCP\Files\NotFoundException related to user's avatar). |
OCP\Files\NotPermittedException: No delete permission for path
logged repeatedly when authenticating against the user_ldap
OCP\Files\NotPermittedException: No delete permission for path
logged repeatedly when authenticating against the user_ldap
OCP\Files\NotPermittedException: No delete permission for path
logged repeatedly when authenticating against the user_ldap
backend
It seems like the server/apps/dav/lib/AppInfo/Application.php Lines 137 to 148 in 2e36069
I'll clear my cache manually, see if that fixes the issue. |
Hum, not much luck clearing my cache (not sure how except for |
Digging further in server/apps/dav/lib/CardDAV/PhotoCache.php Lines 259 to 267 in 2e36069
This uses the MD5 hash of the arguments to name the directory server/apps/dav/lib/CardDAV/PhotoCache.php Lines 156 to 168 in 2e36069
In my case, according to the log above,
but a folder by that name doesn't actually exist (and the permissions are correct)
So it seems Could it be that |
We had the same problem. The problem emerges when you have a user-image (avatar) in your Profile on the LDAP Server. Removing the avatar from the LDAP solves the problem. |
Ah, yep, I can confirm that this happens to me on an instance where some users have an LDAP user-image. I'm not sure removing the avatar is a good solution, but it does help confirming it as the cause. |
Same here: LDAP avatar works but generates this warning … |
Which Nextcloud version are you running? I cannot reproduce it on 14.0.6. |
Still the case with 15.0.2 {
"method" : "GET",
"app" : "no app in context",
"url" : "/index.php/204",
"remoteAddr" : "XX.YY.ZZ.FF",
"reqId" : "**removed**",
"level" : 3,
"time" : "2019-01-26T16:14:44+00:00",
"userAgent" : "Mozilla/5.0 (Android) ownCloud-android/3.4.1",
"message" : {
"CustomMessage" : "--",
"Code" : 0,
"File" : "/usr/local/www/nextcloud/lib/private/Files/Node/Folder.php",
"Exception" : "OCP\\Files\\NotPermittedException",
"Message" : "No delete permission for path",
"Trace" : [
{
"class" : "OC\\Files\\Node\\Folder",
"file" : "/usr/local/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php",
"line" : 65,
"function" : "delete",
"type" : "->",
"args" : []
},
{
"class" : "OC\\Files\\SimpleFS\\SimpleFolder",
"file" : "/usr/local/www/nextcloud/apps-pkg/dav/lib/CardDAV/PhotoCache.php",
"line" : 277,
"function" : "delete",
"args" : [],
"type" : "->"
},
{
"function" : "delete",
"type" : "->",
"args" : [
"4",
"LDAP:myuser.vcf"
],
"class" : "OCA\\DAV\\CardDAV\\PhotoCache",
"line" : 144,
"file" : "/usr/local/www/nextcloud/apps-pkg/dav/lib/AppInfo/Application.php"
},
{
"args" : [
"*** sensitive parameters replaced ***"
],
"type" : "->",
"function" : "OCA\\DAV\\AppInfo\\{closure}",
"line" : 212,
"file" : "/usr/local/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"class" : "OCA\\DAV\\AppInfo\\Application"
},
{
"file" : "/usr/local/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line" : 44,
"class" : "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"args" : [
[
{
"__class__" : "Closure"
},
{
"__class__" : "Closure"
}
],
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
],
"type" : "->",
"function" : "doDispatch"
},
{
"class" : "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"file" : "/usr/local/www/nextcloud/apps-pkg/dav/lib/CardDAV/CardDavBackend.php",
"line" : 699,
"function" : "dispatch",
"args" : [
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
],
"type" : "->"
},
{
"args" : [
"4",
"LDAP:dgeo.vcf",
"BEGIN:VCARD\r\nVERSION:3.0\r\nPRODID:-//Sabre//Sabre VObject 4.1.6//EN\r\nUID:myuser\r\nFN:Full Name (myuser)\r\nN:(myuser);Full;Name;;\r\nEMAIL;TYPE=OTHER:myusers@mail.address\r\nPHOTO;ENCODING=b;TYPE=image/jpeg:/**base64 data**\r\nCLOUD:myusers@mail.address\r\nEND:VCARD\r\n"
],
"type" : "->",
"function" : "updateCard",
"line" : 284,
"file" : "/usr/local/www/nextcloud/apps-pkg/dav/lib/CardDAV/SyncService.php",
"class" : "OCA\\DAV\\CardDAV\\CardDavBackend"
},
{
"args" : [
"*** sensitive parameter replaced ***"
],
"type" : "->",
"function" : "updateUser",
"line" : 144,
"file" : "/usr/local/www/nextcloud/apps-pkg/dav/lib/HookManager.php",
"class" : "OCA\\DAV\\CardDAV\\SyncService"
},
{
"args" : [
{
"old_value" : "*** sensitive parameter replaced ***",
"user" : "*** sensitive parameter replaced ***",
"value" : "*** sensitive parameter replaced ***",
"run" : true,
"feature" : "*** sensitive parameter replaced ***"
}
],
"type" : "->",
"function" : "changeUser",
"line" : 106,
"file" : "/usr/local/www/nextcloud/lib/private/legacy/hook.php",
"class" : "OCA\\DAV\\HookManager"
},
{
"args" : [
"OC_User",
"changeUser",
{
"feature" : "*** sensitive parameter replaced ***",
"run" : true,
"value" : "*** sensitive parameter replaced ***",
"user" : "*** sensitive parameter replaced ***",
"old_value" : "*** sensitive parameter replaced ***"
}
],
"type" : "::",
"function" : "emit",
"file" : "/usr/local/www/nextcloud/lib/private/Server.php",
"line" : 429,
"class" : "OC_Hook"
},
{
"function" : "OC\\{closure}",
"class" : "OC\\Server",
"args" : [
"*** sensitive parameters replaced ***"
],
"type" : "->"
},
{
"line" : 99,
"args" : [
{
"__class__" : "Closure"
},
[
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
],
"file" : "/usr/local/www/nextcloud/lib/private/Hooks/EmitterTrait.php",
"function" : "call_user_func_array"
},
{
"class" : "OC\\Hooks\\BasicEmitter",
"file" : "/usr/local/www/nextcloud/lib/private/Hooks/PublicEmitter.php",
"line" : 36,
"function" : "emit",
"args" : [
"\\OC\\User",
"changeUser",
[
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
],
"type" : "->"
},
{
"args" : [
"\\OC\\User",
"changeUser",
[
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
],
"type" : "->",
"function" : "emit",
"line" : 459,
"file" : "/usr/local/www/nextcloud/lib/private/User/User.php",
"class" : "OC\\Hooks\\PublicEmitter"
},
{
"function" : "triggerChange",
"args" : [
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
],
"type" : "->",
"class" : "OC\\User\\User",
"line" : 194,
"file" : "/usr/local/www/nextcloud/lib/private/Avatar.php"
},
{
"class" : "OC\\Avatar",
"file" : "/usr/local/www/nextcloud/apps-pkg/user_ldap/lib/User/User.php",
"line" : 607,
"function" : "set",
"args" : [
null
],
"type" : "->"
},
{
"class" : "OCA\\User_LDAP\\User\\User",
"line" : 582,
"file" : "/usr/local/www/nextcloud/apps-pkg/user_ldap/lib/User/User.php",
"function" : "setOwnCloudAvatar",
"args" : [],
"type" : "->"
},
{
"function" : "updateAvatar",
"type" : "->",
"args" : [],
"class" : "OCA\\User_LDAP\\User\\User",
"line" : 562,
"file" : "/usr/local/www/nextcloud/apps-pkg/user_ldap/lib/User/User.php"
},
{
"function" : "updateAvatarPostLogin",
"args" : [
{
"uid" : "*** sensitive parameter replaced ***",
"password" : "*** sensitive parameter replaced ***",
"run" : true
}
],
"type" : "->",
"class" : "OCA\\User_LDAP\\User\\User",
"line" : 106,
"file" : "/usr/local/www/nextcloud/lib/private/legacy/hook.php"
},
{
"function" : "emit",
"args" : [
"OC_User",
"post_login",
{
"run" : true,
"password" : "*** sensitive parameter replaced ***",
"uid" : "*** sensitive parameter replaced ***"
}
],
"type" : "::",
"class" : "OC_Hook",
"file" : "/usr/local/www/nextcloud/lib/private/Server.php",
"line" : 418
},
{
"args" : [
"*** sensitive parameters replaced ***"
],
"type" : "->",
"class" : "OC\\Server",
"function" : "OC\\{closure}"
},
{
"file" : "/usr/local/www/nextcloud/lib/private/Hooks/EmitterTrait.php",
"line" : 99,
"args" : [
{
"__class__" : "Closure"
},
[
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
],
"function" : "call_user_func_array"
},
{
"file" : "/usr/local/www/nextcloud/lib/private/Hooks/PublicEmitter.php",
"line" : 36,
"class" : "OC\\Hooks\\BasicEmitter",
"type" : "->",
"args" : [
"\\OC\\User",
"postLogin",
[
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
],
"function" : "emit"
},
{
"class" : "OC\\Hooks\\PublicEmitter",
"file" : "/usr/local/www/nextcloud/lib/private/User/Session.php",
"line" : 371,
"function" : "emit",
"args" : [
"\\OC\\User",
"postLogin",
[
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
]
],
"type" : "->"
},
{
"function" : "completeLogin",
"args" : [
"*** sensitive parameters replaced ***"
],
"type" : "->",
"class" : "OC\\User\\Session",
"line" : 617,
"file" : "/usr/local/www/nextcloud/lib/private/User/Session.php"
},
{
"function" : "loginWithToken",
"args" : [
"*** sensitive parameters replaced ***"
],
"type" : "->",
"class" : "OC\\User\\Session",
"file" : "/usr/local/www/nextcloud/lib/private/User/Session.php",
"line" : 336
},
{
"args" : [
"*** sensitive parameters replaced ***"
],
"type" : "->",
"function" : "login",
"line" : 420,
"file" : "/usr/local/www/nextcloud/lib/private/User/Session.php",
"class" : "OC\\User\\Session"
},
{
"function" : "logClientIn",
"type" : "->",
"args" : [
"*** sensitive parameters replaced ***"
],
"class" : "OC\\User\\Session",
"line" : 537,
"file" : "/usr/local/www/nextcloud/lib/private/User/Session.php"
},
{
"class" : "OC\\User\\Session",
"file" : "/usr/local/www/nextcloud/lib/base.php",
"line" : 1040,
"function" : "tryBasicAuthLogin",
"args" : [
"*** sensitive parameter replaced ***",
"*** sensitive parameter replaced ***"
],
"type" : "->"
},
{
"function" : "handleLogin",
"type" : "::",
"args" : [
"*** sensitive parameter replaced ***"
],
"class" : "OC",
"line" : 976,
"file" : "/usr/local/www/nextcloud/lib/base.php"
},
{
"function" : "handleRequest",
"args" : [],
"type" : "::",
"class" : "OC",
"file" : "/usr/local/www/nextcloud/index.php",
"line" : 42
}
],
"Line" : 343
},
"version" : "15.0.2.0",
"user" : "myuser"
} |
What do you think @blizzz ? |
The image is saved in LDAP within the record, so this should not be an issue. |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
@skjnldsv same here |
Steps to reproduce
Use the
user_ldap
backend with a few applications logging in with app passwords.Expected behaviour
No log message.
Actual behaviour
The following message gets printed in the logs very often
Error no app in context OCP\Files\NotPermittedException: No delete permission for path
Server configuration detail
Operating system: OpenBSD 6.3 GENERIC.MP#107 amd64
Webserver: Apache/2.4.29 (Unix) LibreSSL/2.7.2 mod_chroot/0.5 (fpm-fcgi)
Database: mysql 10.0.34
PHP version:
7.0.28
Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, json, mbstring, session, PDO, pdo_sqlite, bz2, posix, readline, Reflection, standard, SimpleXML, sockets, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, Phar, curl, gd, intl, ldap, mcrypt, mysqli, pdo_mysql, pspell, redis, zip, Zend OPcache
Nextcloud version: 13.0.5 - 13.0.5.2
Updated from an older Nextcloud/ownCloud or fresh install: updated
Where did you install Nextcloud from: openbsd ports (hence the invalid signature below; expected)
Signing status
Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[.htaccess] => Array
(
[expected] => 60cb065543a840e650166fdb80dae8315e8d62f843947b34e080fbeb5d61780f78d1a875d0320876f6ae5ca607e192d24972a6017bcaa530dd487c7f3cf81f9c
[current] => da8e0075f23227b107fc705aa1b20378107d3a1c195d96ed13e5f4f25c38d6c660aab75be183ae5799a4ff7eae0ea739a14c944430ee8bb9e9a824235aa136eb
)
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: no
Are you using encryption: true
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this par if not used)
Client configuration
Browser: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
Operating system: ArchLinux
Logs
Browser log
Nextcloud log
Browser log
Not relevant (server issue)
The text was updated successfully, but these errors were encountered: