#20404 closed defect (worksforme)
Impossible to add new external preset.
| Reported by: | skyper | Owned by: | stoecker |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Trac | Version: | |
| Keywords: | revision date external | Cc: |
Description (last modified by )
Trying to add a new external preset under Presets/MyNewPreset is impossible. I always get:
Warning: Invalid Wiki page: This wiki requires usage of [[revision]]_[[date]] macros instead of hardcoded values in the version variable. See wiki page /wiki/Presets for more details.
even with only version="[[revision]]_[[date]]"
wiki:/fortest could be an accident resulting from this bug.
Attachments (0)
Change History (7)
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 5 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
follow-up: 4 comment:3 by , 5 years ago
That was not the case. Something different was the issue. I got the same message for both cases.
comment:4 by , 5 years ago
Replying to skyper:
That was not the case. Something different was the issue. I got the same message for both cases.
I checked the submissions and used your original data as you submitted it for tests.
comment:5 by , 5 years ago
Ok, I see the problem now, a missing }}} end of the code block, does not trigger a warning at all:
<?xml version="1.0" encoding="UTF-8"?> <presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0" link="https://josm.openstreetmap.de/wiki/Presets/LaneAttributes" shortdescription="Lane attributes" de.shortdescription="Fahrspurattribute" description="A preset for tagging (turn-) lane attributes" de.description="Eine Objektvorlage für (Abbiege-) Fahrspur Attribute" author="skyper" version="0.[[revision]]_[[date]]">
comment:6 by , 5 years ago
I have this problem too, but not with adding an external preset, but editing an existing one. I can only save it when I leave the }}} at the end of the code away. When the {{{ at the end of the code block is missing, the preset seems to be not available anymore in the list at https://josm.openstreetmap.de/wiki/Presets, do I see this right? So does anyone know how to solve this?
comment:7 by , 5 years ago
Oh, sorry for that comment, actually I do not know what I made wrong a few hours ago, but now it seems to work fine when editing an already existing preset and saving it.



That's caused by the fact that you used
{{ {#!presetinstead of
{{ { #!presetIf you fix that you get the correct XML errors and if these are fixed the error also goes away.