Project

General

Profile

Bug #17259

Delete function not working in the web application.

Added by Anna Mazzacane about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/24/2017
Due date:
% Done:

100%

Estimated time:
First Occurred:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

When composing a campaign, there are three options: "edit, copy and delete".
The delete function is not working and give the following error message:
An internal error occurred, data has been logged. Please report the occurrance to POMS administrators.
Traceback (most recent call last):
File "/home/poms/venvs/poms_v2_1_1/lib/python3.3/site-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/home/poms/venvs/poms_v2_1_1/lib/python3.3/site-packages/cherrypy/lib/encoding.py", line 221, in call
self.body = self.oldhandler(args, **kwargs)
File "/home/poms/venvs/poms_v2_1_1/lib/python3.3/site-packages/cherrypy/_cpdispatch.py", line 60, in call
return self.callable(*self.args, **self.kwargs)
File "./poms/webservice/logit.py", line 18, in wrapper
return function(*args,
*kwargs)
File "./poms/webservice/poms_service.py", line 357, in campaign_definition_edit
data = self.campaignsPOMS.campaign_definition_edit(cherrypy.request.db, cherrypy.session.get, *args, **kwargs)
File "./poms/webservice/CampaignsPOMS.py", line 133, in campaign_definition_edit
name = kwargs.pop('ae_definition_name')
KeyError: 'ae_definition_name'
Developers: the displayed stack trace can be stopped by setting dump = false in poms.ini. It will still appear in the log.

Associated revisions

Revision e89f4359 (diff)
Added by Marc Mengel about 3 years ago

fix for issue #17259

History

#1 Updated by Anna Mazzacane about 3 years ago

  • Assignee set to Stephen White

#2 Updated by Marc Mengel about 3 years ago

  • Status changed from New to Resolved
  • Assignee changed from Stephen White to Marc Mengel
  • % Done changed from 0 to 100

Turned out to be an easy fix; confusion about argument names between Fillipe's client code and the web page. ("ae_campaign_name" vs "name")

#3 Updated by Anna Mazzacane about 3 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF