nextcloud / groupfolders

๐Ÿ“๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Admin-configured folders shared by everyone in a group. https://github.com/nextcloud-releases/groupfolders
https://apps.nextcloud.com/apps/groupfolders
279 stars 85 forks source link

Version Naming not working with group folder in NC 28.0.1 #2717

Open colonelm opened 9 months ago

colonelm commented 9 months ago

Steps to reproduce

  1. Upload a PNG image
  2. Edit the image and save to create a new version
  3. Try giving name to the version

Expected behaviour

The version name should be set

Actual behaviour

Error msg saying: Could not set version name

It is observed that entries are not created in oc_files_versions table corresponding to each new version of the file created. Entry is available in oc_filecache table. Issue observed after upgrading. Files outside group folder works fine.

Server configuration

Operating system: Debian GNU/Linux

Web server: Nginx

Database: MariaDB (10.5.21)

PHP version: 8.0.30 Nextcloud version: (see Nextcloud admin page) NC 28.0.1

Group folders version: 16.0.1

Updated from an older Nextcloud/ownCloud or fresh install: Upgraded from 27

Where did you install Nextcloud from: Web installer

Are you using external storage, if yes which one: local/s3/smb/sftp/... no

Are you using encryption: yes/no no Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/... Keycloak

Client configuration

Browser:

Operating system:

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log {"reqId":"eps5LgdmDu4E6sPO6bGB","level":1,"time":"2024-01-04T03:48:59+00:00","remoteAddr":"192.241.231.47","user":"--","app":"no app in context","method":"GET","url":"/login","message":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"28.0.1.1","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":380,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":121,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/apps/password_policy/lib/Capabilities.php","line":58,"function":"linkToOCSRouteAbsolute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Password_Policy\\Capabilities","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":264,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":142,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":845,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":37,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":144,"message":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"ocs.password_policy.API.generate\" as such route does not exist."}} {"reqId":"eps5LgdmDu4E6sPO6bGB","level":1,"time":"2024-01-04T03:48:59+00:00","remoteAddr":"192.241.231.47","user":"--","app":"no app in context","method":"GET","url":"/login","message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"28.0.1.1","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":380,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":121,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/apps/password_policy/lib/Capabilities.php","line":59,"function":"linkToOCSRouteAbsolute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Password_Policy\\Capabilities","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":264,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":142,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":845,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1200,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":37,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":144,"message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist."}} ``` Insert your Nextcloud log here ```

Browser log

Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
joshtrichards commented 2 weeks ago

I can't reproduce this behavior (it works for me). Are you still able to reproduce this behavior today with newer Nextcloud Server and groupfolders versions?

If so, can you check your browser inspector while reproducing? The Network tab and the Console tabs would be of interest.

This was pretty early in the v28 release cycle, with lots of changes, so I'm wondering if this was something already since fixed.