Skip to content

Core tests fail on Adobe ColdFusion: MID() called with invalid number of arguments in McpCommandInjectionSpec.cfc #2613

Description

@zainforbjs

Describe the bug
When running the Wheels core test suite on Adobe ColdFusion, the tests fail with the following error:

Parameter validation error for the MID function.
The function takes 3 parameters.

The error occurs in:
/vendor/wheels/tests/specs/security/McpCommandInjectionSpec.cfc: line 117

This indicates that Mid() is being called with an unsupported number of arguments. Adobe ColdFusion requires exactly three parameters: Mid(string, start, count).

To Reproduce
Steps to reproduce the behavior:

  1. Run the Wheels core test suite on Adobe ColdFusion.
  2. Observe the test failure.
  3. Review the stack trace pointing to:
    /vendor/wheels/tests/specs/security/McpCommandInjectionSpec.cfc: line 117

Expected behavior
The core tests should run successfully on Adobe ColdFusion without function argument validation errors.

Screenshots
Image

Desktop:

  • OS: Any
  • CFML Engine: Adobe Coldfusion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions