cfexecute directory="#GetTempDirectory()#" throws error

Description

<cfexecute directory="#GetTempDirectory()#" name="c:\windows\system32\cmd.exe" timeout=1> </cfexecute>

threw

D:\lucee\web-contexts\app\temp\ must be a local directory, scheme [file] is not supported in this context.

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/commons/cli/Command.java#L50

the directory does exist

Environment

None

Activity

Show:

Zac Spitzer 8 March 2021 at 23:15

 

<cfexecute name="C:\Windows\System32\cmd.exe" directory="#getTempDirectory()#" arguments="/C cd" variable="x" timeout="2"></cfexecute> <cfdump var=#x#>

returned C:\lucee\web-contexts\e55f4bfe883e6aa771fad65ac2578e69\temp

without a directory attribute, it returned C:\lucee\tomcat

marking deployed

Zac Spitzer 23 February 2021 at 04:01

Igal Sapir 9 November 2020 at 06:05

This was working properly in Lucee 5.3.8.2 - regression introduced in 5.3.8.3 via https://github.com/lucee/Lucee/commit/a0c7d993dca0a82c1705e9e05a0fa358d9dd1374

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 26 October 2020 at 06:37
Updated 4 April 2021 at 14:25
Resolved 8 March 2021 at 23:15

Flag notifications