Error in xpath expression
Status: Inactive
Brought to you by:
jmimo
I've just installed latest sins and encounterd following problem
error in xpath expression /cvs-permissions/user[@name = "czeczek_]" around user[@name = "czeczek_]" at /usr/lib/perl5/site_perl/5.8/XML/Twig.pm line 2806
It looks like there is an error in permission.pm file, line 150. (Method isUserValid)
There is:
return $self->{_twig}->get_xpath('/cvs-permissions/user[@name = "'.$self->{_user}.']"');
and should be:
return $self->{_twig}->get_xpath('/cvs-permissions/user[@name = "'.$self->{_user}.'"]');
There is square bracket on wrong position causing that xpath string is being built wrong way.
there is:']"'); and should be '"]');