[Coldbox 5.6.2] - Commandbox error installing cors module

I created a project using the Coldbox rest-cmvc template. After installing a few modules successfully from forgebox, I got an error while installing the cors module as follows:
Thanks in advance for your feedback.

list

Dependency Hierarchy for Merapi (1.0.0)

├── commandbox-cfformat ()

├── commandbox-cfconfig ()

├── cbdebugger (1.7.1+29)

├─┬ coldbox (5.6.2+1021)

│ └── testbox ()

├── commandbox-dotenv ()

├─┬ relax (4.0.0+155)

│ ├── cbjavaloader ()

│ ├── wikitext ()

│ └── cbswagger ()

├─┬ testbox (3.2.0+356)

│ └─┬ cbstreams (1.5.0+51)

│ └── testbox ()

├─┬ cbsecurity (2.2.1+78)

│ ├─┬ jwt-cfml (1.1.0)

│ │ └── testbox ()

│ └─┬ cbauth (4.1.2)

│ ├── cbstorages (2.1.0+45)

│ └── testbox ()

├─┬ BCrypt (2.5.0-snapshot)

│ └── cbjavaloader (1.7.0+42)

├── cbswagger ()

└─┬ cbvalidation (2.1.0+126)

└── cbi18n (1.5.0+77)

install cors

✘ | Installing package [forgebox:cors]

File name too long

ERROR (4.5.0+00198)

File name too long

/system/endpoints/File.cfc: line 44

42: job.addLog( “Decompressing…”);

43: 44: zip action=“unzip” file=“#package#” destination=“#packagePath#” overwrite=“true”;

45:

46: // Defer to folder endpoint

called from /system/endpoints/HTTP.cfc: line 61

called from /system/endpoints/ForgeBox.cfc: line 447

called from /system/endpoints/ForgeBox.cfc: line 57

called from /system/services/PackageService.cfc: line 106

called from /system/modules_app/package-commands/commands/package/install.cfc: line 161

called from /system/services/CommandService.cfc: line 341

called from /system/services/CommandService.cfc: line 138

called from /system/Shell.cfc: line 755

called from /system/Shell.cfc: line 577

called from /system/Bootstrap.cfm: line 159

To enable full stack trace, run config set verboseErrors=true

ver

CommandBox 4.5.0+00198

The error has come from the cfzip command and is “File name too long”. I cannot control this as it appears to be a limitation in the underlying Zip library of Lucee. The error may even be coming from your underlying file system! I also notice you are on an old version of CommandBox. Please try updating to CommandBox 5.0 and see if the error persists. If it does, try moving the project to a folder that is closer to your drive root or with a shorter directory name.

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks Brad!

Here is my feedback: just upgraded to Commandbox 5.0.1.However the same error persists upon cors module installation.

install cors

× | Installing package [forgebox:cors]

File name too long


Verifying package ‘cors’ in forgebox, please wait…

Installing version [3.0.3].

Verified entry in forgebox: ‘cors’

Downloading entry from forgebox.

Deferring to [https] endpoint for forgebox entry [cors]…

Downloading [HTTPS://s3.amazonaws.com/ortus-forgebox-private/elpete/cors/

3.0.3.zip?

Decompressing…


ERROR (5.0.1+00137)

My folder name is merapi, located in the home directory. Not particularly long name:

philippe@Philippes-MacBook-Pro ~ % ls -l

total 24704

drwx------@ 3 philippe staff 96 Feb 13 2019 Applications

drwxrwxr-x@ 9 philippe staff 288 Mar 31 09:17 Creative Cloud Files

drwx------@ 13 philippe staff 416 Mar 31 09:22 Desktop

drwx------@ 14 philippe staff 448 Jan 21 13:30 Documents

drwx------@ 3 philippe staff 96 Mar 30 12:42 Downloads

drwx------@ 6 philippe staff 192 Feb 7 12:13 Dropbox

drwx------@ 74 philippe staff 2368 Mar 25 17:11 Library

drwx------+ 4 philippe staff 128 Oct 9 13:13 Movies

drwx------+ 5 philippe staff 160 Oct 9 13:13 Music

drwx------+ 6 philippe staff 192 Jun 21 2019 Pictures

drwxr-xr-x 3 philippe staff 96 Jun 27 2019 Postman

drwxr-xr-x+ 2 philippe staff 64 Jun 20 2019 Public

drwxr-xr-x 4 philippe staff 128 Nov 10 11:19 awscli-bundle

-rw-r–r-- 1 philippe staff 12408342 Nov 10 11:19 awscli-bundle.zip

drwxr-xr-x 23 philippe staff 736 Mar 28 12:34 contactfirebase

drwxr-xr-x 4 philippe staff 128 Mar 30 12:29 contactmerapi

drwxr-xr-x 10 philippe staff 320 Jan 14 12:30 contactmongo

drwxr-xr-x 27 philippe staff 864 Mar 30 15:03 merapi

drwxr-xr-x@ 10 philippe staff 320 Jun 27 2019 mongodb

drwxr-xr-x 33 philippe staff 1056 Jun 26 2019 mybox1

drwxr-xr-x 40 philippe staff 1280 Nov 23 15:57 samovar

philippe@Philippes-MacBook-Pro ~ %

I have no idea. I can install CORS on my machine with no error. I would report this to Lucee as that’s where the error is coming from.

Managed to install successfully cors@3.0.0

You know, Luis ran into this error on his machine a couple days ago. We looked at the zip file itself and it was corrupted. Something weird inside of it had thousands of nested folders that weren’t supposed to be there. We’re not sure how it happened, but only the last version of the artifact seemed to have the issue. That’s why the “file name too long” error was happening.

So long story short, it probably was no fault of your own, but just a corrupt zip file.