﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22773	Save always displays as succesful even when not (e.g. due to permissions), leading to data loss	anonymous	anonymous	"==== What steps will reproduce the problem?
1. use save method upon exiting application with unsaved changes, Try to save to a location without write permission
2. Watch on-screen display message in JOSM state the file has been successfully saved
3. Check existence of file

==== What is the expected result?

Either error message and offer user to try saving again without exiting JOSM yet.

==== What happens instead?
JOSM just exits and files are lost, trying to recuperate them from autosave/deleted layers folder hopefully works then.

==== Please provide any additional information below. Attach a screenshot if possible.

Installed as a Flatpak from Flathub through KDE Discover.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-01-29 21:53:34 +0100 (Sun, 29 Jan 2023)
Revision:18646
Build-Date:2023-01-30 02:30:56
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18646) Linux Freedesktop.org SDK 22.08 (Flatpak runtime)
Memory Usage: 174 MB / 3962 MB (75 MB allocated, but free)
Java version: 17.0.4.1+12, Flathub, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Screen: :0.0 1672×940 (scaling 1.00×1.00)
Maximum Screen Size: 1672×940
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_GB.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info:
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
VM arguments: [--module-path=/app/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, --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]

Tagging presets:


Validator rules:

}}}
"	defect	closed	critical		Core		othersoftware	template_report	
