https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44088 Bug ID: 44088 Summary: Notices management: hide and disable printing of SHARE_INVITE content Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org CC: martin.renvoize@openfifth.co.uk Depends on: 33260 Target Milestone: --- Follow-up to bug 33260, reported by Pedro Amorim. SHARE_INVITE contains a secret too: its link carries the invitation key for a private list, and anyone with that link can accept the share and read the list. Unlike PASSWORD_RESET, STAFF_PASSWORD_RESET, OPAC_REG_VERIFY and 2FA_OTP_TOKEN, its content is shown and printable in Notices management. The SHARE_INVITE content should be hidden and not printable, like the other secret-bearing notices. Test plan: 1) Set 'NoticesManagement' to 'Enable' and 'OpacAllowSharingPrivateLists' to 'Allow' 2) Log in to the OPAC as koha/koha (http://localhost:8080) 3) Click 'Lists' > 'Your lists' > 'New list', name 'My list', keep 'Private', click 'Save' (http://localhost:8080/cgi-bin/koha/opac-shelves.pl?op=add_form) 4) Click 'Lists' > 'Your lists', click the 'Share' link next to 'My list', enter 'friend@example.com' and click 'Send' (http://localhost:8080/cgi-bin/koha/opac-shelves.pl?op=list) 5) In a KTD shell, run: perl misc/cronjobs/process_message_queue.pl KTD has no mail server, so it prints an SMTP error and the invitation is now 'failed' 6) In the staff interface, go to 'More' > 'Tools' > 'Notices management' (http://localhost:8081/cgi-bin/koha/tools/notices.pl) 7) Click the subject 'Share list My list' 8) Confirm the preview shows the invitation link with its key, and the notice has a 'Print' button Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 [Bug 33260] Show message queue on staff interface and make notices printable -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.