RE: I/O Exception: Name in certificate does not match host name

2015-04-09 Thread Ian Chapman

Ok thanks Dave I'll look into that idea.

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: 08 April 2015 22:47
To: cf-talk
Subject: Re: I/O Exception: Name in certificate does not match host name


 3) The dev API is (real domain names replaced with domain1 and 
 domain2) prerelease-api.domain2.com initially this gave the error:

 I/O Exception: Name in certificate `*.domain1.net' does not match host 
 name `prelease-api.domain2.com'

 I tried adding to the hosts:

 xx.xxx.xxx.xxx  prelease-api.domain1.net

 where xx.xxx.xxx.xxx is the resolving IP address of 
 prelease-api.domain2.com

 restarted CF and called prelease-api.domain1.net in my CFHTTP request 
 and I get a 404 error, so I no longer get the IO error but I'm not 
 hitting the correct server/application

It's possible they're looking for host headers to figure out how to resolve
requests. You might be able to specify the host header separately within
your CFHTTP request, but I've never tried it to be honest.

Dave Watts, CTO, Fig Leaf Software
1-202-527-9569
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business
(SDVOSB) on GSA Schedule, and provides the highest caliber vendor-
authorized instruction at our training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360438
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


I/O Exception: Name in certificate does not match host name

2015-04-08 Thread Ian Chapman

Hi Guys,

Some time ago I posted a question about an error we were getting with MX7.1

http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353955

I have a similar problem but I believe the client is using a widlcard 
certificate so I get the error:

I/O Exception: Name in certificate `*.domain.net' does not match host name 
`prerelease-api.anotherdomain.com'

The difference this time is the '*.domain.net', previously it was for a 
determined sub domain so an aaddition to the host file resolved it.

I've trid a number of things with the host file but as it's a wildcard I don't 
see what I would add to the hosts as any number of subdomains on domain.net 
could resovle to a number of IP's.

Any ideas?

Regards,

Ian. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360425
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: I/O Exception: Name in certificate does not match host name

2015-04-08 Thread Ian Chapman

I've tried it that way but no dice, let show you what I have tried:

1) Exported the cert and imported into the Truststore (this should not have
been needed as it is a Thawte issued certificate which is already in the
trsutstore and lack of record in the truststore causes a different IO
error). This caused no change.


2) The live API is api.domain2.com initially this gave the error:

(note: real domain names replaced with domain1 and domain2)

I/O Exception: Name in certificate `api.domain1.net' does not match host
name `api.domain2.com'

So I added to the hosts:

xx.xxx.xxx.xxx  api.domain1.net

where xx.xxx.xxx.xxx is the resolving IP address of api.domain2.com

restarted CF and called api.domain1.net in my CFHTTP request and this works
and I can connect to the live API when the time comes.


3) The dev API is (real domain names replaced with domain1 and domain2)
prerelease-api.domain2.com initially this gave the error:

I/O Exception: Name in certificate `*.domain1.net' does not match host name
`prelease-api.domain2.com'

I tried adding to the hosts:

xx.xxx.xxx.xxx  prelease-api.domain1.net

where xx.xxx.xxx.xxx is the resolving IP address of prelease-api.domain2.com

restarted CF and called prelease-api.domain1.net in my CFHTTP request and I
get a 404 error, so I no longer get the IO error but I'm not hitting the
correct server/application






What Dave said.

On Wed, Apr 8, 2015 at 10:01 AM, Dave Watts dwa...@figleaf.com wrote:


  I think you'll need to update the hosts file so that:
 
  prerelease-api.anotherdomain.com
 
  ...points to the right IP and then refer to:
 
  prerelease-api.anotherdomain.com
 
  ...in your code. That should make everything line up.

 I think this is nearly right, except that you'll need to find the IP 
 address for prerelease-api.anotherdomain.com and create a hosts entry 
 for prerelease-api.domain.com that points to this IP address.

 Dave Watts, CTO, Fig Leaf Software
 1-202-527-9569
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business
 (SDVOSB) on GSA Schedule, and provides the highest caliber vendor- 
 authorized instruction at our training centers, online, or onsite.

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360430
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: UTF8 encoding issues on response from HTTP request

2014-01-18 Thread Ian Chapman

Hi John,

They do run off the same MSSQL database server, but this is not database
data, it's data from a PHP API (which does happen to run on the same
servers), which in turn is calling an external PHP API. Even if I call the
external API directly from CF, same thing happens, so I do not believe it
is our PHP API causing the problem.

It's really bizzare because we integrate with so many API's from many
external sources (returning XML/SOAP/WSDL/JOSN etc) but whenever we get
UTF-8 corruption issue a setting on a CF tag or function will always fix it.

This one server did forcibly reboot after a CF crash and may have upgraded
Windows/Java/JVM. I need to look into when last upgrades happened to see if
any were recent.

Any suggestions on how I can look deeper into the interaction between CF
and the API(s)? IIS/Jrun level perhaps?

Regards,

Ian.





On Fri, Jan 17, 2014 at 7:52 PM, Jon Clausen
jon_clau...@silowebworks.comwrote:


 Are they both running off of the same database server?  If not are all the
 database table encodings set to UTF8?  I had a similar Problem with a pair
 of clustered PostgreSQL servers once where the second server defaulted to
 LATIN1 and was returning data like what you have below.
 HTH,
 Jon


 On Jan 17, 2014, at 2:08 PM, Ian Chapman ian.chap...@melodimedia.co.uk
 wrote:

 
  Hi Guys,
 
  I have been banging my head against a brick wall on something for a
 couple of days now.
 
  We have two load balanced Windows 2008 server running CF MX 7 on JRUN.
 
  I am calling a simple HTTP API using CFHTTP. If I dump the XML which I
 get from the response immediately after on one server the output is ok, but
 on the other the unicode characters are getting mangled.
 
  i.e. médico becomes médico
 
  I have called the API from a brand new IIS application with just the
 HHTP request and the CFoutput of the CFHTTP filecontent and that's what
 happens.
 
  So something like:
 
  cfhttp url=#myURL#
  cfoutput#cfhttp.filecontent#/cfoutput
 
  I have tried all the things you do to deal with UTF-8 encoding, but the
 fact that it only happens on one server makes me think it's a setting in
 CFadmin or Jrun causing the issue.
 
  Any ideas guys?  I'm desperate!!
 
  Thanks,
 
  Ian.
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


UTF8 encoding issues on response from HTTP request

2014-01-17 Thread Ian Chapman

Hi Guys,

I have been banging my head against a brick wall on something for a couple of 
days now.

We have two load balanced Windows 2008 server running CF MX 7 on JRUN.

I am calling a simple HTTP API using CFHTTP. If I dump the XML which I get from 
the response immediately after on one server the output is ok, but on the other 
the unicode characters are getting mangled.

i.e. médico becomes médico

I have called the API from a brand new IIS application with just the HHTP 
request and the CFoutput of the CFHTTP filecontent and that's what happens.

So something like:

cfhttp url=#myURL#
cfoutput#cfhttp.filecontent#/cfoutput

I have tried all the things you do to deal with UTF-8 encoding, but the fact 
that it only happens on one server makes me think it's a setting in CFadmin or 
Jrun causing the issue.

Any ideas guys?  I'm desperate!!

Thanks,

Ian.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357473
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: UTF8 encoding issues on response from HTTP request

2014-01-17 Thread Ian Chapman

Hi Dave,

I've done both of those things. My CFHTTP request has the charset=utf-8
parameter on it btw. On the rogue box when saving the cfhttp output to a
file it is still mangled. There is also a json response option from the API
and that too does the same to the data. 

This the cfhttp header output:

Charset  [empty string] 
ErrorDetail  [empty string] 
Filecontent  A CFHttp.Filecontent variable is not created if a file path
is specified. 
Header   HTTP/1.1 200 Content-Type: application/xml Date: Fri, 17 Jan 2014
20:15:50 GMT Server: Microsoft-IIS/7.0 Content-Length: 2271 X-Powered-By:
PHP/5.3.27 X-Powered-By: ASP.NET 
Mimetype application/xml 
Responseheader  struct
Content-Length   2271 
Content-Type application/xml 
Date Fri, 17 Jan 2014 20:15:50 GMT 
Explanation  [empty string] 
Http_Version HTTP/1.1 
Server   Microsoft-IIS/7.0 
Status_Code  200 
X-Powered-Bystruct
1PHP/5.3.27 
2ASP.NET 


Statuscode   200 
Text NO


I'm starting to wonder if this may be a slight difference in CF/Java/JVM
versions on the two boxes? They are all slightly different versions.




-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: 17 January 2014 19:48
To: cf-talk
Subject: Re: UTF8 encoding issues on response from HTTP request


 I am calling a simple HTTP API using CFHTTP. If I dump the XML which I 
 get from the response immediately after on one server the output is ok,
but on the other the unicode characters are getting mangled.

 i.e. médico becomes médico

 I have called the API from a brand new IIS application with just the 
 HHTP request and the CFoutput of the CFHTTP filecontent and that's what
happens.

 So something like:

 cfhttp url=#myURL#
 cfoutput#cfhttp.filecontent#/cfoutput

 I have tried all the things you do to deal with UTF-8 encoding, but 
 the fact that it only happens on one server makes me think it's a setting
in CFadmin or Jrun causing the issue.

Well, this could be one of two things:
- the problem server is fetching the file wrong, or
- it's displaying the output wrong.

I'd first change the CFHTTP to save the results to a file, then open the
file and see what's in it.

Also, I'd make sure that CF is actually sending UTF-8 output. What do you
see in your HTTP response headers?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357476
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Multiple instances of Railo

2013-09-26 Thread Ian Chapman

Hi Guys,

I did post this in the CF-Server group but it seems quiet in there usually, so 
sorry for this repost in here

We are due to upgrade the hard disks in our two CF web servers and are 
considering fresh installs of a CF server and applications, partly as a clean 
up 
and also to upgrade CF to a more recent version.

We are currently running Windows Server 2008 RC2 on two servers (mirrored and 
accessed via a load balancer) with IIS 7 and ColdFusion MX server 7.1.  And CF 
is 
running on JRun. We have 3 Jrun/CF instances which splits our application by 
type 
so we can restart as certain JRun instance if required without affecting other 
applications.

When MX 7.1 was installed previously we know the tech guy had a nightmare with 
the dll’s which IIS uses to connect to Jrun and had to run IIS in 32 bit mode 
using 32 bit drivers.

We would like to remove these issues and the best way may be to upgrade to a 
later version of CF server which runs on true 64 bit IIS. The powers that be 
will 
not allow the cost of upgrading to a later Adobe CF Server version.. So we are 
considering Railo and are testing a single instance installation at the moment.

Does anybody have experience of running Railo on multiple J2EE instances?  

If so have they any resources which give verbose and accurate step-by-step 
setup 
instructions?

And which J2EE server were they running of those recommended for Railo?

Any advice appreciated as this will be our first CF reinstall since the 
previous 
guy left the company.

Regards,

Ian.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356848
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Easy CFC question (I hope)

2013-05-09 Thread Ian Chapman

Chnage to cfreturn qUserEmail

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: 09 May 2013 16:57
To: cf-talk
Subject: Re: Easy CFC question (I hope)


 cffunction name=adduser hint=Adds a new user to the database 
 returntype=query ...
 cfquery name=qUserEmail
 SELECT fname, lname, email, secureHash
 FROM users
 WHERE userid = #newID#
 /cfquery

 cfreturn adduser
 /cffunction

 The information enters into the db as expected, but when I invoke the
component on the other end:

 cfinvoke method=adduser component=cfc/dbfunctions
returnvariable=userinfo
 cfinvokeargument name=username value=#form.username#
 cfinvokeargument name=userpwd value=#form.userpwd#
 cfinvokeargument name=fname value=#form.fname#
 cfinvokeargument name=lname value=#form.lname#
 cfinvokeargument name=email value=#form.email# 
 /cfinvoke

 I get the error message The value returned from the adduser function 
 is not of type query. If the component name is specified as a return type,
it is possible that either a definition file for the component cannot be
found or is not accessible. The error occurred on line 16.

You specified that the component returns a query object in the first line.
But you're trying to return an instance of the component. You need to change
one or the other. In this case, you probably want to change your CFRETURN to
return the query object:

cfreturn qUserEmail

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355679
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: sql injection attempt

2013-01-24 Thread Ian Chapman

Yes indeed. We had some attempts to injection attack via a fake 
useragent variable in the CGI scope, as we were logging visiting 
useragents in a database table.

Luckily they were not able to execute any code thanks to tight SQL 
permissions, but the code they were trying to execute was written to the 
table.

I'd not even thought of that method till we saw it.

But something to have an eye on.

Regards,

Ian.


On 23/01/2013 19:09, Pete Freitag wrote:
 On Wed, Jan 23, 2013 at 12:57 PM, Rob Voylerobvo...@voyle.com  wrote:


 Hi Greg
 As I continue to update my security processes, I'm curious
 Was this injection attempt at the url or at a form input.

  
 Keep in mind that vulnerabilites can come from any input that the attacker
 can manipulate, eg form, url, cgi, cookie variables are all game.

 --
 Pete Freitag - Adobe Community Professional
 http://foundeo.com/ - ColdFusion Consulting  Products
 http://hackmycf.com - Is your ColdFusion Server Secure?
 http://www.youtube.com/watch?v=ubESB87vl5U - FuseGuard your CFML in 10
 minutes


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354042
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Hi Guys,

I've been wrestling with a problem calling a SOAP Web Service using cfhttp. The 
endpoint is an https URL to a server IP, not a host name.

We are running MX7.

Initially when I tried connecting I got the usual error response from an 
untrusted authority source:

ErrorDetail: I/O Exception: peer not authenticated

Usually when this happens we download the certificate (DER format saved as a 
.cer file) from the site using a browser and add it to the Java SDK truststore 
using the keytool -import  command in the jrun/jre/lib folder.

This all went ok and I can see the certificate when I list them using the 
keytool - list... command.

This changed the error response to:

ErrorDetail: I/O Exception: Name in certificate `hub' does not match host name 
`187.141.14.122'

My first issue is very common and usually easy to resolve, but the latter has 
caused a lot of head banging.

What I can tell is that it seems to be self signed certificate and feel this 
might be part of the problem.

Any ideas?

Regards,

Ian.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353950
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Hi Russ,

When saving the file from Firefox it gets saved by default as HUB.cer. And
that's what I imported into the keystore. I did as a test tried saving as
187.141.14.122.cer but the filename is obviously arbitrary so didn't help.

When I look at the certificate in Windows it says issued to HUB and issued
by HUB. But I'm not sure how you'd create a certificate issued from
187.141.14.122.

This is the end point so you can see the certificate in question if it
helps.

https://187.141.14.122:443/asg/services/SubscribeProductService


Regards,

Ian.


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: 17 January 2013 15:30
To: cf-talk
Subject: Re: https connection issues using cfhttp


Is the ssl cert actually for the ip address, the error says it is for hub

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com -
CF search engine On Jan 17, 2013 3:12 PM, Ian Chapman
ian.chap...@melodimedia.co.uk
wrote:


 Hi Guys,

 I've been wrestling with a problem calling a SOAP Web Service using 
 cfhttp. The endpoint is an https URL to a server IP, not a host name.

 We are running MX7.

 Initially when I tried connecting I got the usual error response from 
 an untrusted authority source:

 ErrorDetail: I/O Exception: peer not authenticated

 Usually when this happens we download the certificate (DER format 
 saved as a .cer file) from the site using a browser and add it to the 
 Java SDK truststore using the keytool -import  command in the 
 jrun/jre/lib folder.

 This all went ok and I can see the certificate when I list them using 
 the keytool - list... command.

 This changed the error response to:

 ErrorDetail: I/O Exception: Name in certificate `hub' does not match 
 host name `187.141.14.122'

 My first issue is very common and usually easy to resolve, but the 
 latter has caused a lot of head banging.

 What I can tell is that it seems to be self signed certificate and 
 feel this might be part of the problem.

 Any ideas?

 Regards,

 Ian.



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353953
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Hi Jeff,

I did see something like that suggested somewhere else but think I had
misunderstood what I should point to the IP.  Now you've said it like that
it makes complete sense.

That works a treat, connecting ok.  Why didn't I post here earlier. :)

Really appreciate your help.

Regards,

Ian.


-Original Message-
From: Jeff Garza [mailto:j...@garzasixpack.com] 
Sent: 17 January 2013 15:37
To: cf-talk
Subject: re: https connection issues using cfhttp


You are going to have to edit your hosts file and create a pointer for hub
that directs it to 187.141.14.122.  Then when you call the webservice,
you'll use https://hub/...; to access it.  I've been through this before as
well and this should do it after you've imported the certificate from the
site.

--
Jeff


 Original Message 
 From: Ian Chapman ian.chap...@melodimedia.co.uk
 Sent: Thursday, January 17, 2013 8:13 AM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: https connection issues using cfhttp
 
 Hi Guys,
 
 I've been wrestling with a problem calling a SOAP Web Service using
cfhttp. The endpoint is an https URL to a server IP, not a host name.
 
 We are running MX7.
 
 Initially when I tried connecting I got the usual error response from 
 an
untrusted authority source:
 
 ErrorDetail: I/O Exception: peer not authenticated
 
 Usually when this happens we download the certificate (DER format 
 saved
as a .cer file) from the site using a browser and add it to the Java SDK
truststore using the keytool -import  command in the jrun/jre/lib
folder.
 
 This all went ok and I can see the certificate when I list them using 
 the
keytool - list... command.
 
 This changed the error response to:
 
 ErrorDetail: I/O Exception: Name in certificate `hub' does not match
host name `187.141.14.122'
 
 My first issue is very common and usually easy to resolve, but the 
 latter
has caused a lot of head banging.
 
 What I can tell is that it seems to be self signed certificate and 
 feel
this might be part of the problem.
 
 Any ideas?
 
 Regards,
 
 Ian.
 
 
 
 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353956
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Ok thanks John.  I did search before posting but didn't see that.


-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com] 
Sent: 17 January 2013 15:48
To: cf-talk
Subject: Re: https connection issues using cfhttp


+1 what Jeff said. Dealt with this same issue here:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:64157


On Thu, Jan 17, 2013 at 9:37 AM, Jeff Garza j...@garzasixpack.com wrote:


 You are going to have to edit your hosts file and create a pointer for 
 hub that directs it to 187.141.14.122.  Then when you call the 
 webservice, you'll use https://hub/...; to access it.  I've been 
 through this before as well and this should do it after you've 
 imported the certificate from the site.

 --
 Jeff


  Original Message 
  From: Ian Chapman ian.chap...@melodimedia.co.uk
  Sent: Thursday, January 17, 2013 8:13 AM
  To: cf-talk cf-talk@houseoffusion.com
  Subject: https connection issues using cfhttp
 
  Hi Guys,
 
  I've been wrestling with a problem calling a SOAP Web Service using
 cfhttp. The endpoint is an https URL to a server IP, not a host name.
 
  We are running MX7.
 
  Initially when I tried connecting I got the usual error response 
  from an
 untrusted authority source:
 
  ErrorDetail: I/O Exception: peer not authenticated
 
  Usually when this happens we download the certificate (DER format 
  saved
 as a .cer file) from the site using a browser and add it to the Java 
 SDK truststore using the keytool -import  command in the 
 jrun/jre/lib folder.
 
  This all went ok and I can see the certificate when I list them 
  using the
 keytool - list... command.
 
  This changed the error response to:
 
  ErrorDetail: I/O Exception: Name in certificate `hub' does not 
  match
 host name `187.141.14.122'
 
  My first issue is very common and usually easy to resolve, but the 
  latter
 has caused a lot of head banging.
 
  What I can tell is that it seems to be self signed certificate and 
  feel
 this might be part of the problem.
 
  Any ideas?
 
  Regards,
 
  Ian.
 
 
 
 

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353957
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


neo-runtime xml

2012-12-31 Thread Ian Chapman

Hi Guys,

(Sorry I may have already posted this on my really old login so aplogies for 
the repost)

We had to reboot an old Win2K box which is running MX 6.1.

Since the reboot all CF pages are rending as white pages, no source/markup etc. 
Including /cfide/Administrator.

When looking at the server.log we see the following:

Information,main,12/31/12,11:12:43,,Starting license...
Information,main,12/31/12,11:12:43,,Starting License server ...
Information,main,12/31/12,11:12:43,,Starting scheduler...
Information,main,12/31/12,11:12:43,,Starting debugging...
Information,main,12/31/12,11:12:43,,Starting sql...
Information,main,12/31/12,11:12:43,,Pool Manager Started
Information,main,12/31/12,11:12:44,,Starting mail...
Error,main,12/31/12,11:12:44,,[C:\CFusionMX\lib\neo-runtime.xml]java.io.FileNotFoundException:
 C:\CFusionMX\lib\neo-runtime.xml (The system cannot find the file specified)
Information,main,12/31/12,11:12:44,,Starting cron...
Information,main,12/31/12,11:12:45,,Starting registry...
Information,main,12/31/12,11:12:45,,Starting client...
Error,main,12/31/12,11:12:45,,The Runtime service is not available. 
This exception is usually caused by service startup failure. Please check your 
server configuration.
Information,main,12/31/12,11:12:45,,Starting xmlrpc...
Information,main,12/31/12,11:12:45,,Starting graphing...

So it looks like we may have lost the neo-runtime.xml file during that reboot 
and don't have a backup.  Does anybody have as near a default neo-runtime.xml 
file or know how we could get one without a CF reinstall. Or know of a way to 
repair this quickly.

Regards,

Ian.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353724
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re:_neo-runtime_xml

2012-12-31 Thread ian . chapman

Thanks for your email. I am currently out of the office until Wednesday 2nd
January 2013. Our offices are closed for the Christmas and New Year Holidays.

For immediate assistance please contact on the email and numbers below
and one of the team will be in touch as soon as possible.

For out of hours support please dial +44 (0)1908 919 089 and leave a detailed
message, or send an email to the relevant address as listed below.

Content Enquiries - cont...@melodimedia.co.uk
Sales - sa...@melodimedia.co.uk
Technical - techni...@melodimedia.co.uk
Support - supp...@melodimedia.co.uk

Many thanks.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353725
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re:_Re:_URGENT_:_How_to_Detect_screen_resolution_in_COLDFUSION?

2012-12-26 Thread ian . chapman

Thanks for your email. I am currently out of the office until Wednesday 2nd
January 2013. Our offices are closed for the Christmas and New Year Holidays.

For immediate assistance please contact on the email and numbers below
and one of the team will be in touch as soon as possible.

For out of hours support please dial +44 (0)1908 919 089 and leave a detailed
message, or send an email to the relevant address as listed below.

Content Enquiries - cont...@melodimedia.co.uk
Sales - sa...@melodimedia.co.uk
Technical - techni...@melodimedia.co.uk
Support - supp...@melodimedia.co.uk

Many thanks.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353688
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re:_Re:__Re:_URGENT_:_How_to_Detect_screen_resolution_in_COLDFUSION?

2012-12-26 Thread ian . chapman

Thanks for your email. I am currently out of the office until Wednesday 2nd
January 2013. Our offices are closed for the Christmas and New Year Holidays.

For immediate assistance please contact on the email and numbers below
and one of the team will be in touch as soon as possible.

For out of hours support please dial +44 (0)1908 919 089 and leave a detailed
message, or send an email to the relevant address as listed below.

Content Enquiries - cont...@melodimedia.co.uk
Sales - sa...@melodimedia.co.uk
Technical - techni...@melodimedia.co.uk
Support - supp...@melodimedia.co.uk

Many thanks.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353691
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re:_Re:_URGENT_:_How_to_Detect_screen_resolution_in_COLDFUSION?

2012-12-24 Thread ian . chapman

Thanks for your email. I am currently out of the office until Wednesday 2nd
January 2013. Our offices are closed for the Christmas and New Year Holidays.

For immediate assistance please contact on the email and numbers below
and one of the team will be in touch as soon as possible.

For out of hours support please dial +44 (0)1908 919 089 and leave a detailed
message, or send an email to the relevant address as listed below.

Content Enquiries - cont...@melodimedia.co.uk
Sales - sa...@melodimedia.co.uk
Technical - techni...@melodimedia.co.uk
Support - supp...@melodimedia.co.uk

Many thanks.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353681
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re:_Re:_URGENT_:_How_to_Detect_screen_resolution_in_COLDFUSION?

2012-12-23 Thread ian . chapman

Thanks for your email. I am currently out of the office until Wednesday 2nd
January 2013. Our offices are closed for the Christmas and New Year Holidays.

For immediate assistance please contact on the email and numbers below
and one of the team will be in touch as soon as possible.

For out of hours support please dial +44 (0)1908 919 089 and leave a detailed
message, or send an email to the relevant address as listed below.

Content Enquiries - cont...@melodimedia.co.uk
Sales - sa...@melodimedia.co.uk
Technical - techni...@melodimedia.co.uk
Support - supp...@melodimedia.co.uk

Many thanks.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353654
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re:_Re:_URGENT_:_How_to_Detect_screen_resolution_in_COLDFUSION?

2012-12-22 Thread ian . chapman

Thanks for your email. I am currently out of the office until Wednesday 2nd
January 2013. Our offices are closed for the Christmas and New Year Holidays.

For immediate assistance please contact on the email and numbers below
and one of the team will be in touch as soon as possible.

For out of hours support please dial +44 (0)1908 919 089 and leave a detailed
message, or send an email to the relevant address as listed below.

Content Enquiries - cont...@melodimedia.co.uk
Sales - sa...@melodimedia.co.uk
Technical - techni...@melodimedia.co.uk
Support - supp...@melodimedia.co.uk

Many thanks.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353620
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Huge rowcounts in CFCLIENTS database

2012-11-15 Thread Ian Chapman

Hi Guys,

I just decided to take a look at our CFCLIENTS database and was alarmed at the 
rowcounts:

CDATA

30825485 rows

CGLOBAL

34472178 rows

Does this seem ridiculously high?

We do have to restart CF from time to time due to issues with lots of file 
manipulations/image creation etc.  So would this mean that the session data 
becomes orphaned from real sessions?

And if the counts seem high what is the safe way to purge these tables?

Regards,

Ian.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353187
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Huge rowcounts in CFCLIENTS database

2012-11-15 Thread Ian Chapman

We're using a CFCLIENTS database as we run a load balanced cluster.

Purge is set to 90 days which I *presume* was the default. Does maybe seem
excessive?


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: 15 November 2012 17:36
To: cf-talk
Subject: Re: Huge rowcounts in CFCLIENTS database


how often do you have it set to purge ?

We use cookie a sthe default storage method for client variables for years,
never had any issues with it so far.



On Thu, Nov 15, 2012 at 5:33 PM, Ian Chapman
ian.chap...@melodimedia.co.ukwrote:


 Hi Guys,

 I just decided to take a look at our CFCLIENTS database and was 
 alarmed at the rowcounts:

 CDATA

 30825485 rows

 CGLOBAL

 34472178 rows

 Does this seem ridiculously high?

 We do have to restart CF from time to time due to issues with lots of 
 file manipulations/image creation etc.  So would this mean that the 
 session data becomes orphaned from real sessions?

 And if the counts seem high what is the safe way to purge these tables?

 Regards,

 Ian.


 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353192
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Huge rowcounts in CFCLIENTS database

2012-11-15 Thread Ian Chapman

Ok thanks, we'll look at lowering the purge time for now.


-Original Message-
From: Nathan Strutz [mailto:str...@gmail.com] 
Sent: 15 November 2012 18:00
To: cf-talk
Subject: Re: Huge rowcounts in CFCLIENTS database


Yes, 90 days is the default, and it is absolutely excessive! How long do you
really need that data to stick around? 30 days? I doubt it. I bet 7 days is
plenty long enough, 1 or 2 days is enough for any normal application. Often,
the database cleanup doesn't actually happen, so you have to do it yourself.
Also, transitioning away from client variables and into a more specific
database structure (as opposed to the vertical storage
[1 row per data element] that is used by client vars) would help you out a
lot.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Thu, Nov 15, 2012 at 10:42 AM, Ian Chapman ian.chap...@melodimedia.co.uk
 wrote:


 We're using a CFCLIENTS database as we run a load balanced cluster.

 Purge is set to 90 days which I *presume* was the default. Does maybe 
 seem excessive?


 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: 15 November 2012 17:36
 To: cf-talk
 Subject: Re: Huge rowcounts in CFCLIENTS database


 how often do you have it set to purge ?

 We use cookie a sthe default storage method for client variables for 
 years, never had any issues with it so far.



 On Thu, Nov 15, 2012 at 5:33 PM, Ian Chapman
 ian.chap...@melodimedia.co.ukwrote:

 
  Hi Guys,
 
  I just decided to take a look at our CFCLIENTS database and was 
  alarmed at the rowcounts:
 
  CDATA
 
  30825485 rows
 
  CGLOBAL
 
  34472178 rows
 
  Does this seem ridiculously high?
 
  We do have to restart CF from time to time due to issues with lots 
  of file manipulations/image creation etc.  So would this mean that 
  the session data becomes orphaned from real sessions?
 
  And if the counts seem high what is the safe way to purge these tables?
 
  Regards,
 
  Ian.
 
 
 



 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353195
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Web service calling a CFC not outputing query object results

2012-06-25 Thread Ian Chapman

Hi guys,

We are running CF MX 7 and I've run into a problem with a CF web service we 
have.

The web service calls a different include depending on the method passed to the 
web service. And each method will return XML output.

For one of the methods/includes I am calling a global CFC function to return a 
query object, this recordset is then added using cfset to an XML to pass back 
to the webservice to output.

When I call the include directly I can output the recordset from the query 
object returned by the CFC function. But when I loop through the recordset to 
create the XML then return the string back to the calling web service I get a 
string back but without the added recordset data. It's like it's lost reference 
to the query object data.

Is this expected behavior in MX 7?

Things I have tried...

- setting the query object to a local variable in the include
- changing the global CFC's access type through public, private, remote
- using different flavours of CFSET, cfsavecontent and Java string buffer etc


Can post simplified code if required. Just curious to know if anyone has 
encountered this before. 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351682
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm