6.0.0-beta1
7/17/25

[#6864] Cannot add galleries in ansel
Summary Cannot add galleries in ansel
Queue Ansel
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester postmaster (at) ecommerce-pme (dot) com
Created 06/09/2008 (6247 days ago)
Due
Updated 06/10/2008 (6246 days ago)
Assigned 06/09/2008 (6247 days ago)
Resolved 06/09/2008 (6247 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/10/2008 12:02:27 PM postmaster (at) ecommerce-pme (dot) com Comment #7 Reply to this comment
it's ok, thank you !


06/10/2008 03:43:27 AM Michael Rubinsky Comment #6 Reply to this comment
you need to update the Share package as well.  If you need further 
help, please ask on the mailing lists.
06/10/2008 02:37:41 AM postmaster (at) ecommerce-pme (dot) com Comment #5 Reply to this comment
Sorry, it's the same for me. I have removed, then reinstall ansel from 
cvs, updated the entire horde from cvs, removed then reinstall the 
mysql tables from ansel.sql. and always: The gallery "test" couldn't 
be created: The gallery "test" could not be created: MDB2 Error: no 
such field



Thank you for your work.



JB



-- --------------------------------------------------------



--

-- Structure de la table `ansel_datatree_transition`

--



CREATE TABLE `ansel_datatree_transition` (

   `datatree_id` int(11) NOT NULL,

   `image_id` int(11) NOT NULL,

   `vfsname` varchar(255) NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_faces`

--



CREATE TABLE `ansel_faces` (

   `face_id` int(11) NOT NULL,

   `image_id` int(11) NOT NULL,

   `gallery_id` int(11) NOT NULL,

   `face_name` varchar(100) NOT NULL,

   `face_x1` int(11) NOT NULL,

   `face_y1` int(11) NOT NULL,

   `face_x2` int(11) NOT NULL,

   `face_y2` int(11) NOT NULL,

   `face_signature` blob,

   PRIMARY KEY  (`face_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_faces_index`

--



CREATE TABLE `ansel_faces_index` (

   `face_id` int(11) NOT NULL,

   `index_position` int(11) NOT NULL,

   `index_part` blob,

   KEY `ansel_faces_index_face_id_idx` (`face_id`),

   KEY `ansel_faces_index_index_part_idx` (`index_part`(30)),

   KEY `ansel_faces_index_index_position_idx` (`index_position`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_galleries_tags`

--



CREATE TABLE `ansel_galleries_tags` (

   `gallery_id` int(11) NOT NULL,

   `tag_id` int(11) NOT NULL,

   PRIMARY KEY  (`gallery_id`,`tag_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_image_attributes`

--



CREATE TABLE `ansel_image_attributes` (

   `image_id` int(11) NOT NULL,

   `attr_name` varchar(50) NOT NULL,

   `attr_value` varchar(255) default NULL,

   PRIMARY KEY  (`image_id`,`attr_name`),

   KEY `ansel_image_attributes_image_idx` (`image_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_images`

--



CREATE TABLE `ansel_images` (

   `image_id` int(11) NOT NULL,

   `gallery_id` int(11) NOT NULL,

   `image_filename` varchar(255) NOT NULL,

   `image_type` varchar(100) NOT NULL,

   `image_caption` text,

   `image_uploaded` int(11) NOT NULL,

   `image_sort` int(11) NOT NULL,

   `image_faces` int(11) NOT NULL,

   PRIMARY KEY  (`image_id`),

   KEY `ansel_images_gallery_idx` (`gallery_id`),

   KEY `ansel_images_gallery_image_idx` (`image_id`,`gallery_id`),

   KEY `ansel_images_uploaded_idx` (`image_uploaded`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_images_tags`

--



CREATE TABLE `ansel_images_tags` (

   `image_id` int(11) NOT NULL,

   `tag_id` int(11) NOT NULL,

   PRIMARY KEY  (`image_id`,`tag_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares`

--



CREATE TABLE `ansel_shares` (

   `share_id` int(11) NOT NULL,

   `share_owner` varchar(32) NOT NULL,

   `share_parents` varchar(255) default NULL,

   `perm_creator` smallint(6) NOT NULL,

   `perm_default` smallint(6) NOT NULL,

   `perm_guest` smallint(6) NOT NULL,

   `share_flags` smallint(6) NOT NULL default '0',

   `attribute_name` varchar(255) NOT NULL,

   `attribute_desc` text,

   `attribute_default` int(11) default NULL,

   `attribute_default_type` varchar(6) default NULL,

   `attribute_default_prettythumb` text,

   `attribute_style` varchar(50) default NULL,

   `attribute_category` varchar(255) NOT NULL default '',

   `attribute_last_modified` int(11) default NULL,

   `attribute_date_created` int(11) default NULL,

   `attribute_images` int(11) NOT NULL default '0',

   `attribute_has_subgalleries` int(11) NOT NULL default '0',

   `attribute_slug` varchar(255) default NULL,

   `attribute_age` int(11) NOT NULL default '0',

   `attribute_download` varchar(255) default NULL,

   `attribute_passwd` varchar(255) default NULL,

   `attribute_faces` int(11) NOT NULL,

   PRIMARY KEY  (`share_id`),

   KEY `ansel_shares_share_owner_idx` (`share_owner`),

   KEY `ansel_shares_perm_creator_idx` (`perm_creator`),

   KEY `ansel_shares_perm_default_idx` (`perm_default`),

   KEY `ansel_shares_perm_guest_idx` (`perm_guest`),

   KEY `ansel_shares_attribute_category_idx` (`attribute_category`),

   KEY `ansel_shares_share_parents_idx` (`share_parents`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares_groups`

--



CREATE TABLE `ansel_shares_groups` (

   `share_id` int(11) NOT NULL,

   `group_uid` int(11) NOT NULL,

   `perm` smallint(6) NOT NULL,

   KEY `ansel_shares_groups_share_id_idx` (`share_id`),

   KEY `ansel_shares_groups_group_uid_idx` (`group_uid`),

   KEY `ansel_shares_groups_perm_idx` (`perm`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares_seq`

--



CREATE TABLE `ansel_shares_seq` (

   `sequence` int(11) NOT NULL auto_increment,

   PRIMARY KEY  (`sequence`)

) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares_users`

--



CREATE TABLE `ansel_shares_users` (

   `share_id` int(11) NOT NULL,

   `user_uid` varchar(32) NOT NULL,

   `perm` smallint(6) NOT NULL,

   KEY `ansel_shares_users_share_id_idx` (`share_id`),

   KEY `ansel_shares_users_user_uid_idx` (`user_uid`),

   KEY `ansel_shares_users_perm_idx` (`perm`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



-- --------------------------------------------------------



--

-- Structure de la table `ansel_tags`

--



CREATE TABLE `ansel_tags` (

   `tag_id` int(11) NOT NULL,

   `tag_name` varchar(255) NOT NULL,

   PRIMARY KEY  (`tag_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;
06/09/2008 04:28:44 PM Michael Rubinsky Comment #3 Reply to this comment
yep. Working on it as we speak.  It's because we need to pass an empty 
share name to the Perms system, and the share name persists in the 
share object, so when it's added to the DB, it attempts to add that 
field as well....
06/09/2008 03:47:34 PM Duck Comment #2 Reply to this comment
I know where is the reason. Ansel in a way still uses share_name 
columns even was removed from the share driver. I don't know where 
this happen. But adding the share_name column solves all the problems.
06/09/2008 02:30:35 PM Michael Rubinsky State ⇒ Assigned
Assigned to Michael Rubinsky
 
06/09/2008 09:04:59 AM postmaster (at) ecommerce-pme (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Cannot add galleries in ansel
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi



I have installed horde from CVS today, installed ansel, loading the sql file.



The gallery "test" couldn't be created: The gallery "test" could not 
be created: MDB2 Error: no such field. No more informations.



It seems the same when i run the scripts in "upgrades", and upgrades 
sql files. I have uninstall and reinstall ansel tables, nothing change.



--

-- Structure de la table `ansel_datatree_transition`

--



CREATE TABLE `ansel_datatree_transition` (

   `datatree_id` int(11) NOT NULL,

   `image_id` int(11) NOT NULL,

   `vfsname` varchar(255) NOT NULL

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_datatree_transition`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_faces`

--



CREATE TABLE `ansel_faces` (

   `face_id` int(11) NOT NULL,

   `image_id` int(11) NOT NULL,

   `gallery_id` int(11) NOT NULL,

   `face_name` varchar(100) NOT NULL,

   `face_x1` int(11) NOT NULL,

   `face_y1` int(11) NOT NULL,

   `face_x2` int(11) NOT NULL,

   `face_y2` int(11) NOT NULL,

   `face_signature` blob,

   PRIMARY KEY  (`face_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_faces`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_faces_index`

--



CREATE TABLE `ansel_faces_index` (

   `face_id` int(11) NOT NULL,

   `index_position` int(11) NOT NULL,

   `index_part` blob,

   KEY `ansel_faces_index_face_id_idx` (`face_id`),

   KEY `ansel_faces_index_index_part_idx` (`index_part`(30)),

   KEY `ansel_faces_index_index_position_idx` (`index_position`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_faces_index`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_galleries_tags`

--



CREATE TABLE `ansel_galleries_tags` (

   `gallery_id` int(11) NOT NULL,

   `tag_id` int(11) NOT NULL,

   PRIMARY KEY  (`gallery_id`,`tag_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_galleries_tags`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_image_attributes`

--



CREATE TABLE `ansel_image_attributes` (

   `image_id` int(11) NOT NULL,

   `attr_name` varchar(50) NOT NULL,

   `attr_value` varchar(255) default NULL,

   PRIMARY KEY  (`image_id`,`attr_name`),

   KEY `ansel_image_attributes_image_idx` (`image_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_image_attributes`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_images`

--



CREATE TABLE `ansel_images` (

   `image_id` int(11) NOT NULL,

   `gallery_id` int(11) NOT NULL,

   `image_filename` varchar(255) NOT NULL,

   `image_type` varchar(100) NOT NULL,

   `image_caption` text,

   `image_uploaded` int(11) NOT NULL,

   `image_sort` int(11) NOT NULL,

   `image_faces` int(11) NOT NULL,

   PRIMARY KEY  (`image_id`),

   KEY `ansel_images_gallery_idx` (`gallery_id`),

   KEY `ansel_images_gallery_image_idx` (`image_id`,`gallery_id`),

   KEY `ansel_images_uploaded_idx` (`image_uploaded`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_images`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_images_tags`

--



CREATE TABLE `ansel_images_tags` (

   `image_id` int(11) NOT NULL,

   `tag_id` int(11) NOT NULL,

   PRIMARY KEY  (`image_id`,`tag_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_images_tags`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares`

--



CREATE TABLE `ansel_shares` (

   `share_id` int(11) NOT NULL,

   `share_owner` varchar(32) NOT NULL,

   `share_parents` varchar(255) default NULL,

   `perm_creator` smallint(6) NOT NULL,

   `perm_default` smallint(6) NOT NULL,

   `perm_guest` smallint(6) NOT NULL,

   `share_flags` smallint(6) NOT NULL default '0',

   `attribute_name` varchar(255) NOT NULL,

   `attribute_desc` text,

   `attribute_default` int(11) default NULL,

   `attribute_default_type` varchar(6) default NULL,

   `attribute_default_prettythumb` text,

   `attribute_style` varchar(50) default NULL,

   `attribute_category` varchar(255) NOT NULL default '',

   `attribute_last_modified` int(11) default NULL,

   `attribute_date_created` int(11) default NULL,

   `attribute_images` int(11) NOT NULL default '0',

   `attribute_has_subgalleries` int(11) NOT NULL default '0',

   `attribute_slug` varchar(255) default NULL,

   `attribute_age` int(11) NOT NULL default '0',

   `attribute_download` varchar(255) default NULL,

   `attribute_passwd` varchar(255) default NULL,

   `attribute_faces` int(11) NOT NULL,

   PRIMARY KEY  (`share_id`),

   KEY `ansel_shares_share_owner_idx` (`share_owner`),

   KEY `ansel_shares_perm_creator_idx` (`perm_creator`),

   KEY `ansel_shares_perm_default_idx` (`perm_default`),

   KEY `ansel_shares_perm_guest_idx` (`perm_guest`),

   KEY `ansel_shares_attribute_category_idx` (`attribute_category`),

   KEY `ansel_shares_share_parents_idx` (`share_parents`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_shares`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares_groups`

--



CREATE TABLE `ansel_shares_groups` (

   `share_id` int(11) NOT NULL,

   `group_uid` int(11) NOT NULL,

   `perm` smallint(6) NOT NULL,

   KEY `ansel_shares_groups_share_id_idx` (`share_id`),

   KEY `ansel_shares_groups_group_uid_idx` (`group_uid`),

   KEY `ansel_shares_groups_perm_idx` (`perm`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_shares_groups`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares_seq`

--



CREATE TABLE `ansel_shares_seq` (

   `sequence` int(11) NOT NULL auto_increment,

   PRIMARY KEY  (`sequence`)

) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;



--

-- Contenu de la table `ansel_shares_seq`

--



INSERT INTO `ansel_shares_seq` (`sequence`) VALUES

(2);



-- --------------------------------------------------------



--

-- Structure de la table `ansel_shares_users`

--



CREATE TABLE `ansel_shares_users` (

   `share_id` int(11) NOT NULL,

   `user_uid` varchar(32) NOT NULL,

   `perm` smallint(6) NOT NULL,

   KEY `ansel_shares_users_share_id_idx` (`share_id`),

   KEY `ansel_shares_users_user_uid_idx` (`user_uid`),

   KEY `ansel_shares_users_perm_idx` (`perm`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_shares_users`

--





-- --------------------------------------------------------



--

-- Structure de la table `ansel_tags`

--



CREATE TABLE `ansel_tags` (

   `tag_id` int(11) NOT NULL,

   `tag_name` varchar(255) NOT NULL,

   PRIMARY KEY  (`tag_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;



--

-- Contenu de la table `ansel_tags`

--




Saved Queries