rajatdt / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
0 stars 0 forks source link

[Eucalyptus] Server may be in different TimeZone than GMT #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install an Eucalyptus cloud setting the time to another time zone (e.g. WEST)
2. Use a client in the same time zone

What is the expected output? What do you see instead?
No methods work (posting output for descriveAvailabilityZones):
edu.ucsb.eucalyptus.transport.query.QuerySecurityException: Message has expired.
    at 
edu.ucsb.eucalyptus.transport.query.EucalyptusQuerySecurityHandler.handle(Eucaly
ptusQuerySec
urityHandler.java:173)
    at 
edu.ucsb.eucalyptus.transport.query.EucalyptusQuerySecurityHandler.authenticate(
EucalyptusQu
erySecurityHandler.java:102)
    at 
edu.ucsb.eucalyptus.transport.query.GenericHttpDispatcher.findOperation(GenericH
ttpDispatcher
.java:129)
    at org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:103)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
    at 
edu.ucsb.eucalyptus.transport.http.Axis2HttpWorker.processURLRequest(Axis2HttpWo
rker.java:2
67)
    at 
edu.ucsb.eucalyptus.transport.http.Axis2HttpWorker.handleGet(Axis2HttpWorker.jav
a:242)
    at edu.ucsb.eucalyptus.transport.http.Axis2HttpWorker.service(Axis2HttpWorker.java:148)
    at 
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService
.java:281)
    at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpSer
vice.java:187)
    at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProce
ssor.java:82)
    at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(Thre
adPoolExecu
tor.java:1061)
    at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(Thr
eadPoolExec
utor.java:575)
    at java.lang.Thread.run(Thread.java:636)

What version of the product are you using? On what operating system?
typica 1.6 on MacOSX Leopard against Eucalyptus 1.5.2 on Ubuntu Jaunty

Original issue reported on code.google.com by davidral...@gmail.com on 23 Aug 2009 at 3:01

GoogleCodeExporter commented 9 years ago
Hi
I've created a patch (to typica trunk) that allows to set the server TimeZone 
in AWSQueryConnection making the 
httpDate() method build the correct the date base on the time zone of the 
server.
Its very simple adds a getter/setter to serverTimeZone, leaving the default 
TImeZone as GMT as it was. 
Hope its useful.
Regards
David

Original comment by davidral...@gmail.com on 23 Aug 2009 at 3:57

Attachments:

GoogleCodeExporter commented 9 years ago
This patch was applied in SVN r286.
When talking to a eucalyptus cloud we had running in us eastern timezone.. it 
worked fine without it, so I'll have 
to take your word for it that this is really required.

Original comment by dkavan...@gmail.com on 13 Oct 2009 at 12:45