developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 12 years ago

#402 closed bug (fixed)

plantage du script jcontroller daocrud en cas d'absence de primarykey

Reported by: bastnic Owned by: laurentj
Priority: normal Milestone: Jelix 1.0.4
Component: jelix-scripts Version: 1.0RC2
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description (last modified by laurentj)

Lors de l'exécution du script de création d'un jcontrollerdaocrud alors que la table en question n'a pas de primarykey, le script plante sans le signaler.

On trouve quand même dans le fichier d'erreur PHP :

[06-Jan-2008 21:43:55] PHP Fatal error:  Uncaught exception 'jDaoXmlException' with message 'DAO admin~ftpgroup, nom de clé primaire manquant (fichier /Users/bast/Sites/jelix/ftpfacile/modules/admin/daos/ftpgroup.dao.xml)' in /Users/bast/Sites/jelix/lib/jelix/dao/jDaoParser.class.php:149
Stack trace:
#0 /Users/bast/Sites/jelix/lib/jelix/dao/jDaoParser.class.php(85): jDaoParser->_parseTable(0, Object(SimpleXMLElement))
#1 /Users/bast/Sites/jelix/lib/jelix-scripts/commands/createform.cmd.php(74): jDaoParser->parse(Object(SimpleXMLElement))
#2 /Users/bast/Sites/jelix/lib/jelix-scripts/commands/createdaocrud.cmd.php(65): createformCommand->run()
#3 /Users/bast/Sites/jelix/lib/jelix-scripts/jelix.php(108): createdaocrudCommand->run()
#4 {main}
  thrown in /Users/bast/Sites/jelix/lib/jelix/dao/jDaoParser.class.php on line 149

Change History (3)

comment:1 Changed 13 years ago by laurentj

  • Description modified (diff)
  • Owner set to laurentj
  • Status changed from new to assigned

comment:2 Changed 12 years ago by laurentj

  • Documentation needed unset
  • Milestone set to Jelix 1.0.4

comment:3 Changed 12 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in the trunk and 1.0.x branch, svn 923.

Note: See TracTickets for help on using tickets.