Guest user receives an error after pressing redirect button in VFP
14:55:47.2 (40002254)|CODE_UNIT_FINISHED|VF: /apex/dossierattachmentsform
14:55:47.2 (40024393)|EXECUTION_FINISHED
14:55:47.43 (43470627)|CUMULATIVE_PROFILING_BEGIN
14:55:47.43 (43470627)|CUMULATIVE_PROFILING|No profiling information for SOQL operations
14:55:47.43 (43470627)|CUMULATIVE_PROFILING|No profiling information for SOSL operations
14:55:47.43 (43470627)|CUMULATIVE_PROFILING|No profiling information for DML operations
14:55:47.43 (43470627)|CUMULATIVE_PROFILING|method invocations|
External entry point: public void <init>(ApexPages.StandardController): executed 1 time in 30 ms
Class.DossierAttachmentsExtension.<init>: line 16, column 1: global SObject getRecord(): executed 0 times in 0 ms
In this method
public with sharing class DossierAttachmentsExtension {
public Dossier__c dossier {
get {
if (dossier == null) {
dossier = new Dossier__c ();
}
return dossier;
} set;
}
public List<Winput> inputs{get;set;}
public DossierAttachmentsExtension(ApexPages.StandardController controller) {
dossier = (Dossier__c)controller.getRecord();
dossier = [Select Id, Name from Dossier__c where Id = :dossier.Id];
inputs = new List<Winput>();
}
From the user side we have this error for the second step where we try attaching documents
Thank you. Realy didn't find the answer.
visual force pages and apex classes can be accessed by the site user
dossier
twice? thegetRecord()
should be sufficient.