Re: ColdFusion and Linux

2009-12-03 Thread Raul Riera

>On 12/4/2009 12:34 PM, Raul Riera wrote:
>> am having problems with the cffile tag, it seems that the tag will destroy my
>> accents (spanish) and special characters, I tried using chartset="utf-8" but
>> it is still turning them into ? signs and weird symbols.
>
>first off its "charset". 2nd, is the file actually encoded as utf-8?

Hey Paul, yeah that was a typo here, but in the code is correct, what do you 
mean by actually encoded? in Windows all I need to do is write in the textarea 
the way I want to (accents, special characters, etc) and it's saved alright to 
the database (this is the case here as well, but when writting to the files, 
all gets messed up...

Example:

(this is what I write in the textarea and how is saved in the DB, notice the 
accent in ofreciéndoles)
Pensando en las cambiantes necesidades de nuestros pacientes, renovamos y 
mejoramos nuestras instalaciones,  ofreciéndoles un mejor servicio, con un 
mayor confort, contando siempre con  un trato humano y amable.

(this is what gets written to the filesystem, notice the question mark)
Pensando en las cambiantes necesidades de nuestros pacientes, renovamos y 
mejoramos nuestras instalaciones, ofreci?ndoles un mejor servicio, con un mayor 
confort, contando siempre con un trato humano y amable.

You can check the site at www.bokanova.mx (I have tried using meta tags, and 
everything, how it is now is how it was in Windows.. and working then)

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328828
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ColdFusion and Linux

2009-12-03 Thread Paul Hastings

On 12/4/2009 12:34 PM, Raul Riera wrote:
> am having problems with the cffile tag, it seems that the tag will destroy my
> accents (spanish) and special characters, I tried using chartset="utf-8" but
> it is still turning them into ? signs and weird symbols.

first off its "charset". 2nd, is the file actually encoded as utf-8?

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328827
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


ColdFusion and Linux

2009-12-03 Thread Raul Riera

Hi,

I am new at working with Linux in ColdFusion (plenty of Windows experience) I 
am having problems with the cffile tag, it seems that the tag will destroy my 
accents (spanish) and special characters, I tried using chartset="utf-8" but it 
is still turning them into ? signs and weird symbols.

Does anyone know the solution of this? Also, what would be the recommended 
chmod to use? seems like 777 is the only one that will allow me to write to the 
folder 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328826
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF7 CFCHART - "Unable to find font: Dialog." when Arial is used?

2009-12-03 Thread Rob Barthle

I am getting this error on a pie and bar chart in a CF7 application sitting on 
OS X:

"Unable to find font: Dialog."

What makes no sense is that the font selected in the CFCHART tag is "Arial".

Also, I have another CF7 application that uses CFCHART with Arial selected for 
the font, and there are no problems.

Any ideas where to look for an answer here?

FWIW, I switched the app to run under CF9, and the error went away. The good 
news there is that I think we're about 6 months away from upgrading to CF9. The 
bad news is I need an answer before then. :( 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328825
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: regular expression problem

2009-12-03 Thread Andrew Grosset

Solved!

(http://pics.mysite.com/ + [a-zA-Z\.])* 

http://pics1.mysite.com/xxx.jpg and http://pics.mysite.com/xxx*.jpg are both 
rejected

and http://pics.mysite.com/xxx.jpg is accepted.

>Ah, cool.  Didn't know about AntiSamy.  Reading up :)
>
>On Thu, Dec 3, 2009 at 5:18 PM, Andrew Grosset  wrote:
>
>> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328824
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regular expression problem

2009-12-03 Thread Charlie Griefer

Ah, cool.  Didn't know about AntiSamy.  Reading up :)

On Thu, Dec 3, 2009 at 5:18 PM, Andrew Grosset  wrote:

>
> Yes that would work but this is part of an antisamypolicy.xml file that
> filters all user input - for more info see: "Using AntiSamy to protect your
> CFM pages from XSS hacks"
> http://tinyurl.com/yhl34tn
>
>
> >how about  ?
> >
> >On Thu, Dec 3, 2009 at 4:55 PM, Andrew Grosset 
> wrote:
> >
> >>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328823
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regular expression problem

2009-12-03 Thread Andrew Grosset

Yes that would work but this is part of an antisamypolicy.xml file that filters 
all user input - for more info see: "Using AntiSamy to protect your CFM pages 
from XSS hacks"
http://tinyurl.com/yhl34tn


>how about  ?
>
>On Thu, Dec 3, 2009 at 4:55 PM, Andrew Grosset  wrote:
>
>> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328822
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regular expression problem

2009-12-03 Thread Matt Quackenbush

http://pics\.mysite\.com/.*?\.(gif|jpg|jpeg|png|bmp)\Z",picUrl)
EQ 0>
// don't allow the pic


There is no reason to escape the : or the / like you've done in your
example.  Neither of those are special characters.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328821
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regular expression problem

2009-12-03 Thread Charlie Griefer

how about  ?

On Thu, Dec 3, 2009 at 4:55 PM, Andrew Grosset  wrote:

>
> I'm trying to build a regular expression that only accepts images from "
> http://pics.mysite.com"; (part of an antisamy policy)
>
> my expression:
>
> ^((http\:\/\/pics\.mysite\.com) + ([a-zA-Z\.]))*$
>
> the intention is to allow "http://pics.mysite.com/xxx.jpg";
>
> and disallow http://anyOtherSite.com/xxx.jpg
>
> can anyone see where I'm going wrong?
>
> Andrew
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328820
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


regular expression problem

2009-12-03 Thread Andrew Grosset

I'm trying to build a regular expression that only accepts images from 
"http://pics.mysite.com"; (part of an antisamy policy)

my expression:

^((http\:\/\/pics\.mysite\.com) + ([a-zA-Z\.]))*$

the intention is to allow "http://pics.mysite.com/xxx.jpg";

and disallow http://anyOtherSite.com/xxx.jpg

can anyone see where I'm going wrong?

Andrew 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328819
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accordion - How do you?

2009-12-03 Thread Kim Hoopingarner

Good stuff.  Easy to figure out.  Thanks for the lead!
kim 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328818
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Accordion - How do you?

2009-12-03 Thread Kim Hoopingarner

Yes, I googled and found it before your info came.  :)  But thanks.

So I implemented the js into the picture and added your code.  Aside from the 
additional paran I added in the onclick - the code is identical and not quite 
working.  First - I need the text to not show initially upon creating the 
accordion.  Then the 2nd issue - it seems to close the text, but not open.  I 
really appreciate the help.  I've never used jquery.js.  Seems to be something 
I should learn.

Kim

Here's the code...









function UpDown(el){
  $(".open").slideUp();
  $(".open").removeClass("open");
  $(el).addClass("open");
}





  


  
TITLE OF PANEL  
  
  
Disclaimer

 TEXT

  
  




var couponAccordion = new  Spry.Widget.Accordion("couponAccordion", { 
defaultPanel: -1, nextPanelKeyCode: 78 /* n key */, previousPanelKeyCode: 80 /* 
p key */ , enableAnimation: false }); 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328817
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Accordion - How do you?

2009-12-03 Thread Charlie Griefer

www.jquery.com :)

On Thu, Dec 3, 2009 at 3:53 PM, Kim Hoopingarner <
k.hoopingar...@e-details.com> wrote:

>
> what is jquery?
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328816
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accordion - How do you?

2009-12-03 Thread Gerald Guido

My bad in advance

>>what is jquery?

http://tinyurl.com/mbteqj

G!

On Thu, Dec 3, 2009 at 6:53 PM, Kim Hoopingarner <
k.hoopingar...@e-details.com> wrote:

>
> what is jquery?
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328815
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accordion - How do you?

2009-12-03 Thread Kim Hoopingarner

what is jquery? 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328814
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accordion - How do you?

2009-12-03 Thread Tony Bentley

get jquery and then use this:
function UpDown(el){
$(".open").slideUp();
$(".open").removeClass("open");
$(el).addClass("open");
}

then use UpDown and pass in the element you want to open

Click here

content

content with div open by default but will slide up next 
click 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328813
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Accordion - How do you?

2009-12-03 Thread Kim Hoopingarner

I have a client that has a different image showing on each content panel of an 
accordion.  They also have a link showing that when clicked needs to expand 
that same panel with additional text.  (It shows Disclaimer info)

I set up the accordion.  All is well. I have 5 panels with content. I put the 
disclaimer text into TEXT 
HERE

Then when the link is clicked I execute a simple javascript:
function showOrHideDisclaimer()
{
if (document.getElementById("hiddenDisclaimer").style.display == 
"none"){
   document.getElementById("hiddenDisclaimer").style.display = 
"block";
}
else {
   document.getElementById("hiddenDisclaimer").style.display = 
"none";
}
}

The concept works, but only having an effect on panel #1's content.  So if I 
click on the link in panel #2 - panel #1 is altered, not #2.  I can't figure 
this one out.  Hoping I was clear and you know the secret!

Thanks!
Kim 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328812
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: IsValid() email checking issue

2009-12-03 Thread Tony Bentley

I would think the best approach is to regex the email address to remove the 
junk, then check to see if it valid using isvalid(). This way your 
"test...@gmail.comx/,,/xmail.com,/." will parse to "test...@gmail.comx" and 
then return not valid. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328811
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: IsValid() email checking issue

2009-12-03 Thread Judah McAuley

I would agree that "b...@example.comqrst" should fail validation.

But what about "b...@example.com  " or "b...@example.com  some text"?

An email to "b...@example.com  " would work just fine. "b...@example.com
 some text" may or may not, I'm not 100% certain how an SMTP server
would deal with that. I'd probably want my validation routine to fail
that one I think as email addresses with spaces in them are not valid
except in the special case of "Bob Smith". I'm not
sure how the isValid routine deals with that special case. If it is
allowing "b...@example.com some text" to pass validation, I'd report it
as a bug.

Cheers,
Judah

On Thu, Dec 3, 2009 at 11:02 AM, Scott Weikert  wrote:
>
> Basically, yeah. That's a good way to put it - it's doing an implicit trim.
>
> The string going into the IsValid is a legit email, followed by some
> other characters - not just spaces.
>
> Those extra charactesrs *should* trip the validation and return false -
> but it's not. And even if it were spaces on the end, that should trip a
> false result as well.
>
> And yes, I also tend to trim strings as a general rule. But these are
> getting in due to doing bulk-inserts using SQL Server.
>
> Judah McAuley wrote:
>> I'm not entirely sure what you are considering as a bug here. Are you
>> saying that the isValid is doing a Trim implicitly and you think it
>> shouldn't? I don't think I'd call that a bug, myself. When I write
>> validation routines, I tend to trim strings automatically before
>> running my validation against them, that's just common practice. I
>> would expect Adobe to do so in its built-in functions.
>>
>> Judah
>>
>>
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328810
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Error consuming Fedex webservices

2009-12-03 Thread Chad Gray

Have you tried Float instead of string with javaCast() on those dates?



> -Original Message-
> From: Leigh [mailto:cfsearch...@yahoo.com]
> Sent: Thursday, December 03, 2009 1:38 PM
> To: cf-talk
> Subject: Re: Error consuming Fedex webservices
> 
> 
> I have tried a number of things. But no luck getting past the errors yet.
> Like I said earlier, the Fedex webservices are painful to use due to all
> the deep nesting.
> 
> Have you looked into the soap/cfhttp route?  The sample
> ProcessTagRequest.txt does work. So you might consider it.
> 
> -Leigh
> 
> 
> 
> 
> 
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328809
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Error consuming Fedex webservices

2009-12-03 Thread deepa makkar

I gave up on webservices and started working with Soap/cfhttp and IT
WORKS!
I just have to figure out now how to send in multiple packages.
Thanks for all your help



On Thu, Dec 3, 2009 at 12:38 PM, Leigh  wrote:

>
> I have tried a number of things. But no luck getting past the errors yet.
> Like I said earlier, the Fedex webservices are painful to use due to all the
> deep nesting.
>
> Have you looked into the soap/cfhttp route?  The sample
> ProcessTagRequest.txt does work. So you might consider it.
>
> -Leigh
>
>
>
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328808
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF7 multiserver config with JRun and SSL = 500 errors

2009-12-03 Thread Rob Barthle

That was it!! Thank you so much. I am going to blog about this to put it all 
together. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328807
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: IsValid() email checking issue

2009-12-03 Thread Scott Weikert

Basically, yeah. That's a good way to put it - it's doing an implicit trim.

The string going into the IsValid is a legit email, followed by some 
other characters - not just spaces.

Those extra charactesrs *should* trip the validation and return false - 
but it's not. And even if it were spaces on the end, that should trip a 
false result as well.

And yes, I also tend to trim strings as a general rule. But these are 
getting in due to doing bulk-inserts using SQL Server.

Judah McAuley wrote:
> I'm not entirely sure what you are considering as a bug here. Are you
> saying that the isValid is doing a Trim implicitly and you think it
> shouldn't? I don't think I'd call that a bug, myself. When I write
> validation routines, I tend to trim strings automatically before
> running my validation against them, that's just common practice. I
> would expect Adobe to do so in its built-in functions.
>
> Judah
>
>   


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Error consuming Fedex webservices

2009-12-03 Thread Leigh

I have tried a number of things. But no luck getting past the errors yet. Like 
I said earlier, the Fedex webservices are painful to use due to all the deep 
nesting.   

Have you looked into the soap/cfhttp route?  The sample ProcessTagRequest.txt 
does work. So you might consider it.

-Leigh



  

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328805
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: IsValid() email checking issue

2009-12-03 Thread Judah McAuley

I'm not entirely sure what you are considering as a bug here. Are you
saying that the isValid is doing a Trim implicitly and you think it
shouldn't? I don't think I'd call that a bug, myself. When I write
validation routines, I tend to trim strings automatically before
running my validation against them, that's just common practice. I
would expect Adobe to do so in its built-in functions.

Judah

On Thu, Dec 3, 2009 at 10:08 AM, Scott Weikert  wrote:
>
> Oh, it's easy enough to work-around. Doing that now.
>
> I'm just saying, it looks like a bug that *shouldn't* need work-arounds.
>
> Jason Fisher wrote:
>> As a hack to your script, how about adding a simple string test?
>>
>> 
>> ... handle exception ...
>> 
>>
>> That would leverage isValid() for the actual string content, but it would
>> separately catch any address that hadn't been trimmed.
>>

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328804
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF7 multiserver config with JRun and SSL = 500 errors

2009-12-03 Thread Dave Watts

> You probably have a virtual host set up for your SSL host? Are you
> sure you have your  JRunConfig Bootstrap set to the port of your
> instance inside the conf of that SSL vhost?

Seconding this. This is the most likely cause of your problem. There
are no settings you have to change in JRun/CF to use SSL with an
external web server.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328803
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: IsValid() email checking issue

2009-12-03 Thread Scott Weikert

Oh, it's easy enough to work-around. Doing that now.

I'm just saying, it looks like a bug that *shouldn't* need work-arounds.

Jason Fisher wrote:
> As a hack to your script, how about adding a simple string test?
>
> 
> ... handle exception ...
> 
>
> That would leverage isValid() for the actual string content, but it would 
> separately catch any address that hadn't been trimmed.
>   


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328802
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


re: IsValid() email checking issue

2009-12-03 Thread Jason Fisher

As a hack to your script, how about adding a simple string test?


... handle exception ...


That would leverage isValid() for the actual string content, but it would 
separately catch any address that hadn't been trimmed.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328801
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFMap weirdness

2009-12-03 Thread Josh Remus

I'm playing with CF9 for the first time on my local machine (Windows 7 / 
IIS) and have CF working fine.  I've been trying to make CFMap work, but 
I'm getting no response to the simplest examples of code.  Example:



This is all I have in the page.  It doesn't throw an error, it just 
shows NOTHING.  I've thrown CFTry/Catch around it, but it's not throwing 
any errors.  I have the google maps key appropriately defined (removing 
that DOES throw an error).  Nothing in the logs.  It seems to parse the 
page just fine, but displays nothing. 

Does anyone have a suggestion on where to look to track down the problem?

Thanks!

Josh

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328800
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


IsValid() email checking issue

2009-12-03 Thread Scott Weikert

Hey gang.

It seems that (in CF8) using IsValid() to check for valid email 
addresses has an issue.

I've got a system where folks can upload data files to get dumped into 
DB tables. Sometimes, these data files end up with extra odd invisible 
characters on the end of some fields (junky source data), and sometimes 
these end up in the column with the email addresses.

My old CF code for using these emails, I had a Trim() on the email field 
prior to pushing through the cfmail tag. The Trim() would remove any 
offending extra crapola just fine.

We just put into service a rework of part of our system, done in PHP. At 
one point, there was no Trim() (same function in both) on the email 
addresses. And emails with the extra junk would trip an exception, get 
caught, I'd get an email with the info.

I had a script from a while back that would read all the emails in our 
system, loop over and validate using IsValid(), and nuke any bad 
addresses. Trick is, IsValid() isn't catching these addresses. It's 
passing them through as good.

Is this a known bug in CF8?

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328799
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: isUserInRole() vs. Session.Authenticated.

2009-12-03 Thread Andrew Grosset

I for one, role my own. Use cfdump to see how the session scope is constructed 
and StructKeyExists() to check if a variable exists.

Andrew.

> I've been digging through an older app of mine. All of my security 
> checks use the IsUserInRole() function. I just added the ckFinder 
> "plugin" which required creating/setting session.Authenticated (or 
> another session variable) to allow access.
> 
> This got me thinking, is managing your own session variables superior 
> or inferior to using the integrated IsUserInRole() check? 
> 
> I'm interested in seeing how the community weighs in on this. 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Error consuming Fedex webservices

2009-12-03 Thread deepa makkar

I was also getting this error. Response: Highest Severity = ERROR
  Ready date should be after the current date.

The dates you use for this should not be the same day as today. Change them
to 12/04/2009. I am thing you are still using 12/03/2009

After changing the date I get through his error but then get the other
error.
NumberFormatException.




On Thu, Dec 3, 2009 at 9:36 AM, Leigh  wrote:

>
> > I am thinking this has to do with the dates.
>
> I do not think so.  The wsdl says "datetime", which is what you are passing
> in.  I believe CF converts the objects to whatever the correct format is on
> the back-end.
>
>
> Have you tried deleting the webservice in the ColdFusion Administrator?
> Maybe something is cached.  Because I can run almost the exact code you
> posted under CF9 and it works for me:
>
>   Response: Highest Severity = ERROR
>   Ready date should be after the current date
>
> The only real difference is my url, since you added the explicit array.
>
> ...
> 
> 
>  tagData.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes =
> serviceTypes>
>
> http://127.0.0.1:8500/ws/fedex/ShipService_v7.wsdl";
>   method="processTag"
>   returnvariable="shipReply"
>  >
>   
> 
>
> Response: Highest Severity =
> #shipReply.getHighestSeverity().readResolve()#
> #shipreply.getNotifications(0).getMessage()#
>
>
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328797
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Error consuming Fedex webservices

2009-12-03 Thread Leigh

> I am thinking this has to do with the dates.

I do not think so.  The wsdl says "datetime", which is what you are passing in. 
 I believe CF converts the objects to whatever the correct format is on the 
back-end.


Have you tried deleting the webservice in the ColdFusion Administrator? Maybe 
something is cached.  Because I can run almost the exact code you posted under 
CF9 and it works for me: 

   Response: Highest Severity = ERROR
   Ready date should be after the current date 

The only real difference is my url, since you added the explicit array. 

...




http://127.0.0.1:8500/ws/fedex/ShipService_v7.wsdl";
   method="processTag"
   returnvariable="shipReply"
 >
   


Response: Highest Severity = 
#shipReply.getHighestSeverity().readResolve()#
#shipreply.getNotifications(0).getMessage()#


  

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328796
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Error consuming Fedex webservices

2009-12-03 Thread deepa makkar

We tried the fedex support line. They are getting an invalid date warning
(not an error).

I have also tried using javacast() or objNonNegInteger() for sending some
package data like package count, height, length etc.

I have looked at the blog you mentioned below. I am using rate services as
described there and it works just fine. It's this ship service which is
throwing an error. In this blog for rate service,  the shiptimestamp is
being sent as now().
Shiptimestamp is a required field in ship services but for rate services
it's optional so rate services may just be ignoring it.

On Thu, Dec 3, 2009 at 8:58 AM, Chad Gray  wrote:

>
> Are there any integers that you need to use javacast() or
> objNonNegInteger()?
>
> Like on my code to get shipping rates I needed javacast and
> objNonNegInteger on this line:
>
>  objNonNegInteger.init("#JavaCast("string",
> listLen(attributes.PkgWeights))#")>
>
> There is a good blog post on using the WSDL locally instead of using
> CFInvoke that got me going in the right direction:
>
> http://cfsearching.blogspot.com/2007/12/how-heck-do-you-use-fedex-rate-web.html
>
> You may also try calling the fedex web service support line. They can look
> at your request as it happens and possibly tell you what part is erroring.
>
> Chad
>
>
> > -Original Message-
> > From: deepa makkar [mailto:deepasmak...@gmail.com]
> > Sent: Wednesday, December 02, 2009 6:05 PM
> > To: cf-talk
> > Subject: Error consuming Fedex webservices
> >
> >
> > I am trying to use fedex call tag webservice and getting the below error
> >
> > Cannot perform web service invocation processTag.
> > The fault returned when invoking the web service operation is:
> >
> > AxisFault
> >  faultCode:
> > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> >  faultSubcode:
> >  faultString: java.lang.NumberFormatException: Invalid positiveInteger:
>  0
> >
> >
> > Here's the code:
> >
> > 
> >
> > 
> > 
> >  > "BBLg2iSxO5sc9i6k" />
> >  > "JCJQV9CU0qIrvwrS52haPKXDK" />
> >
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> >  > 3,8, 0, 0)>
> >
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  > packagesArray>
> >
> > 
> > 
> >  > tagData.RequestedShipment.ShippingChargesPayment.Payor.AccountNumber =
> > "510087020">
> >  > = "US">
> >  > "COMMON2D">
> >
> > 
> > 
> > 
> >
> >  > CreateDateTime(2009, 12, 3,8, 0, 0)>
> >  > CreateDateTime(2009, 12, 3,11, 0, 0)>
> >  > "Testing">
> > 
> >  > "AUTOMATION">
> >
> >  >
> tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Rm
> > a.Number = "3541056465">
> >  >
> tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Rm
> > a.Reason = "abc">
> >
> >  >
> tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Re
> > turnType = "FEDEX_TAG">
> >
> > 
> >  > tagData.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes =
> > serviceTypes>
> >
> > 
> >  >method="processTag"
> >returnvariable="shipReply"
> >proxyserver="http-proxy.pitts.bayer.com"
> >proxyport="80"
> >proxyuser="SHA-BayerDVM"
> >proxypassword="zseCFT63">
> >
> > 
> >
> > 
> > Response: Highest Severity =
> > #shipReply.getHighestSeverity().readResolve()#
> > #shipreply.getNotifications(0).getMessage()#
> >
> >
> >
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328795
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Error consuming Fedex webservices

2009-12-03 Thread deepa makkar

I tried using explicit array declaration. Still getting the same error. I am
thinking this has to do with the dates.




I have tried different different date formats.
DateFormat(Now(),"-mm-dd") & TimeFormat (Now()," hh:mm tt ")>
and also tried hardcoding the date "2009-12-4 08:00:00".

The wsdl expects the date in the xsd:dateTime format (2009-12-04T08:00:00)
and coldfusion is supposed to convert the date object into xsd:datetime
while consuming web services. It may not be doing that.



On Wed, Dec 2, 2009 at 10:52 PM, Leigh  wrote:

>
> > 
>
> Try it using an explicit array declaration instead.
>
> ie
>
> 
> 
>
> OR
>
> 
> 
>
> -Leigh
>
>
>
>
>
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328794
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Error consuming Fedex webservices

2009-12-03 Thread Chad Gray

Are there any integers that you need to use javacast() or objNonNegInteger()?

Like on my code to get shipping rates I needed javacast and objNonNegInteger on 
this line:



There is a good blog post on using the WSDL locally instead of using CFInvoke 
that got me going in the right direction:
http://cfsearching.blogspot.com/2007/12/how-heck-do-you-use-fedex-rate-web.html

You may also try calling the fedex web service support line. They can look at 
your request as it happens and possibly tell you what part is erroring.

Chad


> -Original Message-
> From: deepa makkar [mailto:deepasmak...@gmail.com]
> Sent: Wednesday, December 02, 2009 6:05 PM
> To: cf-talk
> Subject: Error consuming Fedex webservices
> 
> 
> I am trying to use fedex call tag webservice and getting the below error
> 
> Cannot perform web service invocation processTag.
> The fault returned when invoking the web service operation is:
> 
> AxisFault
>  faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>  faultSubcode:
>  faultString: java.lang.NumberFormatException: Invalid positiveInteger:  0
> 
> 
> Here's the code:
> 
> 
> 
> 
> 
>  "BBLg2iSxO5sc9i6k" />
>  "JCJQV9CU0qIrvwrS52haPKXDK" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  3,8, 0, 0)>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  packagesArray>
> 
> 
> 
>  tagData.RequestedShipment.ShippingChargesPayment.Payor.AccountNumber =
> "510087020">
>  = "US">
>  "COMMON2D">
> 
> 
> 
> 
> 
>  CreateDateTime(2009, 12, 3,8, 0, 0)>
>  CreateDateTime(2009, 12, 3,11, 0, 0)>
>  "Testing">
> 
>  "AUTOMATION">
> 
>  tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Rm
> a.Number = "3541056465">
>  tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Rm
> a.Reason = "abc">
> 
>  tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Re
> turnType = "FEDEX_TAG">
> 
> 
>  tagData.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes =
> serviceTypes>
> 
> 
> method="processTag"
>returnvariable="shipReply"
>proxyserver="http-proxy.pitts.bayer.com"
>proxyport="80"
>proxyuser="SHA-BayerDVM"
>proxypassword="zseCFT63">
>
> 
> 
> 
> Response: Highest Severity =
> #shipReply.getHighestSeverity().readResolve()#
> #shipreply.getNotifications(0).getMessage()#
> 
> 
> 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328793
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF7 multiserver config with JRun and SSL = 500 errors

2009-12-03 Thread Maureen Barger

You probably have a virtual host set up for your SSL host? Are you
sure you have your  JRunConfig Bootstrap set to the port of your
instance inside the conf of that SSL vhost?

On Thu, Dec 3, 2009 at 09:24, Rob Barthle  wrote:
>
>>You can run the site via Apache with SSL without needing SSL on the
>>proxyService. The communication between Apache and CF is all local, so
>>SSL is less important at that point.
>>
>
> You would think that to be the case, but right now I cannot make that happen. 
> Commenting out all the SSL related attributes in jrun.xml for that CF server 
> does not alleviate the error. I still get the exact same message "JRun will 
> not accept request.  Check JRun web server configuration and JRun mappings on 
> JRun server.". So something does have to be set in JRun it seems, I just have 
> no idea at this point.
>
> HTTP (port 80) files run fine.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328792
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF7 multiserver config with JRun and SSL = 500 errors

2009-12-03 Thread Rob Barthle

>You can run the site via Apache with SSL without needing SSL on the
>proxyService. The communication between Apache and CF is all local, so
>SSL is less important at that point.
>

You would think that to be the case, but right now I cannot make that happen. 
Commenting out all the SSL related attributes in jrun.xml for that CF server 
does not alleviate the error. I still get the exact same message "JRun will not 
accept request.  Check JRun web server configuration and JRun mappings on JRun 
server.". So something does have to be set in JRun it seems, I just have no 
idea at this point.

HTTP (port 80) files run fine. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328791
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF7 multiserver config with JRun and SSL = 500 errors

2009-12-03 Thread Rob Barthle

I get that same Apache error if I have the SSL information commented out of the 
jrun.xml file as well. That's what led me down this path, since SSL is not set 
up in JRun by default. For whatever reason, JRun is not accepting requests 
coming from the SSL port and I need to get that resolved. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328790
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4