Plugins setup folder not created

Bug #1195455 reported by Erich Strelow
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OCS Inventory: Agent Deployment Tool
Fix Released
Medium
Didier Liroulet

Bug Description

Pay attention to the following log profile:

Host <192.168.2.92> Testing connection to remote host...
Host <192.168.2.92> Trying to connect to remote host...
Host <192.168.2.92> Trying to get remote "Program Files" and "ProgramData" directories using Registry...
Host <192.168.2.92> Using directory <C:\Program Files> for Program Files and <C:\ProgramData\OCS Inventory NG\Agent> for Program Data on remote host...
Host <192.168.2.92> Creating setup directory on remote host...
Host <192.168.2.92> Copying files on remote host on directory <\\192.168.2.92\C$\ProgramData\OCS Inventory NG\Agent>...
Host <192.168.2.92> *** ERROR *** Copying files on remote host: El sistema no puede encontrar la ruta especificada.

Checking the destination folder, the OCS-NG-Windows-Agent-Setup.exe does exist as the sole file.
This behavior is repeated for several hosts.

In /DeployingDlg.cpp (revision 53):938

 // Also create plugins folder
 csTemp.Format( _T( "%s\\%s"), csDestDir, WIN_AGENT_PLUGINS_FOLDER);
 if (!directoryCreate( csDestDir))

...the argument for the directoryCreate call should be csTemp, not csDestDir. The Plugins folder never gets created, and the FileCopy in line 996 fails, triggering the ERROR_FILE_NOT_FOUND condition.

Related branches

Revision history for this message
Didier Liroulet (dliroulet) wrote :

Hi

Thanks for the report.

It is fixed in rev 54 of code.

This will be included into deploy tool 2.1 final.

Regards

Changed in ocsinventory-deploy-tool:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Didier Liroulet (dliroulet)
Changed in ocsinventory-deploy-tool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.