Steps to reproduce
- Login as admin/admin
- Click 'Edit'
- Click 'Permissions'
SystemStackError? is raised (stack level too deep). This is caused by the AssetPermissionController? which enters it's own page group in a before_filter even if the user is currently inside some other page group (and the request would result in redirect to the protector of that page group).
Solution
AssetPermissionController? should only enter it's own page group when the user is not inside some other group.
Original bug report
Bug submitted by guest: Tyler Hepworth - raklet at gmail dot com
SystemStackError? in AssetController#edit_protector? followed by lots of information. I don't know how much of the screen output you want included, so I won't put any. You should be able to reproduce the error. If not, email me and I will send you what you ask for.
Steps to reproduce:
* Select an asset (any asset)
* Select edit
* Place an illegal character (a dash, slash, asterisk, or whatever) in the "Code" field and click on save changes.
* You will receive a message that says "1 error prohibited this model from being saved"
* With the error message still displayed, click on permissions
This will cause the SystemStackError?. Note, this only works when selecting an asset and then editing it. If you create a new asset and place an illegal character in the Code field during creation, you will get the exact same "prohibited" message when you try to save the new asset; however, clicking on permissions will not throw the exception error. It will take you to the permissions page for the parent asset of the sub that you are trying to create.