TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Edition not possible. This item is presently edited!

Open SpikeStephens opened this issue 13 years ago • 11 comments

I'm on version 2.1.14. I was receiving this error when attempting to edit several passwords that I believe were all created in one session a week ago. They were all in one folder. A different password in that folder was not presenting the error.

I went into the database and cleared the items_edition table for the items and they are editable again.

Edit: I'm now getting this error whenever I create a password. It successfully creates the password, but when I click Save, it displays the "Edition is not possible" message.

Also, "Editing is not possible" or "Cannot edit" would be more correct English. "Edition" has a different meaning (it basically means "version").

SpikeStephens avatar Feb 05 '13 20:02 SpikeStephens

There was a row in the items_edition table with item_id of 0. I removed that row and the error message has gone away when saving a new password as well.

There's already a new row with item_id of 0 in the items_edition table, though. Kinda weird, not sure what that's for.

SpikeStephens avatar Feb 05 '13 22:02 SpikeStephens

You can check and manage the status of editions through the Views page.

nilsteampassnet avatar Feb 07 '13 19:02 nilsteampassnet

Good to know. Much nicer than having to write manual queries to clear them :). Didn't even realize that Views tab was there.

SpikeStephens avatar Feb 07 '13 20:02 SpikeStephens

Brad, can you tell me what browser you are using please?

nilsteampassnet avatar Feb 09 '13 11:02 nilsteampassnet

I'm using Chrome. We have a spattering of browsers used in the workplace, though - IE, Chrome, and Firefox depending on personal preference. I'm not sure what browser the user who created the passwords I couldn't edit was using.

SpikeStephens avatar Feb 14 '13 14:02 SpikeStephens

I had the same issue in 2.1.15. Changed the code in items.queries.php line 1841 from

if (isset($_SESSION['settings']['delay_item_edition']) && $_SESSION['settings']['delay_item_edition'] > 0 && !empty($data_tmp[0]) && round(abs(time()-$data_tmp[0]) / 60, 2) > $_SESSION['settings']['delay_item_edition']) {

to

if (isset($_SESSION['settings']['delay_item_edition']) && $_SESSION['settings']['delay_item_edition'] > 0 && !empty($data_tmp[0]) && round(abs(time()-$data_tmp[0]) / 60, 2) > $_SESSION['settings']['delay_item_edition'] || $_POST['item_id'] == 0) {

and the error is not shown again. But I don't know, if that is a good solution.

Obus20 avatar Mar 08 '13 11:03 Obus20

There is definitely a bug here. I just cleared out about 30 "items actually in edition" from the Views admin page yesterday. Most of them said "Edition started from" 200+ hours ago. Our sessions are set to the default 1 hour, with the +1hr button available, so obviously many sessions died without the "Edition" being cleared. This morning I just checked that Views page again and it looks like there's one password that's been "in edition" for 20 hours.

SpikeStephens avatar Mar 14 '13 14:03 SpikeStephens

Hi Can you tell me what browser you use? What versions? What type of server?

nilsteampassnet avatar Mar 14 '13 16:03 nilsteampassnet

I think you are asking me about browsers. I'm in a small business environment with probably 20 users of TeamPass all using whatever their preferred browser is: IE9+, FireFox, or Chrome. The server is apache 2.2.22 + mysql 5.5.22 on Ubuntu 12.04.

SpikeStephens avatar Mar 14 '13 20:03 SpikeStephens

Bug is confirmed. I''ve corrected it and it will be committed this evening.

nilsteampassnet avatar Mar 18 '13 10:03 nilsteampassnet

Excellent, thanks!

SpikeStephens avatar Mar 18 '13 14:03 SpikeStephens