Modify

Opened 3 months ago

#23511 new defect

Copy + paste file paths into the mapstyle addition workflow sometimes have quotes around them. This causes errors later.

Reported by: watmildon Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Add a map style but put double quotes around the path (this happens on Windows when using the "copy as path" right click menu)
  2. Open the info for the style in the mapstyles pane
  3. click the Source tab

What is the expected result?

No exception

What happens instead?

exception

Please provide any additional information below. Attach a screenshot if possible.

Revision:18969
Build-Date:2024-02-06 12:12:39

Identification: JOSM/1.5 (18969 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19045)
Memory Usage: 1456 MB / 16384 MB (175 MB allocated, but free)
Java version: 17.0.8.1+1-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1440×2560 (scaling 1.00×1.00) \Display1 3840×2160 (scaling 1.50×1.50)
Maximum Screen Size: 3840×2560
Best cursor sizes: 16×16→48×48, 32×32→48×48
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ FastDraw (36200)
+ FixAddresses (36126)
+ MapRoulette (26)
+ PicLayer (1.0.3)
+ apache-commons (36176)
+ apache-http (36176)
+ buildings_tools (36200)
+ conflation (0.6.11)
+ continuosDownload (103)
+ contourmerge (v0.2.0)
+ damn (0.13.2)
+ ejml (36176)
+ geotools (36176)
+ gridify (1606242219)
+ imagery_offset_db (36126)
+ jackson (36176)
+ javafx (36200)
+ jaxb (36118)
+ jna (36176)
+ josm_magic_wand (2.0.0)
+ jts (36004)
+ log4j (36176)
+ mapwithai (827)
+ opendata (36200)
+ pmtiles (36156)
+ reltoolbox (36200)
+ reverter (36196)
+ shrinkwrap (v1.0.4)
+ tageditor (36200)
+ terracer (36196)
+ todo (137)
+ turnrestrictions (36200)
+ undelete (36126)
+ utilsplugin2 (36200)
+ wikipedia (605)

Tagging presets:
+ C:\OSM\JOSMPresets\watmildonCustom.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/TigerReviewedNo&zip=1
+ %UserProfile%\Address Tags Validator - Highlight unaddressed
- https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Admin_Boundaries&zip=1
- C:\OSM\mapwiaipaintstyle
- https://josm.openstreetmap.de/josmfile?page=Styles/Waterways&zip=1
+ "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"

Validator rules:
- C:\OSM\Validator\GNISFixup.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander-PrefixDirectional.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander-PostfixDirectional.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\ALLCAPS-to-TitleCase.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\PhoneNumber-ITU-T-Formatter.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\ImportCleanup-San-Luis-Obispo-County.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\PhoneNumber-ITU-T-Formatter-Aggressive.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\NameTagCapitalization.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\LevelNotLayerIssues.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\CuisineFixups.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\FullAddressInStreetTag.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\RemoveCOVID19Tagging.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\whammo-PhoneFixup.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\USStreetNameExpander-UncommonExpansions.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\NHDToOSMTagRemap.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\VictoriaAddressFixup.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\CanVecTagging.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\Waterways.validator.mapcss
- C:\OSM\josm-validator-rules\josm-validator-rules\rules\USCensusPopulationInvestigation.validator.mapcss
+ C:\OSM\josm-validator-rules\josm-validator-rules\rules\TigerRemovalNudge.validator.mapcss

Last errors/warnings:
- 06473.805 E: Failed to locate image 'https://www.fs.usda.gov/sites/all/themes/fs_hq/images/usfslogo.png'
- 90001.905 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences
- 90182.538 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences
- 90196.831 W: Failed to load Mappaint styles from '"C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"'. Exception was: java.nio.file.InvalidPathException: Illegal char <"> at index 0: "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"
- 90196.833 E: java.nio.file.InvalidPathException: Illegal char <"> at index 0: "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"
- 90198.528 W: Failed to load Mappaint styles from '"C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"'. Exception was: java.nio.file.InvalidPathException: Illegal char <"> at index 0: "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"
- 90198.529 E: java.nio.file.InvalidPathException: Illegal char <"> at index 0: "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"
- 90198.533 E: java.nio.file.InvalidPathException: Illegal char <"> at index 0: "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles
- 90198.533 W: Initializing map style "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss" completed in 6 ms (1 errors, 0 warnings)
- 90370.235 E: Handled by bug report queue: java.nio.file.InvalidPathException: Illegal char <"> at index 0: "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (22) of main
java.nio.file.InvalidPathException: Illegal char <"> at index 0: "C:\OSM\josm-validator-rules\josm-validator-rules\paintstyles\TigerTagNoticer.mapcss"
	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:232)
	at java.base/java.io.File.toPath(File.java:2387)
	at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:236)
	at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.getSourceInputStream(MapCSSStyleSource.java:225)
	at org.openstreetmap.josm.gui.dialogs.MapPaintDialog$InfoAction.buildSourcePanel(MapPaintDialog.java:617)
	at org.openstreetmap.josm.gui.dialogs.MapPaintDialog$InfoAction.lambda$actionPerformed$0(MapPaintDialog.java:558)
	at java.desktop/javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:148)
	at java.desktop/javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:79)
	at java.desktop/javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:648)
	at java.desktop/javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:623)
	at java.desktop/javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(BasicTabbedPaneUI.java:4101)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6623)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
	at java.desktop/java.awt.Component.processEvent(Component.java:6391)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
	at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
	at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
	at java.desktop/java.awt.Component.show(Component.java:1728)
	at java.desktop/java.awt.Component.setVisible(Component.java:1675)
	at java.desktop/java.awt.Window.setVisible(Window.java:1036)
	at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1016)
	at org.openstreetmap.josm.gui.ExtendedDialog.setVisible(ExtendedDialog.java:468)
	at org.openstreetmap.josm.gui.ExtendedDialog.showDialog(ExtendedDialog.java:260)
	at org.openstreetmap.josm.gui.dialogs.MapPaintDialog$InfoAction.actionPerformed(MapPaintDialog.java:562)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1028)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1072)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
	at java.desktop/java.awt.Component.processEvent(Component.java:6391)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to watmildon.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.