[asterisk-bugs] [Asterisk 0013341]: [patch] Problem using UpdateConfig AMI command when dstfilename points to non-existing file

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 25 10:43:54 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13341 
====================================================================== 
Reported By:                vadim
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13341
Category:                   Core/ManagerInterface
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.22 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 135996 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-19 08:43 CDT
Last Modified:              2008-08-25 10:43 CDT
====================================================================== 
Summary:                    [patch] Problem using UpdateConfig AMI command when
dstfilename points to non-existing file
Description: 
I'm running following putconfig command:
======
Action: updateconfig
reload: no
SrcFilename: extensions.conf
DstFilename: extensions.conf.new
Action-000000: newcat
Cat-000000: ami-test-01
Action-000001: append
Var-000001: exten
Value-000001: 888,1,Noop(888)
Cat-000001: ami-test-01
Action-000002: append
Var-000002: exten
Value-000002: 999,1,Noop(999)
Cat-000002: ami-test-0
=======
And getting following as result:
============
Response: Error
Message: Save of config failed
============
====================================================================== 

---------------------------------------------------------------------- 
 (0091694) svnbot (reporter) - 2008-08-25 10:43
 http://bugs.digium.com/view.php?id=13341#c91694 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 139769

U   branches/1.4/main/config.c

------------------------------------------------------------------------
r139769 | mmichelson | 2008-08-25 10:43:52 -0500 (Mon, 25 Aug 2008) | 12
lines

Fix the logic in config_text_file_save so that if an
UpdateConfig manager action is issued and the
file specified in DstFileName does not yet exist,
an error is not returned.

(closes issue http://bugs.digium.com/view.php?id=13341)
Reported by: vadim
Patches:
      13341.patch uploaded by putnopvut (license 60)
	  (with small modification from seanbright)


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=139769 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-25 10:43 svnbot         Note Added: 0091694                          
======================================================================




More information about the asterisk-bugs mailing list