[rt-devel] Article name unicity

Emmanuel Lacour elacour at easter-eggs.com
Thu May 26 08:33:53 EDT 2016

Dear RT developpers,

I just discovered that articles names must be unique between all
classes, see RT::Article::ValidateName.

I first wrote a patch to enforce uniqueness only in article class.

So far so good, I forget that article may move between classes.

I decided to change my patch so in case of a class change, operation is
refused if an article with same name exists in target class.

Evrything looks ok now, and I'm ready to submit the patch, but ... I see
that it's possible to create articles without name (explicitely
permitted in ValidateName). Who knows the purpose of allowing empty names??

What BPS devs thinks about this?

Easter-eggs                              Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37    -   Fax: +33 (0) 1 43 35 00 76
mailto:elacour at easter-eggs.com  -   http://www.easter-eggs.com

More information about the rt-devel mailing list