Steps to reproduce:
- Add the Document and Media portlet to a page in the default guest site (normally Liferay.com)
- Add a new Metadata Set with any field.
- Add a new Document Type. Do not add any field in the document type, but only select the above create Metadata Set in Additional Metadata fields
- Add a new Document based in the Document Type created in the previous step. Fill in the metadata info.
- Make sure that both the Document Type and the Document have view permissions for the Guest role, but not the Metadata Set (that's the default behavior)
- Sign out. Click in the document to view its detail
The metadata info is displayed.
The metadata info is not displayed and the console shows an error log.
This issue affects to other use cases as the one described in