Comments (12)
Hey!
Any errors in your nextcloud.log
?
When you say upload, for the guest, you mean via web? Or via a client?
from guests.
Hello,
Thank you for your feedback @skjnldsv .
Yes, in the Nextcloud.log
file I have some information. What I mean is that when I try to create a folder or upload a file, nothing appears in this log file. However, when I try to create a text file, I do have logs that appear. Here are the logs in question:
{"reqId":"1iJDYtUvBK1tyjJbUq92","level":3,"time":"2024-03-01T08:37:02+00:00","remoteAddr":"MY_IP_ADDRESS»user":"[email protected]","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/files/api/v1/templates/create","message":"No create permission for path \"Nouveau fichier texte.md\"","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0","version":"28.0.2.5","exception":{"Exception":"OCP\\Files\\NotPermittedException","Message":"No create permission for path \"Nouveau fichier texte.md\"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Template/TemplateManager.php","line":162,"function":"newFile","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/files/lib/Controller/TemplateController.php","line":80,"function":"createFromTemplate","class":"OC\\Files\\Template\\TemplateManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"create","class":"OCA\\Files\\Controller\\TemplateController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php","line":23,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","Line":199,"message":"No create permission for path \"Nouveau fichier texte.md\"","exception":{},"CustomMessage":"No create permission for path \"Nouveau fichier texte.md\""}}
When I say file upload, I mean file upload via web interface. The tests are carried out via the web interface. I've never run the tests via the client.
For your information, the tests are performed from different browsers (Firefox and Google Chrome). Furthermore, the logs I provided in my initial message are logs that appear in the file /var/log/apache2/nextcloud.access
Also, here's my Nextcloud version:
sudo -u www-data php occ -V
Nextcloud 28.0.2
Version of Guests plugin:
guests: 3.0.1
Thank you.
from guests.
What quota has your guest user?
from guests.
When I create a user with Guests there is no default quota, it doesn't seem to be taken into account. I change it manually to 10GB.
from guests.
Can you do an occ user:info your-guest-userid
? :)
from guests.
I just tested it, and it works fine, if I change the quota of the quest to something specific, it works.
Can you upgrade to latest 28.0.3
please? :)
from guests.
I am reaching out to inform you that, despite updating our Nextcloud server to version 28.0.3, the issue faced by Guest users persists. These users are still unable to create content (files, folders) or upload files to the server.
Disturbingly, the majority of these actions do not generate any error messages in the logs accessible through the Nextcloud web interface. However, an exception occurs when attempting to create text files, where we receive the following error: NotPermittedException No create permission for path "Nouveau fichier texte.md"
.
I have double-checked the settings of the Guest plugin, ensuring that all necessary applications were enabled for Guest accounts, but, unfortunately, this has not resolved the issue.
For reference, here are the details of the concerned Guest user account:
sudo -u www-data php occ user:info [email protected]
- user_id: [email protected]
- display_name: KABIA TEST
- email: [email protected]
- cloud_id: [email protected]@my-nextcloud.fr
- enabled: true
- groups:
- guest_app
- quota: 10 GB
- storage:
- free: 10737418240
- used: 0
- total: 10737418240
- relative: 0
- quota: 10737418240
- last_seen: 2024-03-01T08:36:25+00:00
- user_directory: /data/nextcloud-data/[email protected]
- backend: Guests
I appreciate your prompt attention and support in resolving this issue. Should you require any additional information or specific logs to diagnose this problem, please do not hesitate to ask.
Thank you in advance for your help.
Best regards,
from guests.
I will need a screenshot of your network requests.
Before you do anything, still on the development tools, there is a tab called network
. Click on it and then the xhr filter. Do your action and screenshot the network log like this:
from guests.
Hello,
I'm sharing the observations you requested. I tried to perform the same actions discussed on the Guest account. Here are the three actions I undertook in order:
- Creation of a text file
- Creation of a folder
- Upload of a file
At each step, I received a 403 response
for my requests. This indicates that access was denied for these specific actions on the Guest account.
Thank you in advance for your feedback and assistance!
Best regards,
from guests.
Can you post the content of the first 403? (or all of them) ?
Click on it, and you'll see the response tab
from guests.
Here are the results of the various queries in the following order:
- Folder creation
- File creation
- Upload a file (an image)
New folder :
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\Forbidden</s:exception>
<s:message/>
</d:error>
New document :
{
"ocs": {
"meta": {
"status": "failure",
"statuscode": 403,
"message": "Impossible de créer le fichier à partir du modèle"
},
"data": []
}
}
Upload file :
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\Forbidden</s:exception>
<s:message/>
</d:error>
from guests.
Can confirm that this is an issue in NC28.
from guests.
Related Issues (20)
- Guests needs application system folders
- Guests App will not be compatible with NC29 in its current state
- `occ guests:list` execute return type exception
- Guests have no access to shared folders in NC28 HOT 5
- Guests cannot invite other guests inside their circle to planned meetings
- App restrictions in the admin UI don't wrap HOT 1
- Deleted files do not show up in trashbin of guest users
- Guest users cannot upload files in their root folders even if they have quota HOT 1
- Shared Calenders for Guest Users HOT 1
- Custom permissions to disallow downloads doesn't allow files to be opened in readers
- Guests w/o password to permit auto-login via a link
- Convert existing users to guest users HOT 1
- Missing index for guest display name lookup
- when share_folder parameter is set in config.php, guests are unable to see incoming shares as the share_folder define cannot be created HOT 2
- How to add guests to Collectives HOT 3
- Sharing folders will sent email share accept invites, which are causing issues
- Not able to create or assign user to Guests group HOT 2
- New guest transfer feature : "conversion" notion is better (IMO) than "transfer" notion + quota remains zero HOT 9
- After transfer process, the new regular user still has a "0" quota
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guests.