6.0.0-beta1
7/12/25

[#11833] Can't create Share: AUTO_INCREMENT must be set
Summary Can't create Share: AUTO_INCREMENT must be set
Queue Gollem
Queue Version 3.0.0RC1
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester sl (at) bnmsp (dot) de
Created 12/07/2012 (4600 days ago)
Due
Updated 12/10/2012 (4597 days ago)
Assigned
Resolved 12/10/2012 (4597 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/10/2012 02:17:22 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
12/10/2012 02:17:04 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit a8a397a64726ca013d5eebeae2e6478b68bb47cf
Author: Jan Schneider <jan@horde.org>
Date:   Mon Dec 10 15:16:35 2012 +0100

     [jan] Fix share_id column if using old share backend (Bug #11833).

  gollem/docs/CHANGES                                |    1 +
  .../migration/2_gollem_upgrade_autoincrement.php   |   37 
++++++++++++++++++++
  gollem/package.xml                                 |   10 ++++--
  3 files changed, 45 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/a8a397a64726ca013d5eebeae2e6478b68bb47cf
12/07/2012 01:52:53 PM sl (at) bnmsp (dot) de Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Gollem
Summary ⇒ Can't create Share: AUTO_INCREMENT must be set
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
Can't create shares in Gollem, get error in webinterface:

QUERY FAILED: Duplicate entry '0' for key 'PRIMARY' INSERT INTO 
gollem_shares (share_name, share_owner, share_parents, attribute_name, 
perm_creator, perm_default, perm_guest, share_flags) VALUES 
('file|/sl/test', 'sl', NULL, 'test', 0, 0, 0, 1)

A solution is to set AUTO_INCREMENT for share_id in gollem_shares.

Saved Queries