NSAPI module fails to detect port and scheme on Sun WS 7.x
Basics
Technical
Logistics
Basics
Technical
Logistics
Description
As of 7.x, the NSAPI macros for deriving SSL status and the request port no longer work. When two listeners are bound to one instance, the security and port macros return "true" and 80, rather than basing the result on the request.
There appears to be no API solution, making NSAPI now defunct, but to keep the SP working a work-around can be used based on the obj.conf support for "variables" that can be read based on the request. Parameters to the NSAPI functions in the module can be set based on the $security and $env{'SERVER_PORT'} variables and passed in from outside.
As of 7.x, the NSAPI macros for deriving SSL status and the request port no longer work. When two listeners are bound to one instance, the security and port macros return "true" and 80, rather than basing the result on the request.
There appears to be no API solution, making NSAPI now defunct, but to keep the SP working a work-around can be used based on the obj.conf support for "variables" that can be read based on the request. Parameters to the NSAPI functions in the module can be set based on the $security and $env{'SERVER_PORT'} variables and passed in from outside.