Issue Details (XML | Word | Printable)

Key: CONF-7581
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Alex Fishlock
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Confluence

Missing Europe/London timezome causes runtime errors

Created: 07/Jan/07 06:04 AM   Updated: 11/Jan/07 05:53 PM
Component/s: None
Affects Version/s: 2.3
Fix Version/s: 2.3.1

Time Tracking:
Not Specified

Issue Links:
Reference
 

Participants: Agnes Ro [Atlassian], Alex Fishlock and Andy Lynch
Since last comment: 2 years, 24 weeks, 6 days ago
Resolution Date: 11/Jan/07 05:53 PM
Labels:


 Description  « Hide
the timezones.properties has a missing timezone:
Europe/London

This means that on a system (like ours) where the default timezone of the VM in Europe/London then this happens:
java.lang.StackOverflowError
at java.util.HashMap.containsKey(HashMap.java:377)
at com.atlassian.confluence.core.TimeZone.getInstance(TimeZone.java:37)
at com.atlassian.confluence.core.TimeZone.getDefault(TimeZone.java:112)
at com.atlassian.confluence.core.TimeZone.getInstance(TimeZone.java:39)
at com.atlassian.confluence.core.TimeZone.getDefault(TimeZone.java:112)
at com.atlassian.confluence.core.TimeZone.getInstance(TimeZone.java:39)

on any page. Looking at the source of com.atlassian.confluence.core.TimeZone I note tht the timezones are loaded from a timezones.properties file.

Europe/London is missing from this properties file.

Adding Europe/London fixes the issue..

Why not remove the properties file though,, and modify com.atlassian.confluence.core.TimeZone to be:

private static Map loadTimeZones()
{

String[] timeZoneIDs = java.util.TimeZone.getAvailableIDs();
Map result = new HashMap(timeZoneIDs.length);
for (int i = 0; i < timeZoneIDs.length; i++)

{ String timeZoneID = timeZoneIDs[i]; result.put(timeZoneID, new TimeZone(timeZoneID)); }

return result;
}

so that all timeones are loaded???



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Andy Lynch added a comment - 08/Jan/07 07:27 PM
setting the timezone as a system property ( -Duser.timezone ) works arounds this too - see CONF-1026

Agnes Ro [Atlassian] added a comment - 11/Jan/07 05:53 PM
See CONF-7573 for patch.