Cannot Creates Items Passwords to Save
Steps to reproduce
- Install Version 3.0.0.19
- Create User TeamPass Manager
- Create one Item Password
Expected behaviour
A password item associated with the selected folder must be created.
Actual behaviour
The item is not created, an error is generated "At least one folder needs to be selected".
Server configuration
Operating system: linux
Web server: Apache Version 2.4.54 Architecture x86_64 Path to Sendmail /usr/sbin/sendmail Path to Perl /usr/bin/perl Perl Version 5.16.3 Kernel Version 3.10.0-1160.el7.x86_64
Database: MySQL Version 10.3.36-MariaDB
PHP version: PHP Version 7.2.34
Teampass version: 3.0.0.19
Teampass configuration file: global $SETTINGS; $SETTINGS = array ( 'max_latest_items' => '10', 'enable_favourites' => '1', 'show_last_items' => '1', 'enable_pf_feature' => '0', 'log_connections' => '1', 'log_accessed' => '1', 'time_format' => 'H:i:s', 'date_format' => 'd/m/Y', 'duplicate_folder' => '0', 'item_duplicate_in_same_folder' => '0', 'duplicate_item' => '0', 'number_of_used_pw' => '3', 'manager_edit' => '1', 'cpassman_dir' => '/home://.com', 'cpassman_url' => 'https://.com', 'favicon' => 'https://.com/favicon.ico', 'path_to_upload_folder' => '/home/.com/upload', 'path_to_files_folder' => '/home/.com/files', 'url_to_files_folder' => 'https://.com/files', 'activate_expiration' => '0', 'pw_life_duration' => '0', 'maintenance_mode' => '0', 'enable_sts' => '0', 'encryptClientServer' => '1', 'cpassman_version' => '3.0.0.19', 'ldap_mode' => '0', 'ldap_type' => '0', 'ldap_suffix' => '0', 'ldap_domain_dn' => '0', 'ldap_domain_controler' => '0', 'ldap_user_attribute' => '0', 'ldap_ssl' => '0', 'ldap_tls' => '0', 'ldap_elusers' => '0', 'ldap_search_base' => '0', 'ldap_port' => '389', 'richtext' => '0', 'allow_print' => '0', 'roles_allowed_to_print' => '0', 'show_description' => '1', 'anyone_can_modify' => '0', 'anyone_can_modify_bydefault' => '0', 'nb_bad_authentication' => '0', 'utf8_enabled' => '1', 'restricted_to' => '0', 'restricted_to_roles' => '0', 'enable_send_email_on_user_login' => '0', 'enable_user_can_create_folders' => '0', 'insert_manual_entry_item_history' => '0', 'enable_kb' => '0', 'enable_email_notification_on_item_shown' => '0', 'enable_email_notification_on_user_pw_change' => '0', 'custom_logo' => '', 'custom_login_text' => '', 'default_language' => 'english', 'send_stats' => '0', 'send_statistics_items' => 'stat_country;stat_users;stat_items;stat_items_shared;stat_folders;stat_folders_shared;stat_admins;stat_managers;stat_ro;stat_mysqlversion;stat_phpversion;stat_teampassversion;stat_languages;stat_kb;stat_suggestion;stat_customfields;stat_api;stat_2fa;stat_agses;stat_duo;stat_ldap;stat_syslog;stat_stricthttps;stat_fav;stat_pf;', 'send_stats_time' => '1660762683', 'get_tp_info' => '1', 'send_mail_on_user_login' => '0', 'nb_items_by_query' => 'auto', 'enable_delete_after_consultation' => '0', 'enable_personal_saltkey_cookie' => '0', 'personal_saltkey_cookie_duration' => '31', 'email_smtp_server' => '', 'email_smtp_auth' => '', 'email_auth_username' => '', 'email_auth_pwd' => '', 'email_port' => '', 'email_security' => '', 'email_server_url' => '', 'email_from' => '', 'email_from_name' => '', 'pwd_maximum_length' => '40', 'google_authentication' => '0', 'delay_item_edition' => '0', 'allow_import' => '0', 'proxy_ip' => '', 'proxy_port' => '', 'upload_maxfilesize' => '10mb', 'upload_docext' => 'doc,docx,dotx,xls,xlsx,xltx,rtf,csv,txt,pdf,ppt,pptx,pot,dotx,xltx', 'upload_imagesext' => 'jpg,jpeg,gif,png', 'upload_pkgext' => '7z,rar,tar,zip', 'upload_otherext' => 'sql,xml', 'upload_imageresize_options' => '1', 'upload_imageresize_width' => '800', 'upload_imageresize_height' => '600', 'upload_imageresize_quality' => '90', 'use_md5_password_as_salt' => '0', 'ga_website_name' => 'TeamPass for ChangeMe', 'api' => '0', 'subfolder_rights_as_parent' => '0', 'show_only_accessible_folders' => '0', 'enable_suggestion' => '0', 'otv_expiration_period' => '7', 'default_session_expiration_time' => '60', 'duo' => '0', 'enable_server_password_change' => '0', 'ldap_object_class' => '0', 'bck_script_path' => '/home/.com/backups', 'bck_script_filename' => 'bck_teampass', 'syslog_enable' => '0', 'syslog_host' => 'localhost', 'syslog_port' => '514', 'manager_move_item' => '0', 'create_item_without_password' => '0', 'otv_is_enabled' => '0', 'agses_authentication_enabled' => '0', 'item_extra_fields' => '0', 'saltkey_ante_2127' => 'none', 'migration_to_2127' => 'done', 'files_with_defuse' => 'done', 'timezone' => 'UTC', 'enable_attachment_encryption' => '1', 'personal_saltkey_security_level' => '50', 'ldap_new_user_is_administrated_by' => '0', 'disable_show_forgot_pwd_link' => '0', 'offline_key_level' => '0', 'enable_http_request_login' => '0', 'ldap_and_local_authentication' => '0', 'secure_display_image' => '1', 'upload_zero_byte_file' => '0', 'upload_all_extensions_file' => '0', 'bck_script_passkey' => 'e**********************************a', 'admin_2fa_required' => '1', 'password_overview_delay' => '4', 'copy_to_clipboard_small_icons' => '1', 'duo_ikey' => '', 'duo_skey' => '', 'duo_host' => '', 'duo_failmode' => 'secure', 'teampass_version' => '', 'roles_allowed_to_print_select' => '', 'clipboard_life_duration' => '30', 'mfa_for_roles' => '', 'tree_counters' => '0', 'settings_offline_mode' => '0', 'settings_tree_counters' => '0', 'enable_massive_move_delete' => '0', 'email_debug_level' => '0', 'ga_reset_by_user' => '', 'onthefly-backup-key' => '', 'onthefly-restore-key' => '', 'ldap_user_dn_attribute' => '', 'ldap_dn_additional_user_dn' => '', 'ldap_user_object_filter' => '', 'ldap_bdn' => '', 'ldap_hosts' => '', 'ldap_password' => '', 'ldap_username' => '', 'api_token_duration' => '60', 'enable_tasks_manager' => '0', 'task_maximum_run_time' => '300', 'tasks_manager_refreshing_period' => '20', 'maximum_number_of_items_to_treat' => '100',
Updated from an older Teampass or fresh install:
PLEASE attach to this issue the file /includes/config/tp.config.php.
Client configuration
Browser: Chrome
Operating system: Windows 10
Logs
Web server error log
Insert your webserver log here
Log from the web-browser developer console (CTRL + SHIFT + i)
User information
index.php?page=items:3256 Object
index.php?page=items:3274 Les répertoires sont chargés
index.php?page=items:3275 Object
index.php?page=items:2738 Loading settings result:
index.php?page=items:2739 Object
index.php?page=items:3297 JSTREE BIND
index.php?page=items:3315 SELECTED NODE 5 -- false
index.php?page=items:3316 Object
index.php?page=items:3317 0
index.php?page=items:6445 LIST OF ITEMS FOR FOLDER 5
index.php?page=items:6547 Do list of items in folder with next parameters:
index.php?page=items:6548 {"id":5,"restricted":"","start":0,"uniqueLoadData":"","nb_items_to_display_once":9}
index.php?page=items:2870 Refresh last item seen result
index.php?page=items:2871 Object
index.php?page=items:1618 Get user info results:
index.php?page=items:1619 Object
index.php?page=items:6562 LIST ITEMS
index.php?page=items:6563 Object
index.php?page=items:6877 Array(0)
index.php?page=items:6863 Liste complete des items
index.php?page=items:6864 Array(0)
index.php?page=items:6332 INPUTS for refresh_folders_other_info
index.php?page=items:6333 [5]
index.php?page=items:6219 Refresh visible folders
index.php?page=items:6220 Object
index.php?page=items:6346 RESULTS for refresh_folders_other_info
index.php?page=items:6347 Object
index.php?page=items:6233 TREE
index.php?page=items:6234 Object
index.php?page=items:6283 HTML VISIBLE:
index.php?page=items:6284 <option value="0">Root</option>
index.php?page=items:6445 LIST OF ITEMS FOR FOLDER 5
index.php?page=items:6547 Do list of items in folder with next parameters:
index.php?page=items:6548 {"id":5,"restricted":0,"start":0,"uniqueLoadData":"","nb_items_to_display_once":9}
index.php?page=items:3297 JSTREE BIND
index.php?page=items:3315 SELECTED NODE 5 -- true
index.php?page=items:3316 Object
index.php?page=items:3317 0
index.php?page=items:6562 LIST ITEMS
index.php?page=items:6563 Object
index.php?page=items:6877 Array(0)
index.php?page=items:6863 Liste complete des items
index.php?page=items:6864 Array(0)
index.php?page=items:6332 INPUTS for refresh_folders_other_info
index.php?page=items:6333 [5]
index.php?page=items:6346 RESULTS for refresh_folders_other_info
index.php?page=items:6347 Object
index.php?page=items:3754 SHOW NEW ITEM
index.php?page=items:4045 >>> #folders-tree-card --
index.php?page=items:8362 Get privilege for folder 5
index.php?page=items:8390 GET COMPLEXITY LEVEL
index.php?page=items:8391 Object
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-restrictedto
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-anounce
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-restrictedto
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-folder
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-label
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-login
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-password
index.php?page=items:4121 User did a change on #form-item > true - Element form-item-url
index.php?page=items:5696 CHANGED FIELDS
index.php?page=items:5697 Array(0)
DevTools failed to load source map: Could not load content for https://********************************.com/plugins/summernote/summernote-bs4.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Insert the log here and especially the answer of the query that failed.
main.queries.php :
eyJjaXBoZXJ0ZXh0IjoiR2pHVVhUd3hjNzFPMld5WUFobWdlRnNzUzVUTXh6RUZWQ1R0R3liYXFFdE1hY2ZWNGxYcytVdWtlekUrcnNMZUFqSnBqSlp6YUV3NktFMFRTM0lIdEZaMmtnTmpiZW5mUVQzaUthNVZcL1ZtMEFhWW1YelQyWVhHK2ZGUzRDeXBiMHJRZnJIam5zYnVQclp4b25VT2VtUmM3NXdLOG9aTTRBcjNVUW9kcDNFMFROMG5oNUptbUlnQmVlSVZMSmh4UXlCRzZ4dXBJTVgxQzErTXJtbTBSK2hCTnZGV09nVnZHOGsxRFFMV3MxXC96emFjTjRKTE9qTzlNakJcLzNhMVA2SmJsN05IXC9STjRNMVA5ZHQ3a3htamxFb2dcL0tOdmVEbnVVc2tJclpyXC9OS0hadDRLcjZ1QU5hMHpLYXozMnZoWEJcL29vUUVhUFwvbE04SkQ0MFNQa2s0U2ZtbFdWb0VQWjFxMzQ4VTIxQXQxTHlUMEsxbzBac2F0ZnoxZGJnUXNpUWJQWmxWcEhuQkwrS0VLMkNjbmNKaXZRPT0iLCJpdiI6IjYyMzZkYWIyOTljMTYyNzIzYjQxMmMxY2M1MDhlNjIzIi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OTQ3ZTNiMGYzZWFlMTBhNjRhYTI1NzY5NGZiZjg3YmVjNTlmNmM0NWZkOGY5YzIxYjlmMDljNzMzNmQwNmRhYTRiMGFhMmJmYjdmMjY0NzJmYzMyZTE3ZWU1NTk5YmMzMDQ0YTA1ZWZhMjAyYmE3ZTlhZTBiOGM3ZjlhNDZmOGZmYzE2Yzk3Y2IxZmFkZjUxZmFiNzYwODIxYzlmYjQ0YmIzNDllMGFlOTFlNjdkZGExMTQ5ZGMwZDZjMmM5NmQ5MGFlYjlhMmI2YzFmN2JiZTY3YTQzMWMxMWRmNDk5NzUzZDk3ZGMyYTlmNmYzM2U1NTRkM2FmZDFiYmM5ZjY0M2IxMWJjZWI2ZGZjMWUzNDdkY2NmOGM1MGJhYjNkZjQ2NWEwZDM3NDBlNWE4ZWQ2MDdmNzc2NGZiOTNjNWVkMWRjMTFkYzdhMjNhZjYxN2YyNjllODEwZjhmNTk5YjNjNDlkOTU2ODM4NTNiMGQ3NDZiMjcyYWIyOTI3MGJlNzZmZmY1ODg2N2Y0NmM5M2FmZTQ0OTkyMmVjNjg4YTMxOTY5MzdkNjViOTliZTFmOTY2ZGUwYWQzYjYxN2ViZDg1MWIzM2Y5ZWZmMWY3YWVhZDIwMGMzMjdhMmViM2I0YzIwNjRmMTI0ODE3ZjQ2NGQ1YmI2OWQ2MDc4MzAzNzgxMiIsIml0ZXJhdGlvbnMiOjk5OX0=

You need to select a folder

oOKOKOK, Thx, but doesn´t works. Thats the problem. Not show any folder.

YOu have no folder, or your user doesn't have access to them.
Hi, thx.
I have a User, a role, a folder and I grant access to folder for that role/user.
However, when I try to create an item for a folder, I get an error that there are no items.

Hum, I think it is a case that could have been fixed by one fix I work on this morning. Can you please upgrade to latest commit and check this point?
OMG, You fixed!!!! I'm upgrade and run new installation and all work very well. Thx.