[turba] More detailed/friendly error messages, for the users ?

Feczak Szabolcs feczo at siodigit.hu
Wed Feb 4 02:58:10 PST 2004


Im looking for a setting which can incrase the detail of the:

"There was an error adding this object. Contact your system 
administrator for "
"further help."

message. Since it happens whenever the user makes a sysntax error
during ldap entry. So I would like sg similar than this:

"You have made a syntax error in the field: email. Please correct the 
mistake and
try again !"

Since it is more understandable for the user, and then they do not come 
to me,
whenever they see the above message. As I have taken a look at the 
source, it
doesn't implemented, to configure this easily, but I guess it is easy to 
do so.
Im using stable btw. I have seen in head branch email syntax check is 
handeled
smoothly with displaying a red message near to the field, but it still 
has the
similar problem with other fields like when the user enters a string instead
of numbers for the phone number, and returning a message:


*.Failed to add an object: [21] "Invalid syntax" (attributes: 
[a:4:{s:2:"cn";s:8:"pubbedli";s:4:"mail";s:9:"aaaa at a.hu";s:9:"homePhone"
;s:18:"ááéáéáéáéáéáéá";s:11:"objectclass....

which freaks the user out :)

*Horde logs:
Feb 04 11:42:42 HORDE [error] [turba] Failed to add an object: [21] 
"Invalid syntax" (attributes: 
[a:7:{s:2:"cn";s:4:"xxxx";s:2:"sn";s:5:"xxxxx";s:9:"givenname";s:5:"xxxxx";s:16:"xmozillanickname";
s:5:"xxxxx";s:4:"mail";s:14:";;;;;;;;;;;;é";s:17:"nscpaimscreenname";s:2:"é";s:11:"objectclass";
a:5:{i:0;s:3:"top";i:1;s:6:"person";i:2;s:20:"organizationalPerson";i:3;s:13:"inetOrgPerson";
i:4;s:23:"mozillaAbPersonObsolete";}}]). [on line 41 of 
"/var/www/kozos/cimjegyzek/addobjectaction.php"]

Slapd logs:
Feb  4 11:42:42 pix slapd[636]: conn=5 op=1 RESULT tag=105 err=21 
text=mail: value #0 invalid per syntax



More information about the turba mailing list