Grzegorz Grzybek created FELIX-6777:
---------------------------------------

             Summary: Wrong type of jakarta.servlet.error.exception_type 
attribute
                 Key: FELIX-6777
                 URL: https://issues.apache.org/jira/browse/FELIX-6777
             Project: Felix
          Issue Type: Bug
          Components: HTTP Service
    Affects Versions: http.base-5.1.12
            Reporter: Grzegorz Grzybek


According to 
https://jakarta.ee/specifications/servlet/5.0/jakarta-servlet-spec-5.0#Request_Attributes_and_their_types,
 {{jakarta.servlet.error.exception_type}} attribute should be of type 
{{java.lang.Class}}, but Felix uses String.

See 
https://github.com/apache/felix-dev/blob/6858ded9250434153971e1122202f40c73a4bcf1/http/base/src/main/java/org/apache/felix/http/base/internal/dispatch/Dispatcher.java#L177

Based on this wrong assumption, official TCK test casts this attribute to 
String: 
https://github.com/osgi/osgi/blob/ee9444d0e0357ad5858c97ad776ad91ee7103b9f/org.osgi.test.cases.servlet/src/org/osgi/test/cases/servlet/junit/ServletTestCase.java#L891

I found this while TCK testing Pax Web 10.



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

Reply via email to