Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-28 Thread Andrew Phillips
@@ -141,4 +141,18 @@ public final String rfc1123DateFormat() { public final Date rfc1123DateParse(String toParse) { return rfc1123DateFormat.parseDateTime(toParse).toDate(); } + + @Override + public Date iso8601DateParseWithOptionalTZ(String toParse) + throws

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-28 Thread Andrew Phillips
@@ -107,6 +107,15 @@ public void testIso8601DateParseTz() { } @Test + public void testIso8601OptionalTZDateParse() { + Date dsDate = dateService + .iso8601DateParseWithOptionalTZ(testData[0].iso8601SecondsDateString); + Date secondsDate = dateService +

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-27 Thread Shri Javadekar
Thanks for pushing this to master @andrewgaul. I believe the jclouds 1.8.0 release next week will be based off of master so this fix will make it there. Do we need to backport this fix to the 1.7.x branch for any further 1.7.x releases? --- Reply to this email directly or view it on GitHub:

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread BuildHive
[jclouds » jclouds #1428](https://buildhive.cloudbees.com/job/jclouds/job/jclouds/1428/) SUCCESS This pull request looks good [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub:

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread CloudBees pull request builder plugin
[jclouds-java-7-pull-requests #1507](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/1507/) UNSTABLE Looks like there's a problem with this pull request --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/456#issuecomment-50227037

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread CloudBees pull request builder plugin
[jclouds-pull-requests #1035](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/1035/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/456#issuecomment-50227130

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread Andrew Gaul
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread Andrew Gaul
@@ -201,4 +203,18 @@ public final Date rfc1123DateParse(String toParse) throws IllegalArgumentExcepti } } } + + @Override + public Date iso8601DateParseWithOptionalTZ(String toParse) + throws IllegalArgumentException { + try { + return

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread Shri Javadekar
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread BuildHive
[jclouds » jclouds #1430](https://buildhive.cloudbees.com/job/jclouds/job/jclouds/1430/) SUCCESS This pull request looks good [(what's this?)](https://www.cloudbees.com/what-is-buildhive) --- Reply to this email directly or view it on GitHub:

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread Andrew Gaul
Tested against aws-s3 and pushed to master as d57bbebe7e0217b9a3818c6e1ed460c90469da78. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/456#issuecomment-50256377

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-26 Thread Andrew Gaul
Closed #456. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/456#event-145973428

[jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread Shri Javadekar
S3 compatible blobStores sometimes return date in the format: quot;2014-07-23T20:53:17+quot; instead of the more common quot;2014-07-23T18:09:39.944Zquot;. This caused jclouds to barf with an IllegalArgumentException. This commit tries to parse both the formats for S3. The exception is thrown

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread CloudBees pull request builder plugin
[jclouds-pull-requests #1033](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/1033/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/456#issuecomment-50219001

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread CloudBees pull request builder plugin
[jclouds-java-7-pull-requests #1505](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/1505/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/456#issuecomment-50219263

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread Andrew Gaul
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread Niraj Tolia
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread Niraj Tolia
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread Niraj Tolia
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread Niraj Tolia
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =

Re: [jclouds] Try iso8601SecondsDateParse if iso8601DateParse fails. (#456)

2014-07-25 Thread Andrew Gaul
@@ -51,7 +51,17 @@ public void endElement(String uri, String name, String qName) { if (qName.equals(ETag)) { this.currentETag = currentOrNull(currentText); } else if (qName.equals(LastModified)) { - this.currentLastModified =