tracker issue : CF-3042412

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 84596:When I put in a dodgy filter string

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Joel Stobart / Joel Stobart (Joel Stobart)

Created: 10/08/2010

Components: Language, Exception Handling

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 278948

Priority/Frequency: Minor / Very few users will encounter

Locale/System: English / Platforms All

Vote Count: 3

Problem:

When I put in a dodgy filter string . A packet sniffer returns the followingsearchResDone(2) protocolError (Bad search filter)  [0 results]But Coldfusion returns to me:Connection to ldap server failed.Detail   [empty string]Message Connection to LDAP server failed.StackTrace coldfusion.tagext.net.LdapTag$UnknownHostException: Connection to LDAP server failed. at coldfusion.tagext.net.LdapTag.do_ActionQuery(LdapTag.java:892) at coldfusion.tagext.net.LdapTag.doStartTag(LdapTag.java:616) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfldapexception2ecfm1238199489.runPage(C:\Program Files\Apache Group\Apache2\htdocs\ldapexception.cfm:32) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) 
Method:

normal ldap connection with the following:(mail=*****)

ksaini:
<cftry>
(MAXROWS = 3, START="o=Ace Industry, c=US") ...

<p>

<cfldap name="entrylist"
		        server="#shost#"
				port=#iPort# 
		        username="uid=admin,ou=system"
		        password="administrator"
		        action="query" 
		        attributes="#attributesList#"
		        scope="onelevel"			

		        start="ou=people,dc=example,dc=com"
			 filter="(mail=****)"
				>


<cfoutput query="EntryList">
	 DN:#dn#, CN:#cn#, O:#o#, OU:#ou#, C:#c# <br>
</cfoutput>

<p><cfoutput> Record Count: #EntryList.RecordCount# </cfoutput>
	
	<cfcatch><cfdump var="#cfcatch#">
		<cfoutput>
			#CFCATCH.message# - #CFCATCH.detail#
		</cfoutput>
	</cfcatch>
</cftry>
Result:

Connection to LDAP Server failed

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3042412

External Customer Info:
External Company:  
External Customer Name: Joel Stobart
External Customer Email: 48DD18E845BF57E6992015A9
External Test Config: 10/08/2010

Attachments:

Comments: