SMP fails to provide packages when containing aspace in base folder name when shared as UNC source with error: HTTP error 400
search cancel

SMP fails to provide packages when containing aspace in base folder name when shared as UNC source with error: HTTP error 400

book

Article ID: 258539

calendar_today

Updated On:

Products

Client Management Suite IT Management Suite

Issue/Introduction

While deploying packages with spaces in the base folder the packages fail to download and get HTTP error 400 in the client log. No errors are seen on the Server side. The version of ITMS/CMS is 8.5 or 8.6.

When a client would attempt to download this package, the following request would be made:

Downloading 'C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{38E9B011-E795-40AD-AF83-7AE23C825C7D}\cache\File with space.txt' from 'https://SMPSERVER/Altiris/PackageShare/pkggroup_qz3fowcrjmcdepcv56jahn6srddfz7j4/space folder/File%20with%20space.txt', size 9, in cache 0, total file blocks 1, blocks position 0/14, local blocks: 0/14, server blocks: 0/0, value rank on

server: 0

Followed with:

Sending event Start for package {38E9B011-E795-40AD-AF83-7AE23C825C7D} Name UNC Space Pkg; URL = https://<SMPSERVER>/Altiris/PackageShare/pkggroup_qz3fowcrjmcdepcv56jahn6srddfz7j4/space folder; downloadNum = 1;  cursor = 0; rate = 0; status = Refresh

Resulting in:

Failed to download package '{38E9B011-E795-40AD-AF83-7AE23C825C7D}' from: https://<SMPSERVER>/Altiris/PackageShare/pkggroup_qz3fowcrjmcdepcv56jahn6srddfz7j4/space folder, local blocks: 0/14, error: HTTP status 400: The server cannot process the request because the syntax is not valid (0x8FA10190)

Multiple Packages imported into the SMP using "Access from existing UNC" containing a space in the folder name and file with spaces in the names:

Environment

ITMS 8.5, 8.6, 8.7

 

Cause

For packages with input type UNC the output generated HTTP codebase is not escaped.

Resolution

As a workaround, it would be required either to import packages without a space in the folder name or add Site Package Server from where clients would be able to properly obtain packages.

This has been resolved in the ITMS 8.7 release.