nilsteampassnet / TeamPass

Collaborative Passwords Manager
https://www.teampass.net
1.63k stars 532 forks source link

New item with empty password not editable #4118

Open whosht opened 3 months ago

whosht commented 3 months ago

Steps to reproduce

  1. Login
  2. Go to personal folder
  3. Select "New item"
  4. Fill in Label
  5. Click "Save" -> Item is saved
  6. Click Item
  7. Click on "Edit"
  8. Change any field (including password field)
  9. Click "Save" -> Message "You are not allowed to do that!" + Log entry "TEAMPASS | user XXXXXXXX has no sharekey for item YYYY, referer: https://pw.who-ing.local/index.php?page=items"

Expected behaviour

Item should be saved.

Actual behaviour

Item is not saved, instead an error message is displayed and logged

Server configuration

Operating system: Debian 12

Web server: N/A

Database: N/A

PHP version: N/A

Teampass version: 3.1.1 (380c0f6)

Teampass configuration file: N/A

Client configuration

Browser: N/A

Operating system: N/A

Logs

Web server error log

[Wed Mar 20 09:45:14.936985 2024] [php:notice] [pid 207108] [client *.*.*.*:*] TEAMPASS | user ******** has no sharekey for item ****, referer: https://pw.who-ing.local/index.php?page=items

Log from the web-browser developer console (CTRL + SHIFT + i)

Edit 2024-04-02: Forget to mention Teampass version

whosht commented 3 months ago

Additional Information

With my limited knowledge of the source code I see 2 possible ways of fixing it:

One additional remark:

whosht commented 3 months ago

This might be related to #4061