#12987 closed defect (fixed)
trac-admin load/import should preserve read-only flag of wiki pages
| Reported by: | 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: |
|
||
| API Changes: | |||
| Internal Changes: | |||
Description
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 , 8 years ago
| Component: | admin/console → wiki system |
|---|---|
| Keywords: | wiki removed |
| Milestone: | → 1.0.17 |
| Owner: | set to |
| Status: | new → assigned |
comment:2 by , 8 years ago
| Release Notes: | modified (diff) |
|---|
Proposed changes in [f434611b3/jomae.git] (jomae.git@t12987).
comment:3 by , 8 years ago
| Release Notes: | modified (diff) |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Fixed in [16450] and merged in [16451-16452].



wiki upgradecommand also clears readonly of wiki page. I agree the readonly flag should be kept bywiki upgrade,wiki importandwiki load.