Apex 20.2, a Custom Download Procedure gives: ORA-20987: APEX - Unauthorized URL
(Doc ID 2768193.1)
Last updated on FEBRUARY 10, 2023
Applies to:
Oracle Application Express (APEX) - Version 20.2 and laterInformation in this document applies to any platform.
Symptoms
On : APEX 20.2 version, Flow Builder
When attempting to download documents using custom code
the following error occurs.
ERROR
-----------------------
500 Internal Server error
and in logs
SEVERE <ID> GET localhost /ords/apex_util.count_click?p_u...<ID>&p_user=<ID>&p_workspace=<ID> 500 java.sql.SQLException: ORA-20987: APEX - Unauthorized URL: <OWNER>.GET_DOCUMENTS?p_file=<ID> - Contact your application administrator.
ORA-06512: at "APEX_200200.WWV_FLOW_ERROR", line 1040
ORA-06512: at "APEX_200200.WWV_FLOW_ERROR", line 1407
ORA-06512: at "APEX_200200.WWV_FLOW_SECURITY", line 2476
ORA-06512: at "APEX_200200.Z", line 35
ORA-06512: at "APEX_200200.HTMLDB_UTIL", line 617
ORA-06512: at line 2
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1.Upgrade from APEX 19 to 20.2
2. Test the application page that download documents and get the error when clicking the icons with type of document
Changes
Upgraded to APEX 20.2
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |