OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Error in Orchard.Multitenancy #5082

Open orchardbot opened 9 years ago

orchardbot commented 9 years ago

emeraldarcher created: https://orchard.codeplex.com/workitem/21253

Orchard's multitenancy environment runs into problems when a tenant is created that starts with a decimal digit instead of an alphabetical character. I have seen results between hosing the entire Orchard site (beyond seeming recovery) to the attached error message when trying to view the tenant site. I believe some kind of validation should be put in place to prevent this from happening. This occurred in Orchard 1.8.1 I have not tested this in any other version of Orchard.

orchardbot commented 9 years ago

emeraldarcher commented:

Update: I've tried recovering from the error by deleting the tenant site that had the number in its name (not the site name on the tenant, but the name the parent site has for the tenant) but that is not enough to solve the problem.

orchardbot commented 9 years ago

@sebastienros commented:

The tenants list needs to encode the name in the element.