RIAForge Forums Home | Search | RSS
New Topic Reply   Previous Page  Page: 1   Previous Page

Thread: installation: custom tag
Created on: 11/15/11 09:48 PM Replies: 2
pitarustica


Joined: 11/15/11
Posts: 3
installation: custom tag
11/15/11 9:48 PM

Hi all, I'm pretty new to CF so please pardon my elementary-style question, but how to implement this installation guide in readme.txt file that says :

".... You also need to <CF_HMAC> custom tag which required all 5 files in the hmac directory. Place these in your custom tagpath or in the same directory as the sample scripts."

I've tried running s3test.cfm without doing the above and the script is able to get the list of buckets that I have. But upon clicking on any links provided (View etc) I got errors so I'm guessing if that's because I have not completed the above instruction. I'm on CF 8 btw, with Apache/Jrun.

Thanks!
Link | Top | Bottom
pitarustica


Joined: 11/15/11
Posts: 3
RE: installation: custom tag
11/15/11 10:55 PM

Hi - ok now I've got it... so custom tag in another word is some sort of extension and I need to grab a copy of this "hmac" extract it and added it into the cfadmin's custom tag paths.

But the error when I click on View a bucket is still there:
----------
An error occured while Searching an XML document.

Prefix must resolve to a namespace:
----------

Any suggestion where should I look at ?

Thanks!
Link | Top | Bottom
pitarustica


Joined: 11/15/11
Posts: 3
RE: installation: custom tag
11/16/11 11:40 PM

Hi.. so I've been trying to debug what's wrong with the XML searching part. The operation that produce the error is getBucket. And I've tried to echo out the XML document and it says:

Message:
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint : mybucketname.s3.amazonaws.com

How can the API not being accessed the way it should in its most basic ? I'm can't have enough wondering but I guess AWS changed it suddenly or for some other reason. Anyway I tried to change the cfhttp line:

<cfhttp method="GET" url="http://#arguments.bucketName#.s3.amazonaws.com/">;

And it finally get pass the XML Search error, but another error comes out:

SignatureDoesNotMatch
The request signature we calculated does not match the signature you provided. Check your key and signing method

So --- at this point I will cease debugging until I have some definitive answer on whats going on. Am I even using the right wrapper and API version, I'm no longer sure. But I will appreciate some eye-opener on this.

Thanks
Link | Top | Bottom

New Post
Please login to post a response.