Modify

Opened 10 months ago

Closed 5 weeks ago

#11351 closed defect (worksforme)

Can not add options to [intertrac]

Reported by: anonymous Owned by: stoecker
Priority: normal Component: TracIniAdminPanelPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

Tried to add the following : -

Add Section name - intertrac - works
Add option "p" - works
Add value to "p" "sometrac" - works
Add option "sometrac.title" - fails with error message: -

Warning:

The option name "sometrac.title" is invalid.
No new fields have been added.

Format for intertrac section can be found here: -

http://trac.edgewall.org/wiki/InterTrac

[intertrac]
# -- Example of setting up an alias:
t = trac

# -- Link to an external Trac:
trac.title = Edgewall's Trac for Trac
trac.url = http://trac.edgewall.org

Attachments (0)

Change History (3)

comment:1 Changed 7 months ago by stoecker

  • Resolution set to worksforme
  • Status changed from new to closed

Works for me. Please verify, that inieditor/valid-option-name-chars contains ".". The default does.

comment:2 Changed 5 weeks ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

The default value did not contain a "." character, so in the ini-editor section I have added a "." just after the "^" character and saved

valid-option-name-chars = ^.[a-zA-Z0-9\-_\:]+$
valid-section-name-chars = ^.[a-zA-Z0-9\-_]+$

I added an option nj (worked OK)

nj

I added a value in intertrac (worked OK)

nj = newtrac

I then tried adding an option

newtrac.title

and still received the same warning.

Warning:

  • The option name "newtrac.title" is invalid.
  • No new fields have been added.

comment:3 Changed 5 weeks ago by stoecker

  • Resolution set to worksforme
  • Status changed from reopened to closed

^.[a-zA-Z0-9\-_]+$

This means: start with any character, than at least one of a-z, A-Z, 0-9, -, _, : follows.

The defaults are:

section: ^[a-zA-Z0-9\-_\:]+$
option: ^[a-zA-Z0-9\-_\:.]+$

You can test RegExp here: http://regex101.com/#python

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from stoecker. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.