You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API] ISO download does not work if ISO has 255 chars name #11731
{
"accountid": "fd3e34a9-2a85-11f0-ac08-02420a000a3d",
"account": "admin",
"domainid": "da3cc579-2a85-11f0-ac08-02420a000a3d",
"domainpath": "ROOT",
"userid": "fd3f18a1-2a85-11f0-ac08-02420a000a3d",
"cmd": "org.apache.cloudstack.api.command.user.iso.ExtractIsoCmd",
"jobstatus": 2,
"jobprocstatus": 0,
"jobresultcode": 530,
"jobresulttype": "object",
"jobresult": {
"errorcode": 530,
"errortext": "Unable to create a link for entity at template/tmpl/8/321/321-8-51a8ff71-e1e8-37b8-a498-30c164def1a7.iso on ssvm, Error in linking err=ln: failed to access '/var/www/html/userdata/a6df0ad8-7046-4a8b-8b26-e718ab89aa15/P3B5tC3uv5BJMDRQWa7wo001l9WI9cmtVn4yDSQcOUu8ACSzzaC966P6Rgpu0rzQU0uikKKRIfLfLRDiUiSRiegUundPK6Zwmlrb9MHYhxFHOu7IV4aygBXLMnXPNCKKbBU4XtrwLUcyb3V3nu0HsSnma8SkTQUAIUneRweW0Eq5rFLS1e9mcdbpnlvTcjULAtnWC1HQYkemaTSfjlkkFhhuXq7mLNhhj670ulBFCdhNeibm0E2Nyv5Al5eHV.iso': File name too long"
},
"jobinstancetype": "Iso",
"jobinstanceid": "4c9b4c93-f619-4c51-b31c-cadd1c1b87c5",
"created": "2025-09-26T07:41:49+0000",
"completed": "2025-09-26T07:41:49+0000",
"jobid": "24edb09b-f9c9-4179-8fc7-46dd2ed5f392"
}
What to do about it?
Either limit the ISO/Template name/description to fewer characters (I’d suggest 100 should be more than enough), or update the system to allow longer filenames and handle this case properly
Activity
sudo87 commentedon Jan 15, 2026
Issue is seen while creating symlink:
cloudstack/services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/template/UploadManagerImpl.java
Line 300 in 507c4cd
Linux filesystems (ext4/xfs/btrfs) enforce: Maximum filename length (NAME_MAX): 255 bytes. Supporting 255 or longer file names would not be possible.
We can put decent (200 or so) limit on ISO filename used for RegisterIsoCmd. cc @DaanHoogland
DaanHoogland commentedon Jan 15, 2026
As discussed on call @sudo87 , I think to prevent any backwards compatibility issue we have to use 251 ; 255 - strlen(“.iso”) on all related APIs.
DaanHoogland commentedon Jan 23, 2026
fixed by #12430