Opened 14 months ago

Last modified 13 months ago

#24014 closed defect

JOSM removes "newline" characters \n from inscription when editing nodes — at Initial Version

Reported by: scyyy Owned by: team
Priority: normal Milestone: 24.11
Component: Core Version:
Keywords: Cc: gaben, simonpoole

Description

I was adding operator:wikidata tags to some nodes (e.g. https://www.openstreetmap.org/node/12344145506). These nodes have an inscription= tag created by iD that's using \n in its value to signify line breaks. According to https://wiki.openstreetmap.org/wiki/Key:inscription, this is a valid usage.

However, after uploading the changes via JOSM (changeset https://www.openstreetmap.org/changeset/159245848), the inscriptions all lost their \n linebreaks. I'm not exactly sure whether JOSM converted them to actual newline characters (instead of a backslash followed by an n) or replaced them with spaces. In any case, it should not do that, especially not in a totally silent way when my edit didn't even change the tag value at all. I'm glad that I saw this happening and was able to revert it; pretty sure that not everyone would.

Adding the status report manually because the "Report bug" button would send me to Debian's bug tracker, but I don't assume this is Debian-specific behavior. Let me know if you need more information, and thanks for looking into this.

Revision:19253
Is-Local-Build:false
Build-Date:2024-11-06 04:21:43
Debian-Release:0.0.svn19253+dfsg-1~bpo12+1
Build-Name:Debian

Identification: JOSM/1.5 (19253 Debian en) Linux Debian GNU/Linux 12 (bookworm)
Memory Usage: 432 MB / 11920 MB (171 MB allocated, but free)
Java version: 17.0.13+11-Debian-2deb12u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080x[Multi depth]@60Hz (scaling 1.00×1.00) :0.1 2560x1080x[Multi depth]@[Unknown refresh rate] (scaling 1.00×1.00) :0.2 1080x1920x[Multi depth]@[Unknown refresh rate] (scaling 1.00×1.00)
Maximum Screen Size: 2560×1920
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: sway
Java package: openjdk-17-jre:amd64-17.0.13+11-2~deb12u1
Java ATK Wrapper package: libatk-wrapper-java:all-0.40.0-3
libcommons-compress-java: libcommons-compress-java:all-1.22-1
libcommons-logging-java: libcommons-logging-java:-
fonts-noto: fonts-noto:all-20201225-1
VM arguments: [--module-path=/usr/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, -XX:MaxRAMPercentage=75.0, --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]

Plugins:
+ reverter (36343)

Last errors/warnings:
- 00015.681 W: java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!


cache.bing.attribution.xml=1729713311
cache.capabilities1637351842=1731854021
cache.motd.html=1731854022
cache.motd.html.java=17.0.13
cache.motd.html.lang=En:
cache.motd.html.version=19253
changesetdialog.lastHeight=0
commandstack.lastHeight=118
commandstack.visible=true
conflict.lastHeight=0
download.tab=3
downloadprimitive.lasttype=2
draw.rawgps.lines=-1
filter.lastHeight=0
gui.geometry=x=0,y=0,width=1920,height=1061
imagery.entries=[{max-zoom=22, min-zoom=1, noTileHeaders={"X-VE-Tile-Info":["no-tile"]}, noTileChecksums={"MD5":["c13269481c73de6e18589f9fbc3bdf7e"]}, metadataHeaders={"X-VE-TILEMETA-CaptureDatesRange":"Capture Date"}, transparent=true, minimumTileExpire=3600, name=Bing aerial imagery, id=Bing, type=bing, url=https://www.bing.com/maps/, permission-reference-url=https://wiki.openstreetmap.org/wiki/Bing_Maps, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={}, category=photo},
  {max-zoom=22, noTileHeaders={"Etag":["\"10i954m13i2\""]}, noTileChecksums={"MD5":["f27d9de7f80c13501f470595e327aa6d"]}, transparent=true, minimumTileExpire=3600, name=Esri World Imagery, id=EsriWorldImagery, type=tms, url=https://{switch:services,server}.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/tile/{zoom}/{y}/{x}, attribution-text=Terms & Feedback, attribution-url=https://wiki.openstreetmap.org/wiki/Esri, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={}, category=photo},
  {max-zoom=22, transparent=true, minimumTileExpire=3600, name=Esri World Imagery (Clarity) Beta, id=EsriWorldImageryClarity, type=tms, url=https://clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{zoom}/{y}/{x}, attribution-text=Terms & Feedback, attribution-url=https://wiki.openstreetmap.org/wiki/Esri, permission-reference-url=https://github.com/osmlab/editor-layer-index/pull/358#issuecomment-361416110, cookies=, icon=data:image/png;base64,iVBORw0..., description=Esri archive imagery that may be clearer and more accurate than the default layer., customHttpHeaders={}, category=photo},
  {max-zoom=22, noTileHeaders={"ETag":["\"336b022ed883bc72347a637634e490d4\"|\"067736a547cafe90014b4e59b6510abe\"|\"ee1f6802b0234046b553cbbc672ac7d9\"|\"9f5a2f1d7cc131e58befc2052c71c827\""]}, noTileChecksums={"MD5":["58e78313d04adf0ea64b8de8590c3d46"]}, transparent=true, minimumTileExpire=3600, name=Mapbox Satellite, id=Mapbox, type=tms, url=https://{switch:a,b,c,d}.tiles.mapbox.com/v4/mapbox.satellite/{zoom}/{x}/{y}.jpg?access_token={apikey}, attribution-text=Terms & Feedback, attribution-url=https://www.mapbox.com/about/maps/, permission-reference-url=https://wiki.openstreetmap.org/wiki/Vertical_Aerial_Photographs#DigitalGlobe_.2F_MapBox, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={"Referer":"https://josm.openstreetmap.de/"}, category=photo},
  {max-zoom=19, valid-georeference=true, transparent=true, minimumTileExpire=3600, name=OpenStreetMap Carto (Standard), id=standard, type=tms, url=https://tile.openstreetmap.org/{zoom}/{x}/{y}.png, attribution-text=© OpenStreetMap contributors, attribution-url=https://www.openstreetmap.org/, permission-reference-url=https://wiki.osmfoundation.org/wiki/Terms_of_Use, cookies=, icon=data:image/png;base64,iVBORw0..., customHttpHeaders={}, category=osmbasedmap}
]
imagery.layers.default=[Bing, EsriWorldImagery, EsriWorldImageryClarity, Mapbox, standard]
josm.version=19253
lastDirectory=${HOME}/Downloads
layerlist.lastHeight=120
mappaint.renderer-class-name=org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer
mappaint.style.known-defaults=[resource://styles/standard/elemstyles.mapcss]
mapstyle.lastHeight=0
minimap.lastHeight=0
mirror.<josm.cache>/images.https://josm.openstreetmap.de/raw-attachment/wiki/Help/Josm_main.jpg.svg=[1729712735281, <josm.cache>/images/mirror_https___josm.openstreetmap.de_raw-attachment_wiki_Help_Josm_main.jpg.svg]
mirror.https://josm.openstreetmap.de/maps=[1731854024228, <josm.cache>/mirror_https___josm.openstreetmap.de_maps]
mirror.https://josm.openstreetmap.de/remote/geofabrik-index-v1-nogeom.json=[1731854023462, <josm.cache>/mirror_https___josm.openstreetmap.de_remote_geofabrik-index-v1-nogeom.json]
mirror.https://josm.openstreetmap.de/rules=[1731855784970, <josm.cache>/mirror_https___josm.openstreetmap.de_rules]
notes/note_open.lastHeight=0
org.openstreetmap.josm.actions.SessionSaveAction$SessionSaveAsDialog.geometry=x=735,y=305,width=450,height=450
org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper$AddTagsDialog.geometry=x=786,y=334,width=347,height=392
org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper$EditTagDialog.geometry=x=813,y=449,width=294,height=163
org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor.geometry=x=1006,y=180,width=700,height=650
org.openstreetmap.josm.gui.download.DownloadDialog.geometry=x=460,y=230,width=1000,height=600
org.openstreetmap.josm.gui.download.DownloadObjectDialog.primitivesHistory=[17010855]
org.openstreetmap.josm.gui.help.HelpBrowser.geometry=x=0,y=0,width=600,height=400
org.openstreetmap.josm.gui.history.HistoryBrowserDialogManager.geometry=x=535,y=280,width=850,height=500
org.openstreetmap.josm.gui.io.UploadDialog.geometry=x=560,y=230,width=800,height=600
org.openstreetmap.josm.gui.oauth.OAuthAuthorizationWizard.geometry=x=572,y=323,width=776,height=415
org.openstreetmap.josm.gui.preferences.PreferenceDialog.geometry=x=560,y=130,width=800,height=800
osm-download.bounds=51.8584713;10.0445938;51.9131439;10.1132584
osm-server.upload-strategy=singlerequest
pluginmanager.lastupdate=1731855660945
pluginmanager.version=19253
plugins=[reverter]
preferences.reset.draw.rawgps.lines=true
properties.recent-tags=[power, terminal, man_made, pipeline, name, Fernwasserleitung Söse Nord, operator:wikidata, Q1588057, operator, Harzwasserwerke, substance, water, location, underground, layer, -1, fixme, continue]
propertiesdialog.lastHeight=178
relationlist.lastHeight=178
remotecontrol.permission.authorization=true
reverter.ChangesetIdQuery.changesetsHistory=[159245848]
search.history=[R operator=Harzwasserwerke "operator:wikidata"=, R marker=post operator=Harzwasserwerke inscription=, R marker=post operator=Harzwasserwerke, R marker=post, R modified OR deleted]
selectionlist.lastHeight=178
sensitive.keys=[oauth.access-token.key, oauth.access-token.object.OAuth20.api.openstreetmap.org, oauth.access-token.parameters.OAuth20.api.openstreetmap.org, oauth.access-token.secret, osm-server.password, osm-server.username, proxy.pass, proxy.user, sensitive.keys]
toggleDialogs.width=326
upload.comment.history=[Add section of FWL Söse Nord between Dannhausen and Gremsheim to relation, Add Wikidata tag for Harzwasserwerke-operated items, Add, , Expand Dannhausen power line, modify some other small things along the way.]
upload.comment.last-used=1731859817
upload.source.history=[survey, knowledge, , survey;aerial imagery, Bing]
userlist.lastHeight=0
validator.lastHeight=179
validator.visible=true

Change History (0)

Note: See TracTickets for help on using tickets.