Skip to content

Conversation

@jclausen
Copy link
Contributor

No description provided.

@jclausen jclausen requested a review from Copilot July 24, 2025 15:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This is a version bump to v3.5.1 with infrastructure updates and security improvements. The changes primarily focus on modernizing CI/CD configurations, adding Adobe 2025 support, and implementing real IP detection for better proxy/load balancer handling.

  • Updated CI/CD matrix to support newer CFML engines including Adobe 2025
  • Added getRealIP utility function for improved client IP detection through proxies
  • Fixed date formatting issues for better cross-platform compatibility

Reviewed Changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
[email protected] Fixed Lucee engine version specification
[email protected] Added new server configuration for Adobe 2025 support
models/util/Util.cfc Added getRealIP function for proxy-aware IP detection
models/logging/LogstashAppender.cfc Updated to use new getRealIP utility
models/logging/AppenderService.cfc Updated IP detection and fixed array mapping syntax
models/cache/Provider.cfc Standardized date format to ISO 8601
changelog.md Updated changelog formatting
ModuleConfig.cfc Added trustUpstream configuration option
.github/workflows/tests.yml Updated CI matrix with newer engines and Java versions

* @trustUpstream If true, we check the forwarded headers first, else we don't
*/
string function getRealIP( boolean trustUpstream = configStruct.trustUpstream ){
// When going through a proxy, the IP can be a delimtied list, thus we take the last one in the list
Copy link

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a spelling error: 'delimtied' should be 'delimited'.

Suggested change
// When going through a proxy, the IP can be a delimtied list, thus we take the last one in the list
// When going through a proxy, the IP can be a delimited list, thus we take the last one in the list

Copilot uses AI. Check for mistakes.
*/
string function getRealIP( boolean trustUpstream = configStruct.trustUpstream ){
// When going through a proxy, the IP can be a delimtied list, thus we take the last one in the list
if ( arguments.trustUpstream ) {
Copy link

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment on line 213 mentions taking the 'last one' from a delimited list, but the code uses listFirst() for X-Forwarded-For header on line 220. This inconsistency could lead to incorrect IP extraction - X-Forwarded-For typically contains the original client IP as the first entry.

Copilot uses AI. Check for mistakes.
ModuleConfig.cfc Outdated
Comment on lines 72 to 73
// used by util:getRealIp, trustUpstream If true, we check the forwarded headers first, else we don't
trustUpstream : false
Copy link

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The comment should be formatted as a proper docstring comment. The current inline comment format is inconsistent with other configuration properties and doesn't follow standard documentation patterns.

Suggested change
// used by util:getRealIp, trustUpstream If true, we check the forwarded headers first, else we don't
trustUpstream : false
// Whether to trust upstream headers when determining the real IP address.
// If true, forwarded headers are checked first; otherwise, they are ignored.
trustUpstream : false

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Aug 7, 2025

lucee@5 Test Results

  1 files   17 suites   51s ⏱️
241 tests 240 ✅ 0 💤 0 ❌ 1 🔥
240 runs  241 ✅ 0 💤 0 ❌ -1 🔥

For more details on these errors, see this check.

Results for commit 0af88f8.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

boxlang@be Test Results

255 tests   255 ✅  1m 3s ⏱️
 17 suites    0 💤
  1 files      0 ❌

Results for commit e5c25a9.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

adobe@2025 Test Results

255 tests   255 ✅  1m 4s ⏱️
 17 suites    0 💤
  1 files      0 ❌

Results for commit edd0805.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

adobe@2025 Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 0af88f8.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

adobe@2023 Test Results

255 tests   255 ✅  1m 3s ⏱️
 17 suites    0 💤
  1 files      0 ❌

Results for commit bf8e947.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

boxlang@1 Test Results

255 tests   255 ✅  1m 0s ⏱️
 17 suites    0 💤
  1 files      0 ❌

Results for commit edd0805.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

boxlang@1 Test Results

255 tests   255 ✅  1m 2s ⏱️
 17 suites    0 💤
  1 files      0 ❌

Results for commit bf8e947.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

adobe@2021 Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 0af88f8.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

lucee@6 Test Results

255 tests   255 ✅  50m 53s ⏱️
 17 suites    0 💤
  1 files      0 ❌

Results for commit e5c25a9.

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants