server icon indicating copy to clipboard operation
server copied to clipboard

when deleting by accident a user group the 'undelete' banner on the top is to short and then there is no recovery

Open JK74 opened this issue 9 years ago • 10 comments

Steps to reproduce

  1. make a user group
  2. go to group overview
  3. hit the trash can behind the group will delete the group
  4. a pop-up at the top of the browser shows up for just 1 or 2 sec: test_group_undelete
  5. however if you don't click that one in 1 or 2 sec. then its gone and there is no way to recover then

Expected behaviour

  1. show the undelete banner at the top at least for 5-10 seconds
  2. what about an 'trashcan' to undelete user actions (like removing a group or user or whatever database action there might be)

Actual behaviour

the banner below shows up for 1 or 2 second but can easily be missed; and then there is no way to recover. test_group_undelete In this case you have to re-create the group as an admin; add the owners there or let the group manager do it. then the groupmanager has to share the local folder again that he shared originally.

=====================================================================================

General server configuration

Operating system: Linux nextcloud 4.4.0-92-generic #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017 x86_64

Web server: Apache/2.4.18 (Ubuntu) (apache2handler)

Database: mysql 5.7.19

PHP version: 7.0.22-0ubuntu0.16.04.1

PHP-modules loaded
- Core
- date
- libxml
- openssl
- pcre
- zlib
- filter
- hash
- Reflection
- SPL
- session
- standard
- apache2handler
- mysqlnd
- PDO
- xml
- apcu
- calendar
- ctype
- curl
- dom
- mbstring
- fileinfo
- ftp
- gd
- gettext
- iconv
- igbinary
- json
- exif
- mysqli
- pdo_mysql
- Phar
- posix
- readline
- redis
- shmop
- SimpleXML
- sockets
- sysvmsg
- sysvsem
- sysvshm
- tokenizer
- wddx
- xmlreader
- xmlwriter
- xsl
- zip
- Zend OPcache

Nextcloud configuration

Nextcloud version: 12.0.2 - 12.0.2.0

**Updated from an older Nextcloud/ownCloud or fresh install: from 11.0 > 11.x > 12.0 > 12.0.1 12.0.2

Where did you install Nextcloud from: local storage

Are you using external storage, if yes which one: Array ( [0] => \OC\Files\Storage\Local [1] => \OCA\Files_External\Lib\Storage\FTP [2] => \OC\Files\Storage\DAV [3] => \OCA\Files_External\Lib\Storage\OwnCloud [4] => \OCA\Files_External\Lib\Storage\SFTP [5] => \OCA\Files_External\Lib\Storage\AmazonS3 [6] => \OCA\Files_External\Lib\Storage\Dropbox [7] => \OCA\Files_External\Lib\Storage\Google [8] => \OCA\Files_External\Lib\Storage\Swift [9] => \OCA\Files_External\Lib\Storage\SFTP [10] => \OCA\Files_External\Lib\Storage\SMB [11] => \OCA\Files_External\Lib\Storage\SMB )

Are you using encryption: no

Are you using an external user-backend, if yes which one: YOUR ANSWER HERE (LDAP/ActiveDirectory/Webdav/...)

Signing status
[]
Enabled apps
- activity: 2.5.2
- admin_audit: 1.2.0
- admin_notifications: 1.0.0
- announcementcenter: 3.1.0
- bruteforcesettings: 1.0.2
- calendar: 1.5.3
- circles: 0.12.4
- comments: 1.2.0
- contacts: 1.5.3
- dav: 1.3.0
- external: 2.0.3
- federatedfilesharing: 1.2.0
- federation: 1.2.0
- files: 1.7.2
- files_automatedtagging: 1.2.2
- files_downloadactivity: 1.1.1
- files_external: 1.3.0
- files_pdfviewer: 1.1.1
- files_retention: 1.1.2
- files_sharing: 1.4.0
- files_texteditor: 2.4.1
- files_trashbin: 1.2.0
- files_versions: 1.5.0
- files_videoplayer: 1.1.0
- firstrunwizard: 2.1
- gallery: 17.0.0
- groupfolders: 1.1.0
- issuetemplate: 0.2.2
- logreader: 2.0.0
- lookup_server_connector: 1.0.0
- nextcloud_announcements: 1.1
- notes: 2.3.1
- notifications: 2.0.0
- oauth2: 1.0.5
- password_policy: 1.2.2
- provisioning_api: 1.2.0
- quota_warning: 1.0.1
- ransomware_protection: 1.0.1
- serverinfo: 1.2.0
- sharebymail: 1.2.0
- spreed: 2.0.1
- survey_client: 1.0.0
- systemtags: 1.2.0
- tasks: 0.9.5
- theming: 1.3.0
- twofactor_backupcodes: 1.1.1
- updatenotification: 1.2.0
- workflowengine: 1.2.0
Disabled apps
- activitylog
- encryption
- files_antivirus
- user_external
- user_ldap
Content of config/config.php
{
    "instanceid": "ocaacnf00r5p",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "xxx.xxx",
        "xxx.xx",
        "192.168.x.x",
        "192.168.x.x"
    ],
    "datadirectory": "\/xxx",
    "overwrite.cli.url": "https:\/\/xxx\/xxx",
    "dbtype": "mysql",
    "version": "12.0.2.0",
    "dbname": "xxx",
    "dbhost": "xxx",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "logtimezone": "Europe\/Berlin",
    "installed": true,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "filelocking.enabled": "true",
    "redis": {
        "host": "\/var\/run\/redis\/redis.sock",
        "port": 0,
        "timeout": 0
    },
    "session_lifetime": 3600,
    "htaccess.RewriteBase": "\/nextcloud",
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_from_address": "noReply",
    "mail_domain": "xxx",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "xxx",
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "loglevel": 0,
    "cron_log": true,
    "log_rotate_size": 104857600,
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\Movie"
    ],
    "preview_max_filesize_image": 200,
    "updater.secret": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "theme": "",
    "singleuser": true,
    "updater.release.channel": "production"
}

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Operating system: YOUR ANSWER HERE

Logs

Web server error log
Insert your webserver log here
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

JK74 avatar Aug 22 '17 08:08 JK74

cc @nextcloud/designers on how to improve UX here. But again this looks like we should rethink our user management a bit.

MorrisJobke avatar Aug 31 '17 10:08 MorrisJobke

First off the notification should be shown for 7 seconds, so that sounds like a bug.

Then also, we should switch to more inline means of undo, as also discussed at the conference. cc @nextcloud/designers @skjnldsv

jancborchardt avatar Sep 10 '17 18:09 jancborchardt

@jancborchardt we should discuss this at hackweek! :)

skjnldsv avatar Oct 26 '17 10:10 skjnldsv

Yes – however as quick fix it should definitely show for 7 seconds instead of 1–2. @nextcloud/javascript :)

jancborchardt avatar Oct 26 '17 13:10 jancborchardt

I'll do it.

skjnldsv avatar Oct 26 '17 13:10 skjnldsv

@jancborchardt well, it is already set to 7sec :)

https://github.com/nextcloud/server/blob/77bce68b4553b55808bd5cc52593053c40560f38/settings/js/users/deleteHandler.js#L43

skjnldsv avatar Oct 26 '17 13:10 skjnldsv

That's why I'm confused for @JK74 it's 1-2 seconds. :/ can anyone else confirm?

jancborchardt avatar Oct 26 '17 15:10 jancborchardt

thanks for checking on this: the question/ issue is as well with a 2nd question: what about an 'trashcan' to undelete user actions (like removing a group or user or whatever database action there might be)

is this possible? In this case if this happens then it means a lot of manual actions again it would be good if we could recall such an action from an trashcan and reverse the action.

thnx again, jeroen

JK74 avatar Oct 26 '17 20:10 JK74

A better behavior will be implemented later on, but we need to be sure you get 7 second to undo the notification anyway @JK74 :)

skjnldsv avatar Oct 27 '17 03:10 skjnldsv

Closing. This issue is resolved. We'll figure a better way to implement the undo functionality.

skjnldsv avatar Nov 07 '17 11:11 skjnldsv