Errr... I am not sure. I put it right after the opening cfcomponent tag.
I previously tried cfset in the same place, as well as in the
onApplicationStart. Neither seemed to stick - yes I saw the variables when I
iterated over the application variables but the S3 stuff did not work.
Once I got
Dangit - I can verify the bug too. I made a folder in the s3 console,
it had no last modified, and CF borked on it. Can you file a bug
report for it or would you like me?
On Thu, Feb 10, 2011 at 4:48 AM, Stefan Richter ste...@flashcomguru.com wrote:
Errr... I am not sure. I put it right after
So while it won't help, can you show the tag based code you used that
did not work - the complete code please.
On Thu, Feb 10, 2011 at 6:18 AM, Raymond Camden rcam...@gmail.com wrote:
Dangit - I can verify the bug too. I made a folder in the s3 console,
it had no last modified, and CF borked
Sure, it is simply this:
cfset files = directoryList(s3://blah.site.com)
cfdump var=#files#
Is that what you need?
The above worked yesterday (falling over on the modified date issue), but I've
just tried again and now it won't work at all. Now I get this error when trying
to list by bucket
No, you said a script based App.cfc worked, but not tag based. I'd
like to see your tag based App.cfc that failed.
On Thu, Feb 10, 2011 at 7:09 AM, Stefan Richter ste...@flashcomguru.com wrote:
Sure, it is simply this:
cfset files = directoryList(s3://blah.site.com)
cfdump var=#files#
Is
Hmm I am getting confused now. Here's what I tried:
cfcomponent
cfset this.Sessionmanagement=true
cfset this.s3.accessKeyId = x
cfset this.s3.awsSecretKey =
...
However when I tried again now it seemed to work (setting the keys that is)...
but I got
If your code _really_ looks like that - your problem may be the lack
of a name for the application.
You said same error, do you mean the one we both verified? I wasn't
saying _that_ would go away. I was more concerned with why your script
based setup worked and not your tag based.
On Thu, Feb
Ok, I may have missed the name out, but other times I definitely had a name
specified.
When I said same error I meant the one where S3 support in CF now stopped
working completely for me as it won't list any folder contents as it apparently
does not recognise anything as a folder anymore.
In my testing all I did was do a cfdirectory on a bucket. In my case I
emdedded the auth stuff in the dir. I basically had:
cfset dir = s3://x:y...@s3.coldfusionjeid.com/
Where s3.coldfusionjedi.com was my bucket. Ignoring the fact that I
put my auth in there - does your code use a similar dir,
Ah ok.
I tested with the inline credentials - same error.
An error occurred when performing a file operation listFiles on
file /.
The cause of this exception was: org.apache.commons.vfs.FileSystemException:
Could not list the contents of s3://x:yy...@media.muchomedia.com/
You got me then. Looks right to me.
On Thu, Feb 10, 2011 at 8:57 AM, Stefan Richter ste...@flashcomguru.com wrote:
Ah ok.
I tested with the inline credentials - same error.
An error occurred when performing a file operation listFiles on
file /.
The cause of this exception
lTo your directory list issue - I have good news. For some reason,
directoryList() works fine. Just don't use listinfo=query.
On Thu, Feb 10, 2011 at 9:32 AM, Raymond Camden rcam...@gmail.com wrote:
You got me then. Looks right to me.
On Thu, Feb 10, 2011 at 8:57 AM, Stefan Richter
Oh nice one thanks. I'll give it a try.
S
On 10 Feb 2011, at 19:21, Raymond Camden wrote:
lTo your directory list issue - I have good news. For some reason,
directoryList() works fine. Just don't use listinfo=query.
On Thu, Feb 10, 2011 at 9:32 AM, Raymond Camden rcam...@gmail.com
Warming up an old thread as I've had the same issue.
It seems to me that the following did not work in my App.cfc:
cfcomponent
cfset this.s3.accessKeyId = xx
cfset this.s3.awsSecretKey = xx;
...
However using this syntax worked:
cfcomponent
Digging a bit deeper, I don't seem to be able to list ANY folder contents in my
S3 bucket unless I create that folder wit CF. Any of the existing folders
(created mainly using Transmit) will throw an error:
An error occurred when performing a file operation lastModified on file /temp.
The
DId you run that code in the constructor area of the CFC?
On Wed, Feb 9, 2011 at 1:59 PM, Stefan Richter ste...@flashcomguru.com wrote:
Warming up an old thread as I've had the same issue.
It seems to me that the following did not work in my App.cfc:
cfcomponent
cfset
I am having this same problem. But I am pretty sure my server is running
the latest update:
Version: 9,0,1,274733
Could anything else cause this. I have restarted the app and see the s3
variables in there using application.getApplicationSettings().
---
David Mineer Jr
-
Thanks guys, sadly, I think this was 'user error' and I was testing on the
wrong server (without 9.0.1!!). Sorry for the noise. Just FYI,
Brook
-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com]
Sent: November-14-10 6:12 PM
To: cf-talk
Subject: Re: CF 9.01 S3
Okay, I've been banging my head against this for a while. It looks so easy!
I am trying to simply list a directories contents using CF 9.01's new S3
integration. My application.cfc has:
-
this.s3.accessKeyid = 'yourmamassofat';
this.s3.awsSecretKey=
You can't use this and expect to reference it as application in your code.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Brook Davies [mailto:br...@logiforms.com]
Sent: Monday, 15 November 2010 8:03 AM
To: cf-talk
Subject: CF 9.01 S3:// not working
: Andrew Scott [mailto:andr...@andyscott.id.au]
Sent: November-14-10 1:17 PM
To: cf-talk
Subject: RE: CF 9.01 S3:// not working
You can't use this and expect to reference it as application in your code.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Brook
Ok, I wasn't aware that the S3 was baked into the application object like
this.
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, 15 November 2010 9:17 AM
To: cf-talk
Subject: RE: CF 9.01 S3
In case its a permission issue on your bucket try setting the ACL for
everyone to read - better still make a test bucket and set everything on that
bucket to read,write and full control. I use the Amazon S3 REST Wrapper by Joe
Danziger so can't advise directly on CF9.
Okay, I've been banging
Don't you want to list the bucket, and not a folder underneath it?
Try just
directoryList(s3://mybuck/)
On Sun, Nov 14, 2010 at 3:03 PM, Brook Davies br...@logiforms.com wrote:
Okay, I've been banging my head against this for a while. It looks so easy!
I am trying to simply list a
24 matches
Mail list logo