Ticket #444 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

SystemStackError raised when trying to enter asset permissions page from asset information editing page

Reported by: guest Assigned to:
Priority: highest Milestone: Next iteration
Version: 1.0.0 Keywords: stack level too high, SystemStackError, asset permissions
Cc: Initial working time estimate: 0.5
Working time: 0.5 Current working time estimate: 0.5

Description (Last modified by jarmo)

Steps to reproduce

  1. Login as admin/admin
  2. Click 'Edit'
  3. 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.

Change History

06/11/07 12:27:43 changed by jarmo

  • initial_time_estimate changed from 0.0 to 0.5.
  • priority changed from normal to highest.
  • milestone set to Next iteration.
  • description changed.
  • current_time_estimate changed from 0.0 to 0.5.

06/11/07 12:28:50 changed by jarmo

  • keywords set to stack level too high, SystemStackError, asset permissions.
  • summary changed from SystemStackError caused when trying to edit permissions from a page with error message displayed to SystemStackError raised when trying to enter asset permissions page from asset information editing page.

06/11/07 12:31:29 changed by jarmo

  • status changed from new to closed.
  • working_time changed from 0.0 to 0.5.
  • resolution set to fixed.

© 2004-2007 Norfello Oy All Rights Reserved