<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/delicious-java/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/delicious-java/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 30 Oct 2010 06:35:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/delicious-java/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Post class missing hashCode implementation</title><link>https://sourceforge.net/p/delicious-java/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The Post class overrides equals and MUST override hashCode() as per java specification.&lt;br /&gt;
An implementation of hashCode() that returns href.hashCode() should be ok.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 30 Oct 2010 06:35:32 -0000</pubDate><guid>https://sourceforge.net83e50c1085d0e8a8f5b401a4855b10c9819d4e88</guid></item><item><title>Preemptive authentication</title><link>https://sourceforge.net/p/delicious-java/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Every api call actually does two requests (via httpclient due to http-auth). You can cut this down by prememptively authenticating.&lt;/p&gt;
&lt;p&gt;client.getParams().setAuthenticationPreemptive(true);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">alvins</dc:creator><pubDate>Mon, 14 May 2007 11:43:57 -0000</pubDate><guid>https://sourceforge.netddfc1e70e5b4b6a1381f0c0b30ed82dcda551df3</guid></item><item><title>wrong scope for variable element  in delicious.tld</title><link>https://sourceforge.net/p/delicious-java/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I found the following in the&lt;br /&gt;
delicious-1.13.jar!/META-INF/delicious.tld&lt;/p&gt;
&lt;p&gt;&amp;lt;variable&amp;gt;&lt;br /&gt;
&amp;lt;name-from-attribute&amp;gt;var&amp;lt;/name-from-attribute&amp;gt;&lt;br /&gt;
&amp;lt;variable-class&amp;gt;java.util.List&amp;lt;/variable-class&amp;gt;&lt;br /&gt;
&amp;lt;scope&amp;gt;page&amp;lt;/scope&amp;gt;&lt;br /&gt;
&amp;lt;/variable&amp;gt;&lt;/p&gt;
&lt;p&gt;I checked the jsp specification 2.0 and 2.1. Yes,&lt;br /&gt;
the valid scopes for variables declared in&lt;br /&gt;
tag element are AT_BEGIN, NESTED, AT_END. This scopes&lt;br /&gt;
is meant to tell where this variable is visible as a&lt;br /&gt;
java variable. It is not the same as the other scope,&lt;br /&gt;
which is  to tell the scope of an attribute of the&lt;br /&gt;
PageContext, "page", "request", "session" or "application".&lt;/p&gt;
&lt;p&gt;This bug prevents me from using delicious*.jar on oc4j&lt;br /&gt;
since oc4j validates the value of scope tag.&lt;/p&gt;
&lt;p&gt;The fix is simple. Just change "page" to "AT_BEGIN", or&lt;br /&gt;
"NESTED" or "AT_END", whichever fits. For me, I just&lt;br /&gt;
tried with "AT_BEGIN". It seems fine.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">makeSense</dc:creator><pubDate>Fri, 10 Nov 2006 19:35:37 -0000</pubDate><guid>https://sourceforge.netf3acd598e2645d8abcb4beb0bf500960bcd24252</guid></item><item><title>Problems with Non-UTF8-Strings</title><link>https://sourceforge.net/p/delicious-java/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I just upgraded to the latest release (delicious-&lt;br /&gt;
1.12.jar) and now have problems with postings that &lt;br /&gt;
contain non-ASCII characters (like ÄÜäüß)&lt;br /&gt;
- in the title&lt;br /&gt;
- in the description, or &lt;br /&gt;
- in the tags&lt;/p&gt;
&lt;p&gt;My Java program is unchanged. It uses the addPost &lt;br /&gt;
method with Unicode-Strings:&lt;/p&gt;
&lt;p&gt;d.addPost(normalizeURL(t.getLocation()), // URL&lt;br /&gt;
t.getName(), // description     &lt;br /&gt;
brain.getExtended(t.getId()), // extended&lt;br /&gt;
brain.getTags(t), // tags   &lt;br /&gt;
t.getModifiedTimestamp(), // date&lt;br /&gt;
true, // replace&lt;br /&gt;
true // shared&lt;br /&gt;
);&lt;/p&gt;
&lt;p&gt;The method does not raise exceptions.&lt;/p&gt;
&lt;p&gt;However, when I visit the delicious web site, non-&lt;br /&gt;
ASCII characters are distorted / truncated. For &lt;br /&gt;
example, see the last postings in:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://del.icio.us/personalbrain" rel="nofollow"&gt;http://del.icio.us/personalbrain&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;like: Technische Universit䴠M? - Corporate Design.&lt;/p&gt;
&lt;p&gt;The RSS feed for my account&lt;/p&gt;
&lt;p&gt;&lt;a href="http://del.icio.us/rss/personalbrain" rel="nofollow"&gt;http://del.icio.us/rss/personalbrain&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;is more helpful and displays the following error &lt;br /&gt;
messages (in the title /tags / extended fields):&lt;/p&gt;
&lt;p&gt;del.icio.us warning: non-utf8 string! (sorry) &lt;br /&gt;
del.icio.us warning: non-utf8 string! (sorry) &lt;br /&gt;
del.icio.us warning: non-utf8 string! (sorry)&lt;/p&gt;
&lt;p&gt;How can I make sure that non-ASCII characters are &lt;br /&gt;
correctly posted to del.icio.us?&lt;/p&gt;
&lt;p&gt;Thank you for your assistance&lt;br /&gt;
Florian Matthes&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Florian Matthes</dc:creator><pubDate>Tue, 01 Aug 2006 09:54:31 -0000</pubDate><guid>https://sourceforge.net67245f0e3db2ccd4eee048d1038edc9eef44a4ec</guid></item><item><title>getAllPosts and XML parser exception</title><link>https://sourceforge.net/p/delicious-java/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi David,&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Here is something that looks like a bug:&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;del.icio.us.DeliciousException: Response parsing &lt;br /&gt;
error &lt;br /&gt;
at &lt;br /&gt;
del.icio.us.Delicious.getAllPosts(Delicious.java:568) &lt;br /&gt;
at &lt;br /&gt;
......&lt;br /&gt;
Caused by: org.xml.sax.SAXParseException: The entity &lt;br /&gt;
"nbsp" was referenced, but not declared. &lt;br /&gt;
at &lt;br /&gt;
org.apache.xerces.parsers.DOMParser.parse(Unknown &lt;br /&gt;
Source) &lt;br /&gt;
at &lt;br /&gt;
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown &lt;br /&gt;
Source) &lt;br /&gt;
at &lt;br /&gt;
del.icio.us.Delicious.getAllPosts(Delicious.java:532) &lt;br /&gt;
... 2 more &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;The XML being parsed looks like this:&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version='1.0' standalone='yes'?&amp;gt;&lt;br /&gt;
&amp;lt;posts update="2005-12-10T20:55:44Z" user="foobar"&amp;gt;&lt;br /&gt;
&amp;lt;post href="http://something.com/"&lt;br /&gt;
description="Fifi.com :: X, Y, and Z"&lt;br /&gt;
extended="something.com"&lt;br /&gt;
hash="23cde401733d1ebb3849a91343b49454" tag="family"&lt;br /&gt;
time="2005-12-10T20:52:47Z" /&amp;gt;&lt;br /&gt;
&amp;lt;/posts&amp;gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;I don't even see any "nbsp" references above.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;I have Xerces 2.6.2 in the classpath (and I see 2.7.1&lt;br /&gt;
is the latest version of Xerces)&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Ever seen this?  Does this look like a delicious-java&lt;br /&gt;
bug Xerces or something else?  Looks like Xerces, no? &lt;/p&gt;
&lt;p&gt;Thanks.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Otis Gospodnetic</dc:creator><pubDate>Sun, 11 Dec 2005 21:12:42 -0000</pubDate><guid>https://sourceforge.neta528040543832abec76ca2541b52a2920ce6c1d0</guid></item><item><title>method Post.getDateAsTime() displays wrong timezone</title><link>https://sourceforge.net/p/delicious-java/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I was looking at the posting date, and wondering how to&lt;br /&gt;
display it in *local time* not GMT as it currently&lt;br /&gt;
does. Well, the getDateAsTime() method displays the&lt;br /&gt;
date/time component correctly but have a look at the&lt;br /&gt;
TimeZone appended to the date object that comes out of it.&lt;/p&gt;
&lt;p&gt;In DeliciousUtils you've got a method&lt;br /&gt;
getDateFromUTCString() , which the Post uses in it's&lt;br /&gt;
getTimeAsDate() method to return a Date.&lt;/p&gt;
&lt;p&gt;The problem with that returned Date object is that it&lt;br /&gt;
is not in 'UTC' or 'GMT' but actually in the LOCAL&lt;br /&gt;
TIMEZONE or the default timezone of the JVM if that's&lt;br /&gt;
set to something else. If you do a 'toString()' on the&lt;br /&gt;
date object you will see it will print the 'GMT' time&lt;br /&gt;
alright but print your local timezone as the Timezone.&lt;br /&gt;
So for me it says it posted the links 10 hours earlier&lt;br /&gt;
than they were actually posted. A java.util.Date object&lt;br /&gt;
is ALWAYS in the default timezone of the JVM.&lt;/p&gt;
&lt;p&gt;It then becomes a bigger problem if you want to display&lt;br /&gt;
the posting time to the user in the local timezone. You&lt;br /&gt;
would have to muck around with offsets and the like and&lt;br /&gt;
probably drive you insane with daylight savings time&lt;br /&gt;
and what not.&lt;/p&gt;
&lt;p&gt;However the fix is pretty simple; java.util.Calendar to&lt;br /&gt;
the rescue. Luckily enough the SimpleDateFormat object&lt;br /&gt;
can take a Calendar object. This tells SimpleDateFormat&lt;br /&gt;
the timezone of the String it's about to parse in. Then&lt;br /&gt;
the Date object is returned as the 'correct' date, i.e.&lt;br /&gt;
as the default JVM timezone sees it.&lt;/p&gt;
&lt;p&gt;This can be done niavely as follows;&lt;/p&gt;
&lt;p&gt;public static Date getDateFromUTCString(String time) {&lt;br /&gt;
Date result = null;&lt;br /&gt;
try {&lt;br /&gt;
((SimpleDateFormat)&lt;br /&gt;
UTC_DATE_FORMAT_OBJECT.get()).setCalendar(&lt;br /&gt;
Calendar.getInstance(TimeZone.getTimeZone("GMT")) );&lt;br /&gt;
result = ((SimpleDateFormat)&lt;br /&gt;
UTC_DATE_FORMAT_OBJECT.get()).parse(time);&lt;br /&gt;
} catch (ParseException e) {&lt;br /&gt;
}&lt;br /&gt;
return result;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Of course it's probably best to set the Calender when&lt;br /&gt;
you construct the simple date format in the first place.&lt;/p&gt;
&lt;p&gt;At this point the date object will display in LOCAL&lt;br /&gt;
TIME but correct vis a vis to the actual GMT time that&lt;br /&gt;
the entry was posted.&lt;/p&gt;
&lt;p&gt;However now the date is correct, you can convert it&lt;br /&gt;
correctly to another date display. for example I could&lt;br /&gt;
post something now to delicious, my local time is 20:13&lt;br /&gt;
Friday night  15 Oct. Someone on the West Coast of the&lt;br /&gt;
USA could now retrieve this date from Delicious and&lt;br /&gt;
using the local timezone Calendar and simple date&lt;br /&gt;
format, display the date in their local time, or using&lt;br /&gt;
another Calendar input to SimpleDateFormat, display it&lt;br /&gt;
in some other timezone. Daylight savings issues and&lt;br /&gt;
everything taken care of.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scot mcphee</dc:creator><pubDate>Fri, 15 Oct 2004 10:22:43 -0000</pubDate><guid>https://sourceforge.netaef5a11ac77f89119c0ffd9dc878a3ebb5173197</guid></item></channel></rss>