Modify

Opened 6 years ago

Last modified 5 years ago

#17832 new defect

wikipedia tag false positive

Reported by: wambacher Owned by: floscher
Priority: normal Milestone:
Component: Plugin wikipedia Version: tested
Keywords: validator false positive Cc: Klumbumbus, Jakka, naoliv

Description (last modified by Don-vip)

Hi

JOSM (15155) validator is flagging such wikipedia tags like LG:Value as error:

wikipedia=de:Deutschland, wikipedia=en:Canada and many, many more.

I think it'a a validator error which must be quite new. This was never ever flagged before some days/weeks


Regards
walter

Attachments (1)

wikipedia_tag.png (68.3 KB ) - added by Don-vip 6 years ago.

Download all attachments as: .zip

Change History (18)

by Don-vip, 6 years ago

Attachment: wikipedia_tag.png added

comment:1 by Don-vip, 6 years ago

Component: CoreCore validator
Description: modified (diff)
Keywords: validator removed

comment:2 by Don-vip, 6 years ago

Cc: Klumbumbus added
Milestone: 19.06

I can't reproduce.

comment:3 by Klumbumbus, 6 years ago

@wambacher: Please add your statusreport (see newticket). (I guess it is from the wikipedia plugin.)

comment:4 by wambacher, 6 years ago

Sorry. here is the missing status report:

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-06-03 00:05:30 +0200 (Mon, 03 Jun 2019)
Build-Date:2019-06-02 22:10:24
Revision:15155
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15155 de) Linux Ubuntu 19.04
Memory Usage: 1906 MB / 3541 MB (1364 MB allocated, but free)
Java version: 1.8.0_212-8u212-b03-0ubuntu1.19.04.2-b03, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-8-jre:amd64-8u212-b03-0ubuntu1.19.04.2
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-21
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
+ DirectUpload (34908)
+ HouseNumberTaggingTool (34977)
+ Mapillary (1.5.18)
+ OpeningHoursEditor (34977)
+ PicLayer (35027)
+ RoadSigns (${version.entry.commit.revision})
+ Tracer2 (34976)
+ apache-commons (34908)
+ apache-http (34908)
+ buildings_tools (34982)
+ changeset-viewer (22)
+ continuosDownload (82)
+ ejml (34908)
+ geojson (124)
+ geotools (34908)
+ jaxb (35014)
+ jna (34908)
+ jts (34908)
+ log4j (34908)
+ namemanager (34977)
+ opendata (34997)
+ osm-obj-info (51)
+ pbf (34908)
+ pdfimport (34977)
+ poly (34991)
+ print (34972)
+ reltoolbox (34977)
+ reverter (34999)
+ tag2link (34977)
+ terracer (34977)
+ undelete (34977)
+ utilsplugin2 (34977)
+ wikipedia (v1.1.1)

Tagging presets:
+ <josm.pref>/wno-presets3.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Admin_Boundaries&zip=1
- ${HOME}/admins.mapcss

Last errors/warnings:
- W: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<Die maximale Herunterladegröße ist 0.25 und Ihre Anfrage war zu groß. Fordern Sie entweder ein kleineres Gebiet an oder nutzen Sie die Datei planet.osm.>
- E: Fehlerhafte Anfrage - org.openstreetmap.josm.gui.widgets.HtmlPanel[,0,0,0x0,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@41973be,flags=9,maximumSize=,minimumSize=,preferredSize=]
- W: Unable to use English input method
- W: Unable to use English input method
- W: Unable to use English input method

Regards
walter

comment:5 by wambacher, 6 years ago

Disabled wikipedia plugin (1.1.1) - and the problem is gone.

walter

Last edited 6 years ago by wambacher (previous) (diff)

comment:6 by Klumbumbus, 6 years ago

Component: Core validatorPlugin wikipedia
Owner: changed from team to floscher

comment:7 by Don-vip, 6 years ago

Summary: Josm validator and wikipedia tagswikipedia tag false positive

comment:8 by Klumbumbus, 6 years ago

I don't get these warnings with the wikipedia plugin version 1.1.1

comment:9 by anonymous, 6 years ago

Ticket #17847 has been marked as a duplicate of this ticket.

comment:10 by wambacher, 6 years ago

@Kulumbus: Same problem has been sent by another user - therefore the problem exists.

try https://www.openstreetmap.org/#map=19/47.58994/7.58889 and you should see 27 errors.

Of course wikipedia plugin has to be enabled.

comment:11 by wvdp, 5 years ago

I think it is a problem with the cache of the wikiplugin.

I had the same problem and reinstalled the plugin. this did nothing.

But when I remove the josm cache folder the problem was gone.

So, I think there is a problem that causes the cache to be invalid.

comment:12 by skyper, 5 years ago

Ticket #18004 has been marked as a duplicate of this ticket.

comment:13 by skyper, 5 years ago

Cc: Jakka added
Keywords: validator false positive added

Interesting, both duplicates contain a decode problem:

- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

From #18004 Jakka:

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-07-10 00:52:47 +0200 (Wed, 10 Jul 2019)
Build-Date:2019-07-10 01:30:51
Revision:15238
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15238 nl) Windows 10 64-Bit
OS Build number: Windows 10 Home 1803 (17134)
Memory Usage: 725 MB / 725 MB (136 MB allocated, but free)
Java version: 1.8.0_221-b11, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1366x768, \Display1 1280x1024
Maximum Screen Size: 1366x1024
Dataset consistency test: No problems found

Plugins:
+ ImportImagePlugin (34908)
+ Mapillary (1.5.18)
+ OpenStreetCam (246)
+ OpeningHoursEditor (34977)
+ PicLayer (35030)
+ RoadSigns (UNKNOWN)
+ SimplifyArea (34977)
+ apache-commons (34908)
+ apache-http (34908)
+ areaselector (349)
+ austriaaddresshelper (57)
+ buildings_tools (34982)
+ ejml (35049)
+ geotools (34908)
+ graphview (34977)
+ jaxb (35014)
+ jna (34908)
+ jogl (1.2.3)
+ jts (35064)
+ log4j (34908)
+ measurement (35051)
+ opendata (34997)
+ pdfimport (34977)
+ photo_geotagging (34908)
+ photoadjust (34977)
+ pt_assistant (705)
+ reverter (34999)
+ scripting (30796)
+ tageditor (34977)
+ terracer (34977)
+ todo (30306)
+ turnlanes (34994)
+ turnlanes-tagging (281)
+ turnrestrictions (34977)
+ utilsplugin2 (34977)
+ wikipedia (v1.1.1)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&zip=1
+ http://osmtools.de/josm/steps.xml
+ https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/Historical_Objects&zip=1
+ http://zibi.openstreetmap.org.pl/kendzi/k/Simple3dPreset/s3db-preset.zip
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/BE.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/BENELUX&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_features&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/SlovakiaBicycleRoutes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedWalkingNodeNetworks&zip=1
- https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NewParkingFeatures&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1
- E:\OSM\java_jython\rcn.mapcss.txt
- E:\OSM\java_jython\Streets_Have_No_Name__mapcss_Jakkaversie.txt
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://www.dropbox.com/s/qo3ai47fpv241jf/Styles_Fixme_and_Notes.zip?raw=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
- E:\OSM\java_jython\josm_style_grb.mapcss

Last errors/warnings:
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

comment:14 by Jakka, 5 years ago

Have deleted in cache C:\Users\......\AppData\Local\JOSM\cache\plugin\wikipedia only the wikipedia folder...
restart josm 15238 no error anymore. validator do not controle it. fast popup .. could not read it all.
When shift F1 see in log - W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

comment:15 by skyper, 5 years ago

Ticket #18052 has been marked as a duplicate of this ticket.

comment:16 by skyper, 5 years ago

Cc: naoliv added

comment:17 by anonymous, 5 years ago

Just tracked back the cause and the problem comes from Wikipedia API. It returns HTML instead of JSON, more precisely the API main page which you can see here: https://www.wikidata.org/w/api.php

I don't know yet why does it, but maybe it helps others to investigate.

The Unexpected character ('<') is probably one of the HTML opening tags.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain floscher.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from floscher to the specified user.
Next status will be 'needinfo'. The owner will be changed from floscher to wambacher.
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 floscher 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.