Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bricolage #269] Cannot view or edit Assets after deleting Contributor

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


no-reply at lighthouseapp

Jun 15, 2011, 7:19 AM

Post #1 of 1 (445 views)
Permalink
[Bricolage #269] Cannot view or edit Assets after deleting Contributor

// Add your reply above here
==================================================
Nick Legg updated this ticket at June 15th, 2011 @ 02:19 PM

Upon deleting a Contributor from the system without removing the Contributor from any Assets, any Asset still using the deleted Contributor cannot be viewed or edited.

Attempting to view such an Asset yields the following error:
Can't call method "get_name" on an undefined value at /usr/local/bricolage/comp/widgets/story_prof/view_meta.html line 158, <GEN15> line 438.\n, referer: https://freestyle.denison.edu/workflow/manager/story/1246
[/usr/local/share/perl5/HTML/Mason/Exceptions.pm:129]
[/usr/local/bricolage/comp/widgets/story_prof/view_meta.html:158]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/bricolage/comp/widgets/story_prof/story_prof.mc:166]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1355]
[/usr/local/bricolage/comp/workflow/profile/story/dhandler:32]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/share/perl5/HTML/Mason/Request.pm:955]
[/usr/local/bricolage/comp/autohandler:7]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1297]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/share/perl5/HTML/Mason/Request.pm:481]
[/usr/local/share/perl5/HTML/Mason/Request.pm:481]
[/usr/local/share/perl5/HTML/Mason/Request.pm:433]
[/usr/local/share/perl5/HTML/Mason/ApacheHandler.pm:168]
[/usr/local/share/perl5/HTML/Mason/ApacheHandler.pm:825]
[/usr/local/bricolage/lib/Bric/App/Handler.pm:308]
[/usr/local/bricolage/lib/Bric/App/Handler.pm:297]
[-e:0]
[-e:0]

Attempting to edit such an Asset yields the following error:
Can't call method "get_id" on an undefined value at /usr/local/bricolage/comp/widgets/listManager/listManager.mc line 614.\n, referer: https://freestyle.denison.edu/workflow/profile/workspace/
[/usr/local/share/perl5/HTML/Mason/Exceptions.pm:129]
[/usr/local/bricolage/comp/widgets/listManager/listManager.mc:614]
[/usr/local/bricolage/comp/widgets/listManager/listManager.mc:448]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/bricolage/comp/widgets/profile/contributors/_list.html:1]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/bricolage/comp/widgets/story_prof/edit_meta.html:185]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/bricolage/comp/widgets/story_prof/story_prof.mc:166]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1355]
[/usr/local/bricolage/comp/workflow/profile/story/dhandler:32]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1302]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/share/perl5/HTML/Mason/Request.pm:955]
[/usr/local/bricolage/comp/autohandler:7]
[/usr/local/share/perl5/HTML/Mason/Component.pm:135]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1297]
[/usr/local/share/perl5/HTML/Mason/Request.pm:1292]
[/usr/local/share/perl5/HTML/Mason/Request.pm:481]
[/usr/local/share/perl5/HTML/Mason/Request.pm:481]
[/usr/local/share/perl5/HTML/Mason/Request.pm:433]
[/usr/local/share/perl5/HTML/Mason/ApacheHandler.pm:168]
[/usr/local/share/perl5/HTML/Mason/ApacheHandler.pm:825]
[/usr/local/bricolage/lib/Bric/App/Handler.pm:308]
[/usr/local/bricolage/lib/Bric/App/Handler.pm:297]
[-e:0]
[-e:0]

I used the API to write a script to run $story->delete_contributors($story->get_contributors()) but this fails to actually remove any Contributor(s) from my story. The only way I came up with to restore access to affected stories was to reactivate the offending Contributor and Contributor Type, remove the Contributor from the story, and then finally deactivate the Contributor and Contributor Type.
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/269-cannot-view-or-edit-assets-after-deleting-contributor

Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/269-cannot-view-or-edit-assets-after-deleting-contributor/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support [at] lighthouseapp or http://help.lighthouseapp.com

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.