You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Sylvain Legault (JIRA)" <ji...@apache.org> on 2008/10/05 15:57:44 UTC
[jira] Created: (ABDERA-201) Does not support HTTP header Expires
-1 and throw org.apache.commons.httpclient.util.DateParseException: Unable
to parse the date -1
Does not support HTTP header Expires -1 and throw org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
------------------------------------------------------------------------------------------------------------------------------------
Key: ABDERA-201
URL: https://issues.apache.org/jira/browse/ABDERA-201
Project: Abdera
Issue Type: Bug
Affects Versions: 0.5.0
Environment: Windows Vista, Java 1.6
Reporter: Sylvain Legault
Priority: Minor
Connecting to Google calander but with a invalid URL (example missing / between calendar and feeds) e.g. http://www.google.com/calendarfeeds/default/allcalendars/full
This will return an HTTP response 404 Not Found with an HTTP header Expires = -1
The following exception is thrown:
Exception in thread "main" java.lang.RuntimeException: org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
at org.apache.abdera.protocol.client.AbstractClientResponse.getDateHeader(AbstractClientResponse.java:204)
at org.apache.abdera.protocol.util.AbstractResponse.getExpires(AbstractResponse.java:62)
at org.apache.abdera.protocol.client.cache.AbstractCache.shouldUpdateCache(AbstractCache.java:93)
at org.apache.abdera.protocol.client.cache.AbstractCache.update(AbstractCache.java:129)
at org.apache.abdera.protocol.client.AbderaClient.execute(AbderaClient.java:736)
at org.apache.abdera.protocol.client.AbderaClient.get(AbderaClient.java:175)
at org.apache.abdera.protocol.client.AbderaClient.get(AbderaClient.java:390)
at x.z.atom.client.AtomReader.retreive(AtomReader.java:37)
at x.z.atom.Startup.main(Startup.java:15)
Caused by: org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:170)
at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:94)
at org.apache.abdera.protocol.client.AbstractClientResponse.getDateHeader(AbstractClientResponse.java:201)
... 8 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (ABDERA-201) Does not support HTTP header Expires -1
and throw org.apache.commons.httpclient.util.DateParseException: Unable to
parse the date -1
Posted by "David Calavera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Calavera closed ABDERA-201.
---------------------------------
Resolution: Fixed
> Does not support HTTP header Expires -1 and throw org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ABDERA-201
> URL: https://issues.apache.org/jira/browse/ABDERA-201
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.5.0
> Environment: Windows Vista, Java 1.6
> Reporter: Sylvain Legault
> Priority: Minor
>
> Connecting to Google calander but with a invalid URL (example missing / between calendar and feeds) e.g. http://www.google.com/calendarfeeds/default/allcalendars/full
> This will return an HTTP response 404 Not Found with an HTTP header Expires = -1
> The following exception is thrown:
> Exception in thread "main" java.lang.RuntimeException: org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
> at org.apache.abdera.protocol.client.AbstractClientResponse.getDateHeader(AbstractClientResponse.java:204)
> at org.apache.abdera.protocol.util.AbstractResponse.getExpires(AbstractResponse.java:62)
> at org.apache.abdera.protocol.client.cache.AbstractCache.shouldUpdateCache(AbstractCache.java:93)
> at org.apache.abdera.protocol.client.cache.AbstractCache.update(AbstractCache.java:129)
> at org.apache.abdera.protocol.client.AbderaClient.execute(AbderaClient.java:736)
> at org.apache.abdera.protocol.client.AbderaClient.get(AbderaClient.java:175)
> at org.apache.abdera.protocol.client.AbderaClient.get(AbderaClient.java:390)
> at x.z.atom.client.AtomReader.retreive(AtomReader.java:37)
> at x.z.atom.Startup.main(Startup.java:15)
> Caused by: org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
> at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:170)
> at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:94)
> at org.apache.abdera.protocol.client.AbstractClientResponse.getDateHeader(AbstractClientResponse.java:201)
> ... 8 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ABDERA-201) Does not support HTTP header Expires
-1 and throw org.apache.commons.httpclient.util.DateParseException: Unable
to parse the date -1
Posted by "David Calavera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636913#action_12636913 ]
David Calavera commented on ABDERA-201:
---------------------------------------
I'm not familiar with google caledar api and I'm not sure if "-1" is a valid expires value, I copy an excerpt from rfc 2616:
"14.21 Expires
...
The format is an absolute date and time as defined by HTTP-date in section 3.3.1; it MUST be in RFC 1123 date format..."
> Does not support HTTP header Expires -1 and throw org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ABDERA-201
> URL: https://issues.apache.org/jira/browse/ABDERA-201
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.5.0
> Environment: Windows Vista, Java 1.6
> Reporter: Sylvain Legault
> Priority: Minor
>
> Connecting to Google calander but with a invalid URL (example missing / between calendar and feeds) e.g. http://www.google.com/calendarfeeds/default/allcalendars/full
> This will return an HTTP response 404 Not Found with an HTTP header Expires = -1
> The following exception is thrown:
> Exception in thread "main" java.lang.RuntimeException: org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
> at org.apache.abdera.protocol.client.AbstractClientResponse.getDateHeader(AbstractClientResponse.java:204)
> at org.apache.abdera.protocol.util.AbstractResponse.getExpires(AbstractResponse.java:62)
> at org.apache.abdera.protocol.client.cache.AbstractCache.shouldUpdateCache(AbstractCache.java:93)
> at org.apache.abdera.protocol.client.cache.AbstractCache.update(AbstractCache.java:129)
> at org.apache.abdera.protocol.client.AbderaClient.execute(AbderaClient.java:736)
> at org.apache.abdera.protocol.client.AbderaClient.get(AbderaClient.java:175)
> at org.apache.abdera.protocol.client.AbderaClient.get(AbderaClient.java:390)
> at x.z.atom.client.AtomReader.retreive(AtomReader.java:37)
> at x.z.atom.Startup.main(Startup.java:15)
> Caused by: org.apache.commons.httpclient.util.DateParseException: Unable to parse the date -1
> at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:170)
> at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:94)
> at org.apache.abdera.protocol.client.AbstractClientResponse.getDateHeader(AbstractClientResponse.java:201)
> ... 8 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.