- Issue created by @isa.bel
- last update
6 months ago 529 pass, 43 fail
Creating the feed with one user from one group (e.g. root), and unlocking it with a user from another group (e.g. www-data) will cause issues with the feed unlock/import.
This is caused by the fact that the feed is being released and the states are being cleared and just after that, the file http_fetcher file is being deleted. If the user doesn't have enough permissions to delete the file, the feed will be given as "unlocked", but the http_fetcher still exists.
Nevertheless, if the user with fewer permissions tries to import the feed again, it won't throw any issues about the feed being locked, it will just prevent the feed from working due to permissions issues.
1. Use the drush command to import the feed with a root user.
2. Cancel it before finishing the import, which will lock the feed
3. Now use the drush command to unlock the feed with a user with fewer permissions (such as www-data)
4. Try to run the unlock command with the root user, it will show this message: "[notice] This feed is already unlocked."
5. Now try to run the import with the www-data user
Change the order of the code logic, first try to delete the file, to then release the feed and clear states.
Active
Code