Giter Site home page Giter Site logo

Comments (12)

skjnldsv avatar skjnldsv commented on June 20, 2024

Hey!

Any errors in your nextcloud.log ?
When you say upload, for the guest, you mean via web? Or via a client?

from guests.

kabia06 avatar kabia06 commented on June 20, 2024

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.

skjnldsv avatar skjnldsv commented on June 20, 2024

What quota has your guest user?

from guests.

kabia06 avatar kabia06 commented on June 20, 2024

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.

skjnldsv avatar skjnldsv commented on June 20, 2024

Can you do an occ user:info your-guest-userid ? :)

from guests.

skjnldsv avatar skjnldsv commented on June 20, 2024

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.

kabia06 avatar kabia06 commented on June 20, 2024

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.

skjnldsv avatar skjnldsv commented on June 20, 2024

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:
capture d ecran_2018-09-27_21-49-46

from guests.

kabia06 avatar kabia06 commented on June 20, 2024

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:

  1. Creation of a text file
  2. Creation of a folder
  3. Upload of a file
Capture d’écran 2024-03-06 à 10 00 52

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.

skjnldsv avatar skjnldsv commented on June 20, 2024

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.

kabia06 avatar kabia06 commented on June 20, 2024

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.

usselite avatar usselite commented on June 20, 2024

Can confirm that this is an issue in NC28.

from guests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.