Modify

Opened 4 years ago

Closed 4 years ago

#13260 closed defect (fixed)

Opening an .osm file containing HTML code takes ages

Reported by: simon04 Owned by: team
Priority: minor Milestone: 16.07
Component: Core Version: latest
Keywords: Cc:

Description

I accidentally downloaded the HTML preview of the attachment from #8251. Opening this file takes ages and terminates with "No data found in file …".

r10681.

The relevant stack trace:

"main-worker-0" #40 prio=5 os_prio=0 tid=0x00007f1284174800 nid=0x7f59 runnable [0x00007f1283886000]
   java.lang.Thread.State: RUNNABLE
  at java.net.SocketInputStream.socketRead0(Native Method)
  at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
  at java.net.SocketInputStream.read(SocketInputStream.java:170)
  at java.net.SocketInputStream.read(SocketInputStream.java:141)
  at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
  at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
  at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
  - locked <0x000000077cd6c9c0> (a java.io.BufferedInputStream)
  at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
  at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536)
  - locked <0x000000077cd69da8> (a sun.net.www.protocol.http.HttpURLConnection)
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
  - locked <0x000000077cd69da8> (a sun.net.www.protocol.http.HttpURLConnection)
  at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:647)
  at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1304)
  at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1240)
  at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.startPE(XMLDTDScannerImpl.java:726)
  at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.skipSeparator(XMLDTDScannerImpl.java:2095)
  at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:2058)
  at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:301)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1175)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1045)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:959)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
  at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
  at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:553)
  at org.openstreetmap.josm.io.OsmReader.parse(OsmReader.java:112)
  at org.openstreetmap.josm.io.OsmReader.doParseDataSet(OsmReader.java:589)
  at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:640)
  at org.openstreetmap.josm.io.OsmImporter.parseDataSet(OsmImporter.java:123)
  at org.openstreetmap.josm.io.OsmImporter.loadLayer(OsmImporter.java:113)
  at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:90)
  at org.openstreetmap.josm.io.OsmImporter.importData(OsmImporter.java:75)
  at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:90)
  at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:349)
  at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:302)
  at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
  at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:141)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)

Attachments (1)

gerzap.html.osm (10.0 KB) - added by simon04 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by simon04

Attachment: gerzap.html.osm added

comment:1 Changed 4 years ago by Don-vip

Milestone: 16.07

comment:2 Changed 4 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 10702/josm:

fix #13260 - Disable DTD resolution when loading .osm files

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.