Taking a stab here by looking at the source code.  Alan, please correct
me if I can wrong.

ben.8 said the following on 03/29/2011 04:52 PM:
> Q1. Is it possible to change the URL returned by this function? Right
> now it returns "http://s3.amazonaws.com/[bucket]/[key]?(key/expire/
> sig)". I have a CNAME set for my s3 to [bucket].s3.amazonaws.com, so
> would want the function to return "http://myCNAME/[key]?(key/expire/
> sig)".
I don't think it's possible in the code as it stands. 
AmazonRegisterDatasource() doesn't accept a domain:

http://websvn.openbd.org/filedetails.php?repname=OpenBD%3ACore&path=%2Fsrc%2Forg%2Falanwilliamson%2Famazon%2FAmazonRegisterDatasource.java

This function interacts with AmazonKey which does optionally accept a
domain.  Right now it defaults to s3.amazon.com:

http://websvn.openbd.org/filedetails.php?repname=OpenBD%3ACore&path=%2Fsrc%2Forg%2Falanwilliamson%2Famazon%2FAmazonKey.java

It certainly looks like it's possible to upgrade in the future.  Alan
would have to chime in here as it would require a bit of refactoring.

> Q2: The "Expires" field is a ten digit number; how is this generated?
I believe it's number of seconds since EPOCH.

> P1: I am getting a lot of intermittent "SignatureDoesNotMatch" errors.
> Sometimes the URL resolves correctly, the next refresh it does not.
> Has anyone else seen this behaviour?
I've seen this if you have a flaky internet connect before.

.pjf

-- 
Peter J. Farrell
[email protected]
[email protected]
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to