This discussion is archived
2 Replies Latest reply: Feb 20, 2013 5:58 AM by svms RSS

URGENT - Page protection violation in APEX 4.1.1.00.23

sky123 Newbie
Currently Being Moderated
Hi,

After having upgraded APEX from 3.2.1 to 4.1.1.00.23, I encountered the following error many times:

"Page protection violation: This may be caused by manual alteration of protected page items. If you are unsure what caused this error, please contact the application administrator for assistance."

Does anyone know how to fix this error? Is there a patch for it?

Thanks.
  • 1. Re: Page protection violation in APEX 4.1.1.00.23
    sky123 Newbie
    Currently Being Moderated
    I also found the document [ID 1456465.1 Problem : Page Protection Violation Error After Upgrading to APEX 4.1.1] in Oracle Support (metalink). It asked people to change the tabs to a list component and said the problem is "Not Feasible to fix". To me, this totally doesn't make sense at all. I never saw this message before APEX 4.1.1 - I upgraded from 2.x to 3.0 to 3.2.1 to 4.0 to 4.1 and never saw this message.

    If many people have encountered this same issue, there should be a fix.

    Thanks.
  • 2. Re: URGENT - Page protection violation in APEX 4.1.1.00.23
    svms Newbie
    Currently Being Moderated
    Seems to be there are lots of possible reasons as described here in different topics:

    1. Old version of Super LOV plug-in. ( caused by function apex_plugin.get_input_name_for_page_item )
    2. p_page_checksum item is situated after the </FORM> tag (caused most likely by wrong templates).
    3. Items with either options 'Disable' or 'display only' and 'Save Session State' is set to 'yes'. Then alteration of its value via javascript will cause this error.
    4. Submitting page before it's completely loaded.
    5. If 'Value Protected' option of Hidden item is somehow set to NULL then it's considered as YES.
    SELECT *
    FROM apex_application_page_items t
    WHERE lower(display_as_code) LIKE '%hidden%'
      AND attribute_01 IS NULL
      and t.workspace != 'INTERNAL'
    6. Javascript which affects directly on p_page_checksum item.
    7. Moving protected or display only items which saves state outside the <FORM> tag.


    After updating to 4.1.1 I just found one more:

    1. Any public page with standard tabs with any region.
    2. Hidden item on page with either 'Value Protected' option setted to YES or NO
    3. Before header process:
     -- well, it actually works in 4.1.0
    htp.init;
    htp.p('Hello');
    4. it's either necessery to delete all cookies and replace url to f?p=APP_ID:PAGE_ID (without session)
    5. By either clicking on any tab or executing apex.submit('REQUEST') we get the same page protection violation error.

    In my case I solve it by placing htp.init; inside the condition which implement downloading of file.

    Regards,
    Igor

    Edited by: svms on 20.02.2013 18:47

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points