tracker issue : CF-4126686

select a category, or use search below
(searches all categories and all time range)
Title:

CLI.getArgs() should return CFML array

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)

Created: 03/09/2016

Components: CLI

Versions: 2016

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Mac All

Vote Count: 0

Problem Description:

CLI.getArgs() returns a native Java array of strings -- String[] -- which means "normal" CFML array manipulation doesn't work on it.

Steps to Reproduce:

Call CLI.getArgs() and try to use for ( elem in args ) or any member function on the result.

Actual Result:

Fails, because it's a String[], not a CFML array.

Expected Result:

Should be a CFML array and all array functions should work on it.

Any Workarounds:

Call arrayLen() to get the length and then use for ( i = 1; i lte n; ++i ) { args[i] ... }

NOTE: this also currently applies to getNamedArgs() but see separate ticket for a better fix for that.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126686

External Customer Info:
External Company: Railo US
External Customer Name: Sean Corfield
External Customer Email: SEAN@CORFIELD.ORG
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Owner newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:34:59.0 action: updated fieldName: Closed By newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:34:59.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:34:59.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:34:59.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:34:59.0 action: updated fieldName: Date Closed newValue: 2015-09-01 23:34:59.0 oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-02 06:34:59.0 action: updated fieldName: Changelist newValue: 294963 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:00:37.0 action: updated fieldName: Reason newValue: Fixed oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:00:37.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:00:37.0 action: updated fieldName: Date Fixed newValue: 2015-08-18 03:00:37.0 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:00:37.0 action: updated fieldName: Fixed By newValue: himar oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:00:37.0 action: updated fieldName: Owner newValue: hkallae oldValue: himar oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-18 10:00:37.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 04:13:20.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 04:13:20.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 04:13:20.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 04:13:20.0 action: updated fieldName: Priority newValue: 2 oldValue: 0 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 04:13:20.0 action: updated fieldName: Owner newValue: himar oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-21 04:13:20.0
Comment by CFwatson U.
3508 | March 09, 2016 04:37:56 AM GMT
Added By: PreRelease User User Name:Sean Corfield Note Added: Confirmed fixed in 9/15 Alpha - thank you! Date Added :2015-09-15 21:16:14.0 Added By: PreRelease User User Name:Sean Corfield Note Added: Entered Bug. Date Added :2015-07-20 16:55:25.0
Comment by CFwatson U.
3509 | March 09, 2016 04:37:58 AM GMT