Bug 16725

Summary: Link sent in SHARE_INVITE message yields software error when a private list is shared.
Product: Koha Reporter: Barton Chittenden <barton>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Barton Chittenden 2016-06-13 17:16:21 UTC
To re-create:

Choose two koha accounts -- I'll call them SENDER and RECEIVER. 
Make sure that RECEIVER has your email address. 
Make sure that SHARE_INVITE letter is defined for email, and contains the string <<shareurl>>

1/ Log in to the opac as user SENDER
2/ Click on 'your lists' in left menu bar
3/ Create a private list
4/ Click 'edit'
5/ Make sure that permissions for 'anyone else to add entries.', 'anyone to remove their own contributed entries.', 'anyone to remove other contributed entries.' are all set to 'Allow' (I'm not sure that this is necessary, but it's in the steps that I got from the library)
6/ Click 'Save'
7/ Click 'Share'
8/ Add the email address for RECEIVER
9/ Click 'Send'

Check your email (if your test environment sends email ) or search message_queue for last entry with your email address.

Navigate to the link generated by <<shareurl>> You will get a software error.
Comment 1 Barton Chittenden 2016-06-13 17:20:42 UTC
Notes found during trouble-shooting:

borrowernumber is NULL in both message_queue and virtualshelfshares. I suspect that a borrowernumber must be present for private shares, but the link isn't being made  between the email provided and the borrower account, but that's just a hunch.