senaite / senaite.impress

HTML to PDF Rendering Engine for SENAITE
GNU General Public License v2.0
21 stars 25 forks source link

Errors Publishing Results: Signature and Fullname Attributes Not Found #148

Open conroyke56 opened 9 months ago

conroyke56 commented 9 months ago

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

xispa commented 9 months ago

Thanks for reporting @conroyke56. This is a bug that we introduced yesterday with https://github.com/senaite/senaite.core/pull/2471 . I've opened a Pull Request that addresses this issue: https://github.com/senaite/senaite.app.supermodel/pull/19

conroyke56 commented 9 months ago

Thanks for reporting @conroyke56. This is a bug that we introduced yesterday with https://github.com/senaite/senaite.core/pull/2471 . I've opened a Pull Request that addresses this issue: https://github.com/senaite/senaite.app.supermodel/pull/19

Amazing. Thankyou.

Perfect timing! Had to be yesterday I started playing around with senaite haha.