Edgewall Software

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#12987 closed defect (fixed)

trac-admin load/import should preserve read-only flag of wiki pages

Reported by: korn-edgewall.org@… Owned by: Jun Omae
Priority: normal Milestone: 1.0.17
Component: wiki system Version: 1.2
Severity: normal Keywords: trac-admin read-only
Cc: Branch:
Release Notes:

WikiAdmin.import_page preserves readonly of wiki pages.

API Changes:
Internal Changes:


trac-admin can import wiki pages from files, but in doing so, clears their read-only flag. This is inconvenient because I have some pages I auto-generate outside Trac and then load via trac-admin; I'd like to discourage people from editing them manually by setting the read-only flag.

Please change trac-admin wiki load (and trac-admin wiki import) so that if a loaded/imported page was read-only before, it stays read-only after the load/import.

Attachments (0)

Change History (4)

comment:1 by Jun Omae, 4 years ago

Component: admin/consolewiki system
Keywords: wiki removed
Milestone: 1.0.17
Owner: set to Jun Omae
Status: newassigned

wiki upgrade command also clears readonly of wiki page. I agree the readonly flag should be kept by wiki upgrade, wiki import and wiki load.

comment:2 by Jun Omae, 4 years ago

Release Notes: modified (diff)

Proposed changes in [f434611b3/jomae.git] (jomae.git@t12987).

comment:3 by Jun Omae, 4 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed in [16450] and merged in [16451-16452].

comment:4 by Ryan J Ollos, 3 years ago

Minor revision on trunk in r16607.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment

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