From: Temlakos <tem...@gm...> - 2008-11-06 18:08:26
|
I tend to agree with you. But how did you manage to create two articles under the same namespace? Whenever I try to create anything in the Web interface, it always searches for anything with the same full-page name, and if it finds it, it displays it. Did you create something by using a command-line or phpMyAdmin interface? That seems an awfully dangerous thing to do. In fact, you might have stumbled onto a key vulnerability basic to MediaWiki. And I'm not sure how anyone would fix that, without some serious attention to exception handling. I don't even know whether PHP has any exception-handling infrastructure (like the try and catch blocks in C++ and Java). Temlakos Brian Osborne wrote: > SMW users, > > I accidentally created 2 properties with the same name, then ran into > error messages trying to use that property. I could fix the problem by > deleting the extra or unused property from within the database, but > I'm a bit surprised that I was allowed to create these 2 properties in > the first place. The CREATE TABLE statement shows that I could create > all kinds of things with the same name in one namespace. Since I can't > actually use these duplicates or triplicates or ... whatever .... why > am I allowed to create them? This seems unwise to me, shouldn't there > should be a unique constraint there? > > Brian O. > > > > CREATE TABLE `smw_ids` ( > `smw_id` int(8) unsigned NOT NULL auto_increment, > `smw_namespace` int(11) NOT NULL, > `smw_title` varchar(255) character set latin1 collate latin1_bin > NOT NULL, > `smw_iw` char(32) default NULL, > `smw_sortkey` varchar(255) character set latin1 collate latin1_bin > NOT NULL, > PRIMARY KEY (`smw_id`), > KEY `smw_title` (`smw_title`,`smw_namespace`,`smw_iw`), > KEY `smw_sortkey` (`smw_sortkey`) > ) ENGINE=InnoDB AUTO_INCREMENT=195 DEFAULT CHARSET=latin1 | > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > |