"customQuery": "with b as\n(\nselect\n application_id\n ,page_id\n ,button_name\n ,region_id\n ,redirect_url\n ,REGEXP_SUBSTR(redirect_url, '[^:]+', 1, 2) as target_page_id\n ,(select authorization_scheme\n from apex_application_pages \n where to_char(page_id) = REGEXP_SUBSTR(redirect_url, '[^:]+', 1, 2) \n and REGEXP_LIKE(REGEXP_SUBSTR(redirect_url, '[^:]+', 1, 2), '^[[:digit:]]+$') \n and application_id = #APP_ID#\n ) target_authorization_scheme\n ,(select authorization_scheme_id\n from apex_application_pages \n where to_char(page_id) = REGEXP_SUBSTR(redirect_url, '[^:]+', 1, 2) \n and REGEXP_LIKE(REGEXP_SUBSTR(redirect_url, '[^:]+', 1, 2), '^[[:digit:]]+$') \n and application_id = #APP_ID#\n ) target_authorization_scheme_id\n ,authorization_scheme\n ,authorization_scheme_id\nfrom\n apex_application_page_buttons\nwhere\n redirect_url is not null\n and application_id = #APP_ID#\n)\nselect\n #EVAL_ID# as eval_id\n ,#RULE_ID# as rule_id \n ,b.application_id as application_id\n ,b.page_id page_id \n ,b.region_id as component_id \n ,b.button_name as component_name\n ,null as column_name \n ,null as item_name\n ,null as shared_comp_name\n ,'Button: ' || nvl(authorization_scheme, 'None') || ' / Page: ' || nvl(target_authorization_scheme, 'None') as current_value\n ,'AuthZ Schemes Match' as valid_values\n ,case when NOT regexp_like(target_page_id, '^[[:digit:]]+$') then '{ \"reasons\":[ {\"reason\":\"target page is not a literal\"} ] ,\"result\":\"FAIL\" }'\n when nvl(target_authorization_scheme_id,0) = nvl(authorization_scheme_id,0) then '{ \"reasons\":[ ] ,\"result\":\"PASS\" }' else '{ \"reasons\":[ ] ,\"result\":\"FAIL\" }' \n end as result\nfrom b\nwhere 1=1\n and application_id = #APP_ID#",
0 commit comments