Modify

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#7361 closed defect (fixed)

image filename with 3 commas causes exception

Reported by: malenki Owned by: team
Priority: normal Component: Core
Version: latest Keywords: image photograph
Cc:

Description (last modified by Don-vip)

Amongst others I have an image descriptively named
dscf_F30-2_011621_Gjirokastra_-_Häuser_alt_und_neu,_dahinter_links_Gjerë-,_dahinter_Kendrevica-Berge,_rechts_Lunxhëria-Berge.jpg

When I run JOSM like this
java -jar ~/bin/josm-archive/josm-4900.jar ./

everything is fine.

But running JOSM like this

java -jar ~/bin/josm-archive/josm-4900.jar dscf*jpg

causes following error:

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-02-05 02:32:23
Last Changed Author: stoecker
Revision: 4900
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-02-04 22:41:17 +0100 (Sat, 04 Feb 2012)
Last Changed Rev: 4900

Identification: JOSM/1.5 (4900 de)
Memory Usage: 146 MB / 4711 MB (69 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Linux

Plugin: FixAddresses (27676)
Plugin: OpeningHoursEditor (27676)
Plugin: PicLayer (27676)
Plugin: buildings_tools (27676)
Plugin: contourmerge (1003)
Plugin: download_along (27526)
Plugin: ext_tools (27569)
Plugin: licensechange (27676)
Plugin: magicshop-josm (4437)
Plugin: mapdust (27596)
Plugin: measurement (27464)
Plugin: openstreetbugs (27355)
Plugin: openvisible (27289)
Plugin: reverter (27676)
Plugin: tageditor (27675)
Plugin: terracer (27649)
Plugin: turnrestrictions (27676)
Plugin: undelete (27649)
Plugin: utilsplugin2 (27698)
Plugin: waydownloader (27649)
Plugin: wayselector (27019)

java.lang.NumberFormatException: For input string: "dscf_F30-2_011621_Gjirokastra_-_Häuser_alt_und_neu"
	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
	at java.lang.Double.parseDouble(Double.java:510)
	at org.openstreetmap.josm.Main.downloadFromParamBounds(Main.java:675)
	at org.openstreetmap.josm.Main.postConstructorProcessCmdLine(Main.java:530)
	at org.openstreetmap.josm.gui.MainApplication$4.run(MainApplication.java:304)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
	at java.awt.EventQueue.access$000(EventQueue.java:84)
	at java.awt.EventQueue$1.run(EventQueue.java:602)
	at java.awt.EventQueue$1.run(EventQueue.java:600)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments (0)

Change History (5)

comment:1 Changed 16 months ago by malenki

PS: Last time I opened this image (with 2k others) without error was around 1st January. Maybe you can pinpoint the JOSM version which started to fail.

comment:2 Changed 16 months ago by anonymous

PPS: Had a 2nd thought on it. It is likely I last opened the image with the JOSM latest from 07.01.2012

comment:3 Changed 16 months ago by Don-vip

  • Description modified (diff)
  • Summary changed from long name of image with comma causes exception to image filename with 3 commas causes exception

comment:4 Changed 16 months ago by Don-vip

  • Resolution set to fixed
  • Status changed from new to closed

In [4901/josm]:

fix #7361 - image filename with 3 commas causes exception

comment:5 Changed 16 months ago by malenki

Thanks for the fix in near realtime.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.