I have a `<lightning:recordViewForm` on a public community page.

When I hardcode the `recordId` attribute it works, but when I pass an attribute in it fails without any error messages in either the console or the debug log.

**Component**

    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />
    <aura:attribute name="recordId" type="Id"></aura:attribute>
                  
    <lightning:recordViewForm recordId="{! v.recordId }" objectApiName="MyCustomObject__c">
    
        <lightning:outputField fieldName="Name" />
    
    </lightning:recordViewForm>

**JavaScript Controller**

    doInit : function(cmp, event, helper) {
           
        var recordId = helper.getQueryStringParameter('recordId');
          
        cmp.set("v.recordId", recordId);
    }

The guest user permissions are fine, because it works when I hardcode the `recordId` attribute of the `<lightning:recordViewForm`