Critical changes
This topic highlights changes that are made that might impact compatibility with an earlier version in IBM® Application Gateway version 26.06.0.
v26.06
- Lua HTTP Transformation table indexing
The following Lua HTTP transformation functions now return tables using 1-based indexing (in accordance with Lua conventions) instead of 0-based indexing. This change ensures compatibility with Lua’s
ipairsiterator and standard table operations:Session.getCredentialAttributeNames()Session.getMvCredentialAttribute(string name)Session.getSessionAttributeNames()HTTPRequest.getHeaderNames()HTTPRequest.getCookieNames()HTTPResponse.getHeaderNames()HTTPResponse.getCookieNames()
Note:- If your Lua HTTP transformation scripts access these tables using numeric indices starting at
0, you must update them to use 1-based indexing. For example, replacetable[0]withtable[1], andtable[1]withtable[2]. - Scripts that use the
ipairsorpairsiterators do not require modification. These iterators will correctly process all elements, including the first element, which may have been skipped previously.