-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable a "bad" feature make the whole tenant down #17549
Comments
It depends. What is the issue that causes the crash? |
Since you can write any code in a module, you can also write code that e.g. causes an unhandled exception on every page load. What do you think can be a solution? |
I run it locally with SQLite , and enable the feature , it worked very well without exception, got green notification on the top |
Check the logs |
Sorry, but this doesn't help to understand your suggestion for cases when a module contains seriously breaking. To reiterate:
|
Actually , I answered your question which meant that my code was no problem , at least locally. the stange thing is even clicking enable a feature get 500 for that feature , it should not influence the whole got 500 with any urls. orchardcore should isolate it. |
The fundamental problem, or circumstance, is, that when you extend OC with your module, you implement part of an ASP.NET Core app in C#. OC only provides you with the way to selectively enable/disable that part, but otherwise, you have all the power of C# and .NET available. Thus, you can ultimately break that app, since your code runs as part of the app, it's not an isolated environment like an Android app. But the specific case of getting an exception right there on the features screen after enabling a feature (and similarly for themes) is something we could guard against, and roll back the enable. This would at least prevent a module from breaking the app immediately in a way that you can't recover from the admin. |
Now i can verify that this is not the issue from my module. |
Describe the bug
when i enable a feature which produces error, then the whole tenant get 500 in spite of diff. URLs.
Interesting thing , my Default site always get 500, but other tenant site still work smoothly.
Orchard Core version
2.1.4
To Reproduce
Expected behavior
at least , I can login to the admin panel to disable the feature
Logs and screenshots
The text was updated successfully, but these errors were encountered: