tracker issue : CF-4126700

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

CLI does not support per-application mappings

| 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:

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Mac All

Vote Count: 1

Problem Description:

Any per-application mappings declared in Application.cfc are ignored in CLI scripts.

Steps to Reproduce:

Create an Application.cfc with a per-application mapping, e.g.,

this.mappings["/test"] = expandPath("/");

In your CLI script, print expandPath("/test") using cli.writeln()

Actual Result:

It has the value of expandPath("/") & "test"

Expected Result:

It should have the value of expandPath("/")

(you can substitute any path you want for expandPath("/") in the mapping -- it won't work)

Any Workarounds:

None. This prevents any use of shared libraries of CFCs CLI scripts because there's no way to access anything outside the script's "webroot".

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

Watson Bug ID:	4126700

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: Date Closed newValue: 2015-09-14 21:10:04.0 oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:10:04.0 action: updated fieldName: Closed By newValue: hkallae oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:10:04.0 action: updated fieldName: Owner newValue: Blank oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:10:04.0 action: updated fieldName: Reason newValue: Blank oldValue: Fixed oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:10:04.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:10:04.0 action: updated fieldName: Status newValue: Fixed oldValue: ToTest oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-09-15 04:10:04.0 action: updated fieldName: Date Fixed newValue: 2015-08-20 02:31:33.0 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-20 09:31:33.0 action: updated fieldName: Fixed By newValue: himar oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-20 09:31:33.0 action: updated fieldName: Owner newValue: hkallae oldValue: himar oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-20 09:31:33.0 action: updated fieldName: Reason newValue: Fixed oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-20 09:31:33.0 action: updated fieldName: Changelist newValue: 294988 oldValue: Blank oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-20 09:31:33.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: himar recordName: RQ_DEFECT timpestamp: 2015-08-20 09:31:33.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-08-15 09:41:39.0 action: updated fieldName: Fix By Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 09:03:30.0 action: updated fieldName: Fix By Product Milestone newValue: Beta oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 09:03:30.0 action: updated fieldName: Severity newValue: 2 oldValue: 3 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 09:03:30.0 action: updated fieldName: Priority newValue: 2 oldValue: 0 oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 09:03:30.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 09:03:30.0 action: updated fieldName: Reason newValue: Blank oldValue: Blank oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 09:03:30.0 action: updated fieldName: Owner newValue: himar oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-07-20 09:03:30.0
Comment by CFwatson U.
3470 | March 09, 2016 04:41:29 AM GMT
Comment space Please explain how this bug or feature impacts your productivity and why you are adding your vote
Vote by External U.
3472 | March 09, 2016 04:41:31 AM GMT
Added By: PreRelease User User Name:Sean Corfield Note Added: Confirmed that per-application mappings work in 9/15 Alpha. Thank you! Date Added :2015-09-15 21:17:10.0 Added By: PreRelease User User Name:Adam Cameron Note Added: +1 Date Added :2015-07-18 06:13:49.0 Added By: PreRelease User User Name:Sean Corfield Note Added: Entered Bug. Date Added :2015-07-18 01:42:46.0
Comment by CFwatson U.
3471 | March 09, 2016 04:41:32 AM GMT