Author: rmeggins
Update of /cvs/dirsec/dsgw/tests/dosearch
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30811/dsgw/tests/dosearch
Added Files:
testget.1 testget.10 testget.2 testget.3 testget.4 testget.5
testget.6 testget.7 testget.8 testget.9 testpost.1 testpost.2
testpost.3 testpost.4 testpost.5 testpost.6 testpost.7
testpost.8
Log Message:
1) There were several places where DSGW would output and eval arbitrary javascript code
passed in a CGI parameter. These have been replaced with resource strings. In all cases
the values were output escaped, but still, we shouldn't be passing around bits of
javascript code to execute.
2) ICU provides a function which can parse the HTTP_ACCEPT_LANGUAGE string and return the
most appropriate locale, so we should use that for date calculation.
3) Found a couple of places where uninitialized values could be used, and fixed them.
4) Used PR_smprintf to simplify some strlen+malloc+strcpy+strcat code.
5) dsgw_get_cgi_var will check for NULL input
6) Do not pass in the ldap host and port in form parameters. Always just use the values
from the config file.
7) Added many new tests and valgrind suppressions (almost all from ICU)
--- NEW FILE testget.1 ---
--- NEW FILE testget.10 ---
dn=cn=monitor&displaytemplate=person
--- NEW FILE testget.2 ---
ldq=foo?bar?baz?biff
--- NEW FILE testget.3 ---
ldq=objectclass
--- NEW FILE testget.4 ---
dn=cn=config
--- NEW FILE testget.5 ---
dn=entrydoesnotexist
--- NEW FILE testget.6 ---
dn=cn=config&ldq=?sub?(objectclass=nsbackendinstance)
--- NEW FILE testget.7 ---
dn=cn=config&ldq=?&sub=?(&objectclass=%3Dnsbackendinstance)
--- NEW FILE testget.8 ---
dn=cn=config&ldq=objectclass,cn,modifyTimestamp
--- NEW FILE testget.9 ---
dn=cn=monitor&displaytemplate=doesnotexist
--- NEW FILE testpost.1 ---
--- NEW FILE testpost.2 ---
mode=unknownmode&searchstring=searchstring&type=type&base=cn=config&listifone=true&editable=true&link2edit=true&dnlist_js=true
--- NEW FILE testpost.3 ---
mode=auth&searchstring=scarter&type=type&base=cn=config&listifone=true&editable=true&link2edit=true&dnlist_js=true
--- NEW FILE testpost.4 ---
mode=pattern&searchstring=scarter&type=person&base=dc=example,dc=com&listifone=true&editable=true&link2edit=true&dnlist_js=true&attr=objectclass&filterpattern=*
--- NEW FILE testpost.5 ---
mode=pattern&searchstring=scarter&type=People&base=dc=example,dc=com&listifone=true&editable=true&link2edit=true&dnlist_js=true&attr=objectclass&filterpattern=*
--- NEW FILE testpost.6 ---
mode=pattern&searchstring=scarter&type=People&base=dc=example,dc=com&listifone=true&editable=true&link2edit=true&dnlist_js=true&attr=user
id&filterpattern=uid=scarter&filterprefix=(|(&filtersuffix=)(objectclass=top))&searchdesc=This
is the searchdesc field
--- NEW FILE testpost.7 ---
mode=smart&searchstring=scarter&type=People&base=dc=example,dc=com&listifone=true&editable=true&link2edit=true&dnlist_js=true
--- NEW FILE testpost.8 ---
mode=complex&searchstring=scarter&type=People&base=dc=example,dc=com&listifone=true&editable=true&link2edit=true&dnlist_js=true&attr=user
id&match=is&searchdesc=This is the searchdesc field
Show replies by date