Because of the potential security issues raised by allowing arbitrary custom HTML and CSS in the default neighborhood Home app, we need to switch to using the Wiki.
Change neighborhood creation to not install the Home app, and create a script to manually install it from the command line for a particular neighborhood.
Created ticket #54: [#4208] Change default neighborhood "Home" app to Wiki (2cp)
Related
Tickets:
#4208Originally by: tramadolmen
Home application deeply integrated in neighborhood. In other words it is --init-- project when neighborhood is created. I can add field to neighborhood that can hide\show "Home" page and redirect all requests to wiki page if "Home" was hide. Ok?
Originally by: tramadolmen
I have added this field. Maybe you will receive soon updates with this ticket
closed #54 and pushed changes into 42cc_4208, it also contains a few necessary commits from #56 42cc_4197, so please check this after [#4197]
Related
Tickets:
#4197Actually I would like to go through and do everything needed to make a neighborhood not have the Home app at all, for new neighborhoods. I don't know all the places that the Home app is mentioned, but here are some thoughts:
Allura/allura/model/project.py
whereif self == self.neighborhood.neighborhood_project
references the Home tool, that can be removed. Instead, change the Home tool to show up in the top nav naturally (it is some setting in ProjectHomeApp.Created #65: [#4208] Completely remove Home tool from a neighborhood (3cp)
Related
Tickets:
#4208On the admin overview form there are 2 other options that might be affected (or not):
closed #65, changes in 42cc_4208
Nice progress on this, it's headed in the right direction now. Here's some feedback for further changes:
return self.neighborhood_project.app_config('home') is not None
Allura/allura/controllers/project.py
there are these lines:if not self.neighborhood.have_home_project: redirect(c.project.script_name + 'wiki/')
I think it'd be better if this index() method just redirected to be first tool, not have a hardcoded reference to wiki. This is how the project's index controller works, so you can re-use thefirst_mount
helper. (The other stuff in the ProjectController index is not necessary)created #87: [#4208] Refactoring and small changes (1cp)
Related
Tickets:
#4208closed #87 and pushed changes into 42cc_4208