-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Version Overview
Plone 5.2.14 (5222)
CMF 2.7.1
Zope 4.8.10
Python 2.7.18 (default, Apr 20 2020, 19:34:11) [GCC 8.3.0]
PIL 6.2.2 (Pillow)
WSGI: On
Server: waitress 1.4.4
OS: linux host, ubuntu 20.04
Browser: chrome
Issue Description:
During my testing of SENAITE with loaded demo data, I've encountered two consecutive errors while attempting to publish results. Initially, the system reported an error related to a missing signature attribute. After addressing this issue by adding a signature image to the lab manager's contact, I attempted to publish results again. This time, the system reported an error related to a missing Fullname attribute, despite all name details being correctly filled out under the lab manager's contact profile.
Steps to Reproduce:
Load demo data into SENAITE.
Attempt to publish results without a signature image added for the lab manager.
Add a signature image to the lab manager's contact profile.
Attempt to publish results again.
Initial Error:
Error Message: Ooops, an error occurred - Error: Signature
Relevant template/code snippet: ...manager/Signature...
Attempted Solutions:
I added a signature image for the lab manager's contact in the system as per the documentation.
Subsequent Error:
Error Message: Ooops, an error occurred - Error: Fullname
Relevant template/code snippet: ...manager/Fullname...
Further Steps Taken:
Verified that all name details are present under the lab manager's contact.
Switched the lab manager to another user, but encountered the same error.
Expected Behavior:
The system should successfully publish results without encountering errors related to missing signature or fullname attributes, especially when these attributes are present and correctly configured in the system.
Actual Behavior:
The system fails to publish results, citing missing signature and fullname attributes despite appropriate configuration.
full error message:
Ooops, an error occured
Error: Fullname
- Expression: "manager/Fullname"
- Filename: ... /senaite/impress/analysisrequest/templates/signatures.pt
- Location: (line 19: col 35)
- Source:
^^^^^^^^^^^^^^^^ - Expression: "python:view.render_signatures(context, **options)"
- Filename: ... ss/src/senaite/impress/templates/reports/MultiDefault.pt
- Location: (line 37: col 28)
- Source: ... ucture python:view.render_signatures(context, **options)" />
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Arguments: repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7f121f222a00>
managers: [<LabContact at /RSKLabs/bika_setup/bika_labcontacts/labcontact-9 used for /RSKLabs/setup/departments/department-4>]
template: <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7f12210a68d0>
views: <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7f121c142910>
request: <WSGIRequest, URL=http://164.68.126.229:55/RSKLabs/samples/ajax_publish/render_reports>
args: (<PloneSite at /RSKLabs>,)
here: <PloneSite at /RSKLabs>
manager: <LabContact at /RSKLabs/bika_setup/bika_labcontacts/labcontact-9 used for /RSKLabs/setup/departments/department-4>
user: <PropertiedUser 'admin'>
nothing: None
translate: <function translate at 0x7f120f3f97d0>
container: <PloneSite at /RSKLabs>
modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7f122e91ded0>
traverse_subpath: []
default:
loop: {u'manager': <Products.PageTemplates.engine.RepeatItem object at 0x7f120f2df990>}
context: <PloneSite at /RSKLabs>
view: <senaite.impress.analysisrequest.reportview.MultiReportView object at 0x7f121c648550>
collection: [SuperModel:UID(2d9bd518f12b433288e9e32d944092e5)]
target_language: None
root:
options: {'page_width': 210.0, 'name': 'DIN A4', 'format': 'A4', 'content_height': 257.0, 'margin_right': 20.0, 'content_width': 170.0, 'margin_top': 20.0, 'margin_left': 20.0, 'report_options': {}, 'margin_bottom': 20.0, 'page_height': 297.0, 'orientation': u'portrait'}
attrs: {}