New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOS_UTIL_APEX.CREATE_SESSION fails for non numeric application HOME's #132

Open
philgrinham opened this Issue Oct 21, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@philgrinham
Copy link

philgrinham commented Oct 21, 2016

If an APEX application has defined its HOME URL using the page alias rather than the numeric literal, you get an ORA-06502.

if l_home_link is not null then
        l_url_arr := apex_util.string_to_table(l_home_link, ':');

        if l_url_arr.count >= 2 then
          l_page_id := l_url_arr(2);
        end if;
end if;

Perhaps testing if oos_util_validation.is_number(l_url_arr(2)) is true and if not then use the following to retrieve the page id?

SELECT P.PAGE_ID
INTO   V_PAGE_ID
FROM   APEX_APPLICATION_PAGES P
WHERE  P.PAGE_ALIAS = V_URL_ARR(2)
AND    P.APPLICATION_ID = P_APP_ID;

@martindsouza martindsouza added the bug label Oct 23, 2016

@martindsouza martindsouza added this to the 1.0.0 milestone Oct 23, 2016

@martindsouza martindsouza self-assigned this Oct 23, 2016

@martindsouza martindsouza modified the milestones: 1.1.0, 1.0.0 Jun 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment