Re: CFDirectory on mapped drives

2011-07-11 Thread David McGuigan

Thanks Russ.

I'm not sure what you wanted me to see in that link, maybe the fact that you
can have multiple admin logins now?

If it's a totally dedicated box and we only have 1 developer's code running,
is it still a security risk? I tried running it as a limited account and
even set full permissions on every file in the webroot but still got an
immediate IIS 500 error until I flipped it to either the local system
account or an admin.

Thanks!
David


On Mon, Jul 11, 2011 at 11:17 AM, Russ Michaels  wrote:

>
> sorry I didn't read all of your post, I see your final paragraph asking if
> you must do this, and the answer is yes.
> however do not run CF as an administrator as this will open up your
> security
> and allow every cfm page to run with administrator access, you need to run
> it as a limited user that can only do what you need it to do.
>
> see this security white paper
>
>
> http://www.adobe.com/products/coldfusion/pdfs/coldfusion_8_product_security_brief.pdf
>
> Russ
>
> On Mon, Jul 11, 2011 at 6:11 PM, Russ Michaels 
> wrote:
>
> >
> > If you are just using the default installation and running cf as "system"
> > then you will have problems access network paths.
> > You need to set CF to run under a user account that have network access.
> >
> > Russ
> >
> >
> > On Mon, Jul 11, 2011 at 5:40 PM, David McGuigan  >wrote:
> >
> >>
> >> I've triple checked that an empty folder on a 2nd server in the same
> >> datacenter allows full write permissions for any type of user, and have
> it
> >> mapped from the CF server. But when I run cfdirectory calls, for lists
> it
> >> returns an empty query even if there are subfolders or files there, for
> >> rename calls it claims that the target subfolder doesn't exist, and for
> >> create calls it simply errors: the specified directory could not be
> >> created.
> >>
> >> Is there some best practice way to set this up with CF? Do I have to
> >> configure the windows service of the CF box to run as an identical user
> to
> >> one on the recipient box? If so other than making sure it's an
> >> administrator
> >> is there anything else I need to do?
> >>
> >> Thanks guys.
> >>
> >>
> >>
>
> 

~|
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:346186
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: remove high ASCII chars from text

2011-07-11 Thread Peter Boughton

Jason wrote:
>Text = reReplace(Text, "[^\x20-\x7E]", "", "all");

That'll also strip tabs, newlines and carriage returns, which probably isn't 
desired.

Use [^\t\n\r\x20-\x7E] to keep them.


However, this shouldn't be necessary - doesn't TinyMCE already have the ability 
to clean-up MS Word pastes? 

~|
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:346185
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: dynamic if statements

2011-07-11 Thread Richard White

:) absolutely right, thanks bobby!

>I meant assume TRUE to start of course
>
>
>.:.:.:.:.:.:.:.:.:.:.:.:.:.
>Bobby Hartsfield
>http://acoderslife.com
>http://cf4em.com
>
>
>
>Since they are all Booleans (judging from the way you referenced them) only
>one of them has to be false for the whole if to fail.
>
>So, assume false to start, then loop over each item until you either reach
>the end or one is false.
>
>Example... you have a, b, and c
>
>
>
>
>
>
>
>
>
>   
>   
>   
>   
>
>
>
>   Do whatever because all variables were true 
>
>   Don't process because one or more variables was false 
>
>
>
>Running that should Result in "Do whatever because all were true"
>
>If you change any of the A, B or C vars to false at the top, the result
>should be "Don't process because one or more variables was false"
>
>
>If you wont know the a,b,c variables, then Id do what I could to put them
>into a unique structure then loop over that structure...
>
>For example...
>
>
>
>
>
>
>
>
>
>   
>   
>   
>   
>
>
>
>   Do whatever because all variables were true 
>
>   Don't process because one or more variables was false 
>
>
>
>.:.:.:.:.:.:.:.:.:.:.:.:.:.
>Bobby Hartsfield
>http://acoderslife.com
>http://cf4em.com
>
>
>thanks bobby, yes i am also noticing evaluate runs slow as the processing
>increases.
>
>i like your example although how would i write the code if sometimes there
>are 3 variables, sometimes 4 etc... it almost seems to me there needs to be
>a loop inside the if statement, unless i am misunderstanding this?
>
>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:346184
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Verity Collection CF 9.0.1

2011-07-11 Thread Nick Gleason

Hi there.  I haven't had that exact problem, but we have used verity a lot
over the years.  One thing that is typically helpful is looking at the
various log files.  Verity seems to have a lot of log files but here are
some that I have noted over the years (note - these paths are from CF7 but
perhaps they are similar in CF9):
\CFusionMX7\verity\Data\services\ColdFusionK2_server1\log\status.log
\CFusionMX7\verity\Data\services\ColdFusionK2_server1\diag\diag.log
\CFusionMX7\verity\Data\services\ColdFusionK2_indexserver1\log\staus.log
\CFusionMX7\verity\Data\services\ColdFusionK2_indexserver1\log\diag.log
\CFusionMX7\verity\Data\host\log\audit.log
\CFusionMX7\verity\Data\host\log\status.log

Here is one from CF9 that I have used recently:
E:\ColdFusion9\verity\Data\services\ColdFusionK2_indexserver1\log\status.log

Hope that helps!

Nick


> -Original Message-
> From: mikey graziano [mailto:mikey.grazi...@us.army.mil]
> Sent: Monday, July 11, 2011 5:39 AM
> To: cf-talk
> Subject: Verity Collection CF 9.0.1
> 
> 
> In the ColdFusion Collection, I 'm trying to create a verity
> collection. When I create the new collection it completes without
> errors, but does not show up in the list of collections within my CF
> Administrator. If I try to create it again, it tells me that the
> collection already exists, but it still does not appear in the
> administrator. I don't see any issues in the exception, application, or
> server logs. Any suggestions on how to troubleshoot this issue?
> 
> 
> 

~|
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:346183
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFDirectory on mapped drives

2011-07-11 Thread Russ Michaels

sorry I didn't read all of your post, I see your final paragraph asking if
you must do this, and the answer is yes.
however do not run CF as an administrator as this will open up your security
and allow every cfm page to run with administrator access, you need to run
it as a limited user that can only do what you need it to do.

see this security white paper

http://www.adobe.com/products/coldfusion/pdfs/coldfusion_8_product_security_brief.pdf

Russ

On Mon, Jul 11, 2011 at 6:11 PM, Russ Michaels  wrote:

>
> If you are just using the default installation and running cf as "system"
> then you will have problems access network paths.
> You need to set CF to run under a user account that have network access.
>
> Russ
>
>
> On Mon, Jul 11, 2011 at 5:40 PM, David McGuigan 
> wrote:
>
>>
>> I've triple checked that an empty folder on a 2nd server in the same
>> datacenter allows full write permissions for any type of user, and have it
>> mapped from the CF server. But when I run cfdirectory calls, for lists it
>> returns an empty query even if there are subfolders or files there, for
>> rename calls it claims that the target subfolder doesn't exist, and for
>> create calls it simply errors: the specified directory could not be
>> created.
>>
>> Is there some best practice way to set this up with CF? Do I have to
>> configure the windows service of the CF box to run as an identical user to
>> one on the recipient box? If so other than making sure it's an
>> administrator
>> is there anything else I need to do?
>>
>> Thanks guys.
>>
>>
>> 

~|
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:346182
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFDirectory on mapped drives

2011-07-11 Thread Russ Michaels

If you are just using the default installation and running cf as "system"
then you will have problems access network paths.
You need to set CF to run under a user account that have network access.

Russ

On Mon, Jul 11, 2011 at 5:40 PM, David McGuigan wrote:

>
> I've triple checked that an empty folder on a 2nd server in the same
> datacenter allows full write permissions for any type of user, and have it
> mapped from the CF server. But when I run cfdirectory calls, for lists it
> returns an empty query even if there are subfolders or files there, for
> rename calls it claims that the target subfolder doesn't exist, and for
> create calls it simply errors: the specified directory could not be
> created.
>
> Is there some best practice way to set this up with CF? Do I have to
> configure the windows service of the CF box to run as an identical user to
> one on the recipient box? If so other than making sure it's an
> administrator
> is there anything else I need to do?
>
> Thanks guys.
>
>
> 

~|
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:346181
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


re: remove high ASCII chars from text

2011-07-11 Thread Jason Fisher

Try this (not tested):

Text = reReplace(Text, "[^\x20-\x7E]", "", "all");



From: "Matthew Friedman" 
Sent: Monday, July 11, 2011 12:48 PM
To: "cf-talk" 
Subject: remove high ASCII chars from text

Is there a simple way to remove "bad" ascii chars form a textarea.

We are using TINYMEC as an html editor and it works great. the issue is 
when we copy from MS Word we get back chars that will not render correctly 
in HTML.

We are using and have enhanced the UDF DeMoronize to pull bad chars but we 
also want to just remove any char that is > 225.
is there a way to do this other then doing a looP

for (i = 128; i LTE 160; i = i + 1)
{
Text = Replace(Text, Chr(i), "", "All");
}

We would want to strip anything greater then 225 and we do not want to run 
this loop up to 3000 a large waste of processing to do this.

Open to any thoughts here.
Thanks in advance - the is always great.

Matt

-- Life is to short to drink cheep beer -- 



~|
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:346180
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


remove high ASCII chars from text

2011-07-11 Thread Matthew Friedman

Is there a simple way to remove "bad" ascii chars form a textarea.

We are using TINYMEC as an html editor and it works great. the issue is when we 
copy from MS Word we get back chars that will not render correctly in HTML.

We are using and have enhanced the UDF DeMoronize to pull bad chars but we also 
want to just remove any char that is > 225.
is there a way to do this other then doing a looP

for (i = 128; i LTE 160; i = i + 1)
{
 Text = Replace(Text, Chr(i), "", "All");
}

We would want to strip anything greater then 225 and we do not want to run this 
loop up to 3000 a large waste of processing to do this.

Open to any thoughts here.
Thanks in advance - the is always great.

Matt

-- Life is to short to drink cheep beer -- 

~|
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:346179
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFDirectory on mapped drives

2011-07-11 Thread David McGuigan

I've triple checked that an empty folder on a 2nd server in the same
datacenter allows full write permissions for any type of user, and have it
mapped from the CF server. But when I run cfdirectory calls, for lists it
returns an empty query even if there are subfolders or files there, for
rename calls it claims that the target subfolder doesn't exist, and for
create calls it simply errors: the specified directory could not be created.

Is there some best practice way to set this up with CF? Do I have to
configure the windows service of the CF box to run as an identical user to
one on the recipient box? If so other than making sure it's an administrator
is there anything else I need to do?

Thanks guys.


~|
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:346178
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: populate table from query results

2011-07-11 Thread Larry Lyons

> Rex,
> Ahah, I see what you are doing -- very interesting approach.  I have 
> not used cfsavecontent before.  I will have to test this and see how 
> much faster it is.
> Thanks much. 

Julie,

You'll find it much faster than string concatenation. 

~|
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:346177
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfspreadsheet varchar

2011-07-11 Thread Richard White

hi,

we have a query that has a column with data such as: 01001, 01002 etc... the 
query column is of type VarChar, however when we use the cfspreadsheet tag the 
spreadsheet formats it to 1001, 1002 etc... 

is there anyway to stop the cfspreadsheet from removing the starting 0's

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:346176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Clearing session vars and cookies from subdomain

2011-07-11 Thread Mahcsig

I believe the problem is that when you call the page with cfhttp it is not
run in the user's context, but a new context as the server instead.

This means that the cfcookie won't work either, since it is trying to send
the cookie to the server instead of the user.

You could try hidden iframes or maybe ajax calls to update the other
domains.

~Mahcsig



On Fri, Jul 8, 2011 at 12:00 PM, Gerald Weir  wrote:

>
> Hello,
>
> We have 3 sites. I'll call them www, abc, and xyz.  I have a cookie that is
> a domain cookie and has a userid as a value.  I have written code for each
> site that uses onSessionStart and onRequestStart to check for the cookie so
> that when users travel between the 3 sites they will be automatically logged
> in when they get there.  They might never go to one of the other sites OR
> they might go there and then go onto another site and login.  That is the
> reason for both onSessionStart and onRequestStart.
>
> The problem is Logout.  I have written logout code to clear certain session
> vars and cookies.  This code is on WWW. for testing.  Within this code I do
> CFHTTP calls to the other two subdomains to a file that runs a CFC that
> looks like the following:
>
> 
>
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> 
>
> 
> 
>
> If I call the logout file on the ABC. subdomain directly in the browser
> like: http://ABC.ourdomain.com/logout_test.cfm then I look at the session
> dump and everyting has been deleted or expired correctly.
>
> But, if I call the same file from the CFHTTP call in the code on WWW. then
> it doesn't work.
>
> Does ColdFusion not allow me to clear cookies and session vars if I am
> calling the CFM page from a different server?
>
> Thanks, Jerry
>
> 

~|
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:346175
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Verity Collection CF 9.0.1

2011-07-11 Thread mikey graziano

In the ColdFusion Collection, I 'm trying to create a verity collection. When I 
create the new collection it completes without errors, but does not show up in 
the list of collections within my CF Administrator. If I try to create it 
again, it tells me that the collection already exists, but it still does not 
appear in the administrator. I don't see any issues in the exception, 
application, or server logs. Any suggestions on how to troubleshoot this issue? 


~|
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:346174
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Verity Collection Coldfusion 9.0.1

2011-07-11 Thread mikey graziano

In the ColdFusion Collection, I 'm trying to create a verity collection. When I 
create the new collection it completes without errors, but does not show up in 
the list of collections within my CF Administrator. If I try to create it 
again, it tells me that the collection already exists, but it still does not 
appear in the administrator. I don't see any issues in the exception, 
application, or server logs. Any suggestions on how to troubleshoot this issue? 


~|
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:346173
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm