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 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 it working it choked on those modified date fields :-/
>
> Any pointers welcome.
>
> Regards,
>
> Stefan
>
>
>
>
>
> On 10 Feb 2011, at 02:07, Raymond Camden wrote:
>
>>
>> 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 this.s3.accessKeyId = "xxxxxx">
>>>        <cfset this.s3.awsSecretKey = "xxxxxxxxxx";>
>>>
>>> ...
>>>
>>>
>>> However using this syntax worked:
>>>
>>> <cfcomponent>
>>>        <cfscript>
>>>        this.s3.accessKeyId = "xxxxxx";
>>>        this.s3.awsSecretKey = "xxxxxxxxxx";
>>>        </cfscript>
>>> ...
>>>
>>>
>>> It does not make much sense. In both cases I was able to see the variables 
>>> being set properly.
>>> Once I got it working using cfscript I encountered other problems, 
>>> specifically
>>>
>>> An error occurred when performing a file operation lastModified on file 
>>> /myfolder.
>>> The cause of this exception was: 
>>> org.apache.commons.vfs.FileSystemException: Could not determine the last 
>>> modified timestamp of "s3://blah.site.com/myfolder"..
>>>
>>> Using an FTP client I noticed that some folders did not show a last 
>>> modified or created date. Not sure why they didn't, but it certainly made 
>>> CF choke big time when trying to list files.
>>>
>>> Thought I'd throw that out there.
>>>
>>> Cheers
>>>
>>> Stefan
>>>
>
>
> 

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

Reply via email to