Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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 skyper)

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 skyper, 3 years ago

Description: modified (diff)

comment:2 by stoecker, 3 years ago

Resolution: worksforme
Status: newclosed

That's caused by the fact that you used

{{ {#!preset

instead of

{{ {
#!preset

If you fix that you get the correct XML errors and if these are fixed the error also goes away.

comment:3 by skyper, 3 years ago

That was not the case. Something different was the issue. I got the same message for both cases.

in reply to:  3 comment:4 by stoecker, 3 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 skyper, 3 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 Lukas458, 3 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?

Last edited 3 years ago by Lukas458 (previous) (diff)

comment:7 by Lukas458, 3 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain stoecker.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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