RE: Bug in HttpAmazonS3Helper class

2009-04-19 Thread MattyJ
Hi Jerome,

No problems at all. Thanks for fixing it so quickly.

Kind regards,
Matt


Hi Matt,

Thanks for reporting this. I've fixed the bug (due to an evolution in S3) in
both 1.1 branch and SVN trunk. I've also added proper unit test cases to
make sure there is no regression.
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
 

-Message d'origine-----
De : MattyJ [mailto:mjwat...@gmail.com] 
Envoyé : vendredi 10 avril 2009 02:14
À : discuss@restlet.tigris.org
Objet : Bug in HttpAmazonS3Helper class

Ok. I think I've figured out my the problem with the HttpAmazonS3Helper
class. 

The code in the method getCanonicalizedResourceName(Reference resourceRef)
isn't quite correct as It needs to incorporate the _bucketname_ into the
path. Presently its just getting the resource path.

>From the S3 developer guide examples:

GET /photos/puppy.jpg HTTP/1.1
Host: _bucketname_.s3.amazonaws.com
Date: Tue, 27 Mar 2007 19:36:42 +
Authorization: AWS
 0PN5J17HBGZHT7JJ3X82: 
xXjDGYUmKxnwqr5KXNPGldn5LbA= 

Which should translate into the following string to sign:

GET\n
\n
\n
Tue, 27 Mar 2007 19:36:42 +\n
/_bucketname_/photos/puppy.jpg 

Matt.
--
View this message in context:
http://n2.nabble.com/Bug-in-HttpAmazonS3Helper-class-tp2614094p2614094.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=16205
18

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1733047



-- 
View this message in context: 
http://n2.nabble.com/Bug-in-HttpAmazonS3Helper-class-tp2614094p2660703.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1813266


RE: Restlet 1.2 M2, Simple, and HTTPS

2009-04-19 Thread MattyJ
Hi Jerome,

Sure. Will do.

Matt


Hi Matt,

Could you enter a bug report for this?
http://www.restlet.org/community/issues 
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-Message d'origine-
De : MattyJ [mailto:mjwat...@gmail.com] 
Envoyé : jeudi 16 avril 2009 06:11
À : discuss@restlet.tigris.org
Objet : Restlet 1.2 M2, Simple, and HTTPS

Hi there,

The application I'm building uses the simpleframework. 

This morning I upgraded from Restlet M1 to M2 which also included a new
version of simple 4.1.9. (It was 3.1.3)

Prior to the upgrade HTTPS was working fine now for some reason when ever I
try and access any https url it seems to hang indefinitely.

I've explicitly removed all of the certificates exceptions I've been using
for development and have attempted to re-add the certificate back but to no
available.

I've tried putting in lots of breakpoints to see whats go on but I'm still
not having much joy.

I rolled back the changes to M1 and 3.1.3 and it's all working fine again.

Does anyone else have this issue? Or could you provide any suggestions as to
what I might need to do?

Thanks,
Matt

--
View this message in context:
http://n2.nabble.com/Restlet-1.2-M2%2C-Simple%2C-and-HTTPS-tp2641814p2641814
.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=17389
17

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1742808



-- 
View this message in context: 
http://n2.nabble.com/Restlet-1.2-M2%2C-Simple%2C-and-HTTPS-tp2641814p2660697.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1813237


Re: Restlet 1.2 M2, Simple, and HTTPS

2009-04-16 Thread MattyJ
Hi Xenome,

Thanks for that suggestion.

Switching from simple to grizzly has got https working again.

Evidently there's a minor issue with the connector or simple itself. 

Ideally I'd prefer to use simple but hopefully this will get resolved in a 
subsequent release.

Thanks again,
Matt



Hi MattyJ,

I've faced the same problem before using Restlet M1 and i discovered the cause 
that is i was using Grizzly connector, removing the latter and working with 
Simple solved my problem. However some of my friends who were facing the same 
prob, did the opposite to get over it (i.e. they used grizzly instead of 
simple). So i suggested you swap and test different connectors separately and 
observe if that solves it or not ...

Wish this helps a lil'


Hi there,

The application I'm building uses the simpleframework. 

This morning I upgraded from Restlet M1 to M2 which also included a new version 
of simple 4.1.9. (It was 3.1.3)

Prior to the upgrade HTTPS was working fine now for some reason when ever I try 
and access any https url it seems to hang indefinitely.

I've explicitly removed all of the certificates exceptions I've been using for 
development and have attempted to re-add the certificate back but to no 
available.

I've tried putting in lots of breakpoints to see whats go on but I'm still not 
having much joy.

I rolled back the changes to M1 and 3.1.3 and it's all working fine again.

Does anyone else have this issue? Or could you provide any suggestions as to 
what I might need to do?

Thanks,
Matt





-- 
View this message in context: 
http://n2.nabble.com/Restlet-1.2-M2%2C-Simple%2C-and-HTTPS-tp2641814p2643816.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1756334


Restlet 1.2 M2, Simple, and HTTPS

2009-04-15 Thread MattyJ
Hi there,

The application I'm building uses the simpleframework. 

This morning I upgraded from Restlet M1 to M2 which also included a new version 
of simple 4.1.9. (It was 3.1.3)

Prior to the upgrade HTTPS was working fine now for some reason when ever I try 
and access any https url it seems to hang indefinitely.

I've explicitly removed all of the certificates exceptions I've been using for 
development and have attempted to re-add the certificate back but to no 
available.

I've tried putting in lots of breakpoints to see whats go on but I'm still not 
having much joy.

I rolled back the changes to M1 and 3.1.3 and it's all working fine again.

Does anyone else have this issue? Or could you provide any suggestions as to 
what I might need to do?

Thanks,
Matt

-- 
View this message in context: 
http://n2.nabble.com/Restlet-1.2-M2%2C-Simple%2C-and-HTTPS-tp2641814p2641814.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1738917


Bug in HttpAmazonS3Helper class

2009-04-12 Thread MattyJ
Ok. I think I've figured out my the problem with the HttpAmazonS3Helper class. 

The code in the method getCanonicalizedResourceName(Reference resourceRef) 
isn't quite correct as It needs to incorporate the _bucketname_ into the path. 
Presently its just getting the resource path.

>From the S3 developer guide examples:

GET /photos/puppy.jpg HTTP/1.1 
Host: _bucketname_.s3.amazonaws.com 
Date: Tue, 27 Mar 2007 19:36:42 + 
Authorization: AWS 
 0PN5J17HBGZHT7JJ3X82: 
xXjDGYUmKxnwqr5KXNPGldn5LbA= 

Which should translate into the following string to sign:

GET\n 
\n 
\n 
Tue, 27 Mar 2007 19:36:42 +\n 
/_bucketname_/photos/puppy.jpg 

Matt.
-- 
View this message in context: 
http://n2.nabble.com/Bug-in-HttpAmazonS3Helper-class-tp2614094p2614094.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1620518


RE: Weird issue with VirtualHosts

2009-04-09 Thread MattyJ
Hi Jerome,

Shortly after posting that I realized we had a couple of DNS/reverse proxy 
issues. Now that's been sorted it's working fine. 

Sorry to have wasted your time,
Matt


Hi Matt,

Are you using some kind of reverse proxy or port mapping/firewall software
in front of your Restlet component?
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
 

-Message d'origine-----
De : MattyJ [mailto:mjwat...@gmail.com] 
Envoyé : mercredi 8 avril 2009 06:15
À : discuss@restlet.tigris.org
Objet : Weird issue with VirtualHosts

Hi,

I'm trying to setup a couple of virtual hosts following the example given
for the actual restlet website.

My code looks like this:

// 
// www.mywebsite.com
// 
VirtualHost host = new VirtualHost(getContext());
host.setHostDomain("www.mywebsite.com|" + ipAddress);
host.setHostPort("80|" + Integer.toString(port));
host.attach(new WwwMywebsiteCom(wwwUri + "/html"));
getHosts().add(host);

// 
// media.mywebsite.com
// 
host = new VirtualHost(getContext());
host.setHostDomain("media.appliedobjects.com");
host.setHostPort("80|" + Integer.toString(port));
host.attach(new MediaMywebsiteCom(wwwUri + "/media"));
getHosts().add(host);

The funny thing is when I run this code locally on my own machine the
"media.mywebsite.com" works fine. 

But when I install the jar on the production server and attempt to run in
there the "media" virtual host doesn't seem to work. In fact no requests are
ever logged.

Do you have any suggestions as to what I might be doing wrong? I've tried
various combinations of values for the host domain and ports but to no
avail.

Thanks in advance,
Matt
--
View this message in context:
http://n2.nabble.com/Weird-issue-with-VirtualHosts-tp2603116p2603116.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=15894
36

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1595002



-- 
View this message in context: 
http://n2.nabble.com/Weird-issue-with-VirtualHosts-tp2603116p2609196.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1606857


HttpAmazonS3Helper

2009-04-09 Thread MattyJ
Can someone give me an example on how to use the HttpAmazonS3Helper class? 

Thanks in advance,
Matt
-- 
View this message in context: 
http://n2.nabble.com/HttpAmazonS3Helper-tp2609388p2609388.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1608094


Weird issue with VirtualHosts

2009-04-08 Thread MattyJ
Hi,

I'm trying to setup a couple of virtual hosts following the example given for 
the actual restlet website.

My code looks like this:

// 
// www.mywebsite.com
// 
VirtualHost host = new VirtualHost(getContext());
host.setHostDomain("www.mywebsite.com|" + ipAddress);
host.setHostPort("80|" + Integer.toString(port));
host.attach(new WwwMywebsiteCom(wwwUri + "/html"));
getHosts().add(host);

// 
// media.mywebsite.com
// 
host = new VirtualHost(getContext());
host.setHostDomain("media.appliedobjects.com");
host.setHostPort("80|" + Integer.toString(port));
host.attach(new MediaMywebsiteCom(wwwUri + "/media"));
getHosts().add(host);

The funny thing is when I run this code locally on my own machine the 
"media.mywebsite.com" works fine. 

But when I install the jar on the production server and attempt to run in there 
the "media" virtual host doesn't seem to work. In fact no requests are ever 
logged.

Do you have any suggestions as to what I might be doing wrong? I've tried 
various combinations of values for the host domain and ports but to no avail.

Thanks in advance,
Matt
-- 
View this message in context: 
http://n2.nabble.com/Weird-issue-with-VirtualHosts-tp2603116p2603116.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1589436