[MAGNOLIA-3285] URI Mapping cause the whole system to fail Created: 31/Aug/10 Updated: 13/Dec/11 Resolved: 10/Sep/10 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 4.3.6 |
| Fix Version/s: | 4.3.7, 4.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Mingfai | Assignee: | Ondrej Chytil |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | urimapping | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
At the VirtualURIMapping node, I incorrectly addedd a New Node Data instead of New Content Node. Then I immediately try to remove the Data node but then the whole server is screwed up and any URL results as error 500. The error is as follows: Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to info.magnolia.cms.beans.config.VirtualURIMapping i tried to repeat the same process in a fresh downloaded Magnolia instance and I could easily repeat it. And OMG there is no way for me to fix as I can't access the admin central anymore. It is obviously a critical bug to me because a user mistake could f up the whole system unnecessarily. I don't blame the lack of validation in the UI as you guys are working hard to improve the admin ui, but it also show a lack of exception handling. When processing multiple URI mapping rules, if one of the rules fail, it shouldn't cause the whole system to fail. (if it is a security/access control rule, i would accept a single exception in processing the rules to cause a deny access) p.s. I tried to post to the user-list to look for a way to fix the problem but the mail-list system seems to be broken and there is no reply after i have replied the verification email. Is there ant wat to fix the problem, i.e. is there any way to remove the last "untitled" uri mapping entry without accessing Magnolia (coz all url including JCR browser can't be accessed.) |
| Comments |
| Comment by Zdenek Skodik [ 31/Aug/10 ] |
|
Hi Mingfai, to fix your issue, have a look at How to repair broken configuration wiki page, follow the instructions there and with use of restoreMappings.jsp you can remove the untitled property from that path. Best regards. |
| Comment by Mingfai [ 31/Aug/10 ] |
|
ok. i patched the VirtualURIManager so I can access the site now. And I went to the node and have deleted the entry that caused the problem. |
| Comment by Federico Grilli [ 31/Aug/10 ] |
|
An alternative way to repair it would be using the Groovy Rescue servlet http://wiki.magnolia-cms.com/display/WIKI/Groovy+Rescue+Servlet from our Groovy module http://svn.magnolia-cms.com/view/community/modules/magnolia-module-groovy/. |
| Comment by Jan Haderka [ 31/Aug/10 ] |
|
Thanks for the patch. |
| Comment by Mingfai [ 31/Aug/10 ] |
|
thanks for the troubleshooting info. The interactive Groovy console is one of the best thing in Magnolia (I have been using Groovy since 2008 I tried to post a comment to the Groovy+Rescue+Servlet page but I can't login with my JIRA user account. so far, i found two of your supporting systems are malfunction. (the mail list subscription and confluence login) |
| Comment by Mingfai [ 31/Aug/10 ] |
|
this jira doesn't have any section to report issue about your supporting services so I am not going to abuse it. In the http://wiki.magnolia-cms.com/administrators.action page, the admin's email addresses are hidden so i can't contact them to report the issue. Jan, would you mind to pass my message to any system admin that: thank you very much. |
| Comment by Ondrej Chytil [ 10/Sep/10 ] |
|
Thanks for patch. |