Forums / Developer / User account's login for object name pattern

User account's login for object name pattern

Author Message

Piotrek Karaś

Thursday 03 January 2008 4:40:48 am

<b>Is it possible to use user account's login to define object name pattern?</b> I mean, is there a system way, any special notation for the object name pattern?

Generally the goal is to force object names to be based on user logins. We've just experimented a bit with user class and when you <b>remove first name</b> and <b>last name</b> (or at least place user account as the first attribute in the class) as well as <b>get rid of object name pattern declaration</b>, then the systems magically follows the "first attribute" rule and out of all fields (login, passwords, e-mail) <b>takes login</b> to build object name. The question remains: how intensional is that behavior? Should we rely on it, or is it likely to alter in the future versions (of eZ4)?

The other issue is security. Do you think revealing user login to the public increases risks in this context?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Maxime Thomas

Monday 07 January 2008 8:54:38 am

I guess it's the same if you get only one attribute with a file or a picture, you wannot have a name.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Piotrek Karaś

Monday 07 January 2008 9:21:42 am

Seems like you're right, same situation. But in case of user account datatype it is login is chosen for object name generation. I would like to know if that will be a consistent behavior in the next eZ versions.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu