Markus Jung created TOMEE-4654:
----------------------------------

             Summary: java:comp naming context accepts writes the Enterprise 
Beans spec requires it to refuse
                 Key: TOMEE-4654
                 URL: https://issues.apache.org/jira/browse/TOMEE-4654
             Project: TomEE
          Issue Type: Bug
            Reporter: Markus Jung


h2. Summary
The java:comp naming context in TomEE accepts bind, rebind, and rename calls it 
must reject.

h2. Description
The Enterprise Beans spec requires the java:comp context to be read-only inside 
a bean, and to throw {{OperationNotSupportedException}} on any write attempt 
against it. TomEE's naming context skips that check and lets bind, rebind, and 
rename calls through instead of refusing them.

h2. Steps to reproduce / TCK reference
Excluded in {{runner-webprofile/exclusions/enterprise-beans-30.txt}} in the 
apache/tomee-tck harness repo:
* {{**/naming/context/*Test.java}}

Once fixed, remove the matching lines and confirm the tests pass — each write 
attempt against java:comp must throw {{OperationNotSupportedException}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to