Using APEX 4.2.4
I have a public websheet that is setup to use a custom page sentry function referencing OAM HTTP header variable for authentication. When the page renders for the first time for a user, the apex engine does not seem to start, and clicking anything referencing wwv_flow_file_mgr.get_ws_file results in a 404 error. If a user refreshes the page, clicks on a sub page or logs in the page sentry function fires and everything works fine.
I've asked the owner of the websheet to place all files and dymanic regions in sub pages but I am sure there is a workaround.
FYI - I can't turn off public access because I have 3.000 + users that would need to be managed.