I have a Visualforce page that is used to generate a PDF document by our users. Recently we started experimenting with the Community License, and I'm facing an unusual error with this user.
The profile allows the user to access the Visualforce page, and when he does using the browser (navigating to
community/apex/page?id=<record id> it works just fine, and the document is shown).
I do have a button on the record's detail page that is used to call a webservice that is using the
getContentAsPDF() method. When the user tries to use this button to get the PDF saved as an attachment, the button fails with the "Map key null not found in map" error.
I've observed that I can get the PDF saved if I comment certain parts of the page, but this means commenting 80%+ of the page's content. Also, while the PDF file is saved, the content that is shown is all empty (like if the record isn't retrieved or the user doesn't have access to read it, which doesn't make sense since the user can access the page directly).
I think this should be treated as a bug. But I want to make sure if others have had the same issue.