﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
24363	JOSM cannot load (some of?) its own savings	Gingko	team	"==== What steps will reproduce the problem?
1. Import objects into JOSM.
For example this one (a single node !) loaded using Overpass API :


{{{
[out:json][timeout:25];
// gather results
node(361706);
// print results
out geom;
}}}


2. Save your contents.
File -> Save As … -> Give a name.
(for example : **node361706.osm**)

3. Quit and restart JOSM.

4. Reload your file.
File -> Open … -> Select the file you just saved.

==== What is the expected result?
Reloading the saved contents.

==== What happens instead?
A dialog appears telling (in French language in my case) that the file 'node361706.osm' cannot be read, because the 'version' attribute is missing from the OSM object with ID 361706 (at line 3, column 71), etc.

==== Please provide any additional information below. Attach a screenshot if possible.
The textual contents of the 'node361706.osm' is the following:


{{{
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
  <node id='361706' visible='true' lat='48.8308507' lon='2.3562364' />
</osm>
}}}


Effectively, there is no ""version"" attribute into this node contents (whereas it exists in some other files).
I think that JOSM should either take care of writing a version attribute everywhere it is required, or not flag this as an error.

I made a screenshot.

{{{
Revision:19412
Build-Date:2025-06-03 14:12:44

Identification: JOSM/1.5 (19412 fr) Windows 10 64-Bit
OS Build number: Windows 10 Pro 22H2 (19045)
Memory Usage: 432 MB / 24352 MB (308 MB allocated, but free)
Java version: 21.0.7+6-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: \Display0 1920x1200x32bpp@75Hz (scaling 1.00×1.00) \Display1 1920x1200x32bpp@59Hz (scaling 1.00×1.00) \Display2 1200x1920x32bpp@59Hz (scaling 1.00×1.00) \Display3 1280x1024x32bpp@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1920
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: fr_FR
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.19412, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]
Dataset consistency test: No problems found

Plugins:
+ apache-commons (36438)
+ busstoptool (1.1.0)
+ fastdriveway (v1.0.1)
+ jaxb (36438)
+ mapathoner (v1.7.1)
+ mapwithai (839)
+ pmtiles (36438)
+ utilsplugin2 (36438)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Admin_Boundaries&zip=1
- https://josm.openstreetmap.de/josmfile?page=Rules/IncompleteObjectWarnings&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Waterways&zip=1

Last errors/warnings:
- 00000.483 W: extended font config - overriding 'filename.Malgun_Gothic=malgun.ttf' with 'MALGUN.TTF'
- 00000.484 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.484 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00001.134 E: java.security.KeyStoreException: Windows-ROOT not found. Cause : java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00157.040 E: org.openstreetmap.josm.io.IllegalDataException: Attribut 'version' manquant pour l’objet OSM avec l’identifiant 361706. (à la ligne 3, colonne 71). 153 octets ont été lus. Cause : org.openstreetmap.josm.io.XmlStreamParsingException: Attribut 'version' manquant pour l’objet OSM avec l’identifiant 361706. (à la ligne 3, colonne 71). 153 octets ont été lus. Cause : org.openstreetmap.josm.io.IllegalDataException: Attribut 'version' manquant pour l’objet OSM avec l’identifiant 361706.
- 00157.131 E: Erreur - <html>Impossible de lire le fichier 'node361706.osm'.<br>Erreur :<br>Attribut 'version' manquant pour l’objet OSM avec l’identifiant 361706. (à la ligne 3, colonne 71). 153 octets ont été lus</html>
}}}
"	defect	new	critical		Core	latest		template_report	
