Adding and deleting a virtual host monster to a folder which already contains one breaks virtual hosting

Bug #142750 reported by Chris McDonough
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Low
Unassigned

Bug Description

From Kai Vermeer:

Just added a virtual_host_monster and didn't notice I already had one
installed ... so after noticing it I deleted the one I added latest.

Now I can't access the site or the Zope manage area anymore ... all pages
display this error messages::

    Site Error

    An error was encountered while publishing this resource.

    Resource not found
    Sorry, the requested resource does not exist.

    Check the URL and try again.

    Resource: VirtualHostBase GET

(This is a UI bug. We probably shouldn't let users name vhms)

Tags: bug zope
Revision history for this message
Josef Meile (jmeile) wrote :

> We probably shouldn't let users name vhms)
Why not, I think this is good if a zope's
admin has to leave his job. For the successor,
who not necessary has to know zope, would be
easier if a descriptive name is given.

Revision history for this message
Tres Seaver (tseaver) wrote :

Naming the VHM just leads to problematic scenarios: the default name is more googleable than anything else. If preventing name assignment / rename also removed the possiblitiy of a bug, so much the better.

Changed in zope2:
status: New → Triaged
importance: Medium → Low
Changed in zope2:
assignee: nobody → Jens Vagelpohl (jens-dataflake)
Revision history for this message
Jens Vagelpohl (dataflake-deactivatedaccount-deactivatedaccount) wrote :

The code is now changed to use a class-level default Id. The user can no nonger select it. If an object with the same Id exists in the container, or if there is another VHM instance (an older instance with a different Id, for example), an exception is raised.

Zope 2.12 branch: http://svn.zope.org/?view=rev&rev=112531

Zope trunk: http://svn.zope.org/?view=rev&rev=112531

Changed in zope2:
status: Triaged → Fix Committed
Changed in zope2:
milestone: none → 2.12.7
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.