Edit INI action fails with exception "Unable to make modifications"

  • 7013068
  • 19-Aug-2013
  • 28-Oct-2013

Environment

Novell ZENworks Configuration Management 11.2.2 Bundles
Novell ZENworks Configuration Management 11.2.3 Bundles

Situation

  • Error on Device
    • Error is: An error occured while performing the "Edit INI File Action" action. The error message is - "Exception occurred while making the textfile modification: Unable to make modifications for change - SectionName"
  • Error in zmd-messages.log
    • [DEBUG] [07/29/2013 11:15:53.381] [1220] [ZenworksWindowsService] [104] [] [BundleManager] [] [Error Processing Bundle Action for bundle: E-mail & Calendar (Lotus Notes 8.5.1)] [] []
    • [DEBUG] [07/29/2013 11:15:53.381] [1220] [ZenworksWindowsService] [104] [] [BundleManager] [] [Error is: An error occured while performing the "Edit INI File Action" action. The error message is - "Exception occurred while making the textfile modification: Unable to make modifications for change - SharedDataDirectory".] [] []
    • [DEBUG] [07/29/2013 11:15:53.381] [1220] [ZenworksWindowsService] [104] [Giz] [BundleManager] [] [Inside exception ProcessSelfHealingLaunch ::Exception of type 'Novell.Zenworks.AppModule.LaunchException' was thrown.] [] []
    • [DEBUG] [07/29/2013 11:15:53.381] [1220] [ZenworksWindowsService] [104] [Giz] [BundleManager] [] [The launch exception reason is ACTION_SET_FAILURE] [] []
    • [ERROR] [07/29/2013 11:15:53.381] [1220] [ZenworksWindowsService] [104] [Giz] [BundleManager] [ActionHandlers.EditINIFileHandler.HandlerError] [An error occured while performing the "Edit INI File Action" action. The error message is - "Exception occurred while making the textfile modification: Unable to make modifications for change - SharedDataDirectory".] [] [2c8acb4efe120e8d1d013f62a9a72eb5]

Resolution

This is fixed in version 11.2.4 - see KB 7012027 "ZENworks Configuration Management 11.2.4 - update information and list of fixes" which can be found at https://support.microfocus.com/kb/doc.php?id=7012027

Workaround: if it is not possible to upgrade to ZCM11.2.4 at this time, in the interim, Novell has made a Patch  available for testing, in the form of a Field Test File (FTF): it can be obtained at https://download.novell.com/Download?buildid=yyE9qUvt78c~ as "ZCM 11.2.3a /ZCM 11.2.3a MU1 fix for Edit INI action fails with exception "Unable to make modifications" - see TID 7013068". This Patch should only be applied if the symptoms above are being experienced, and are causing problems.

This Patch has had limited testing, and should not be used in a production system without first being checked in a test environment. Some Patches have specific requirements for deployment, it is very important to follow any instructions in the readme at the download site. Please report any problems encountered when using this Patch, by using the feedback link on this TID.

Cause

Case-sensitivity was added in ZCM 11.2.2 to handle scenarios where there were two sections in the ini file with the same name but in different case.  This scenario has since been deemed invalid as Windows ignores case, any file that used such a format would not be a valid ini file, merely a text file that looked like an ini file.

Additional Information

Troubleshooting notes
  • ZCC -> <bundle> -> Actions -> Launch -> Edit INI File -> Modify A Section -> Section Name
  • Prior to 11.2.3, the Section Name setting was case-insensitive, so 'MySection' in the Section Name would match 'MySection', 'mysection', 'MySeCtIon', etc in the corresponding .INI file
  • 11.2.2 onwards this was changed to be case-sensitive to accommodate situations where there might be multiple sections in one INI file with different cases
  • The bundle will now fail with errors as described above