nextcloud / viewer

🖼 Simple file viewer with slideshow for media
GNU Affero General Public License v3.0
98 stars 55 forks source link

Files image-viewer does not respect sort #963

Closed NCLI closed 3 years ago

NCLI commented 3 years ago

How to use GitHub

Steps to reproduce

  1. Open a folder containing images
  2. Sort by name, observe that photos are sorted correctly.
  3. Open an limage in the image-viewer, and press the left arrow to go to the next image.
  4. Observe that sort is not respected.

Expected behaviour

Images should be sorted the same way in the file-browser and to image-viewer.

Actual behaviour

Images are sorted correctly in the file-browser. In the image-viewer, files are sorted not just differently, but frankly illogically.

21 follows 20, 18 follows 17, but 90, not 10, follows 9.

Server configuration

Operating system: Debian Buster Web server: Apache Database: Postgresql 11.9 PHP version: 7.4.11 Nextcloud version: (see Nextcloud admin page) 20.0.6 Updated from an older Nextcloud/ownCloud or fresh install: Updated Where did you install Nextcloud from: Nextcloud.com Signing status:

Signing status No errors have been found.

List of activated apps:

Activated apps Enabled: - accessibility: 1.6.0 - activity: 2.13.4 - bruteforcesettings: 2.0.1 - calendar: 2.1.3 - camerarawpreviews: 0.7.10 - cloud_federation_api: 1.3.0 - comments: 1.10.0 - contacts: 3.4.3 - contactsinteraction: 1.1.0 - dashboard: 7.0.0 - dav: 1.16.2 - drawio: 0.9.8 - federatedfilesharing: 1.10.2 - federation: 1.10.1 - files: 1.15.0 - files_pdfviewer: 2.0.1 - files_rightclick: 0.17.0 - files_sharing: 1.12.2 - files_trackdownloads: 1.9.0 - files_trashbin: 1.10.1 - files_versions: 1.13.0 - files_videoplayer: 1.9.0 - firstrunwizard: 2.9.0 - groupfolders: 8.2.0 - logreader: 2.5.0 - lookup_server_connector: 1.8.0 - mail: 1.8.0 - maps: 0.1.8 - nextcloud_announcements: 1.9.0 - notes: 4.0.2 - notifications: 2.8.0 - oauth2: 1.8.0 - oidc_login: 1.6.1 - password_policy: 1.10.1 - passwords: 2021.1.0 - phonetrack: 0.6.5 - photos: 1.2.3 - privacy: 1.4.0 - provisioning_api: 1.10.0 - recommendations: 0.8.0 - richdocuments: 3.7.14 - serverinfo: 1.10.0 - settings: 1.2.0 - sharebymail: 1.10.0 - spreed: 10.0.5 - support: 1.3.0 - survey_client: 1.8.0 - suspicious_login: 3.2.1 - systemtags: 1.10.0 - text: 3.1.0 - theming: 1.11.0 - twofactor_backupcodes: 1.9.0 - twofactor_gateway: 0.17.0 - twofactor_nextcloud_notification: 3.1.0 - twofactor_totp: 5.0.0 - twofactor_u2f: 6.1.0 - updatenotification: 1.10.0 - user_ldap: 1.10.2 - user_status: 1.0.1 - viewer: 1.4.0 - weather_status: 1.0.0 - workflowengine: 2.2.0 Disabled: - admin_audit - encryption - files_external - richdocumentscode

Nextcloud configuration:

Nextcloud configuration { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "10.0.0.248", "nextcloud.ncli-design.com" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "20.0.6.1", "overwrite.cli.url": "http:\/\/10.0.0.248", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "maintenance": false, "mail_smtpmode": "smtp", "mail_smtpsecure": "tls", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "loglevel": 2, "memcache.local": "\\OC\\Memcache\\APCu", "twofactor_enforced": "true", "twofactor_enforced_groups": [], "twofactor_enforced_excluded_groups": [], "theme": "", "updater.release.channel": "stable", "app_install_overwrite": [ "phonetrack", "groupfolders", "caniupdate" ], "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory" } }

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

Are you using encryption: no

Are you using an external user-backend, if yes which one: No

LDAP configuration (delete this part if not used)

LDAP config ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your Nextcloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. ```

Client configuration

Browser: Firefox 85 Operating system: Arch Linux

Logs

Web server error log

Web server error log [Sun Feb 07 00:00:02.201896 2021] [mpm_prefork:notice] [pid 488] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations [Sun Feb 07 00:00:02.201926 2021] [core:notice] [pid 488] AH00094: Command line: '/usr/sbin/apache2' [Sun Feb 07 10:52:52.680920 2021] [access_compat:error] [pid 10392] [client 10.0.0.251:38228] AH01797: client denied by server configuration: /var/www/nextcloud/config [Sun Feb 07 16:16:33.132542 2021] [access_compat:error] [pid 10392] [client 10.0.0.251:41430] AH01797: client denied by server configuration: /var/www/nextcloud/config

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` 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) ... ```
skjnldsv commented 3 years ago

https://github.com/nextcloud/viewer/issues/366