[asterisk-bugs] [Asterisk 0016858]: asterisk command history loads as unusable garbage

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 3 20:24:16 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16858 
====================================================================== 
Reported By:                jw-asterisk
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16858
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.2.2 
JIRA:                       SWP-932 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-17 21:19 CST
Last Modified:              2010-03-03 20:24 CST
====================================================================== 
Summary:                    asterisk command history loads as unusable garbage
Description: 
When using asterisk interactively with command interface a history file is
created (~/.asterisk_history). Lines written to the history file are
white-space encoded (in ast_el_write_history:history:case
H_SAVE:history_save:strvis).

But when the history file is loaded it reverse (strunvis) is not
performed.  Therefore the history becomes unusable garbage.
====================================================================== 

---------------------------------------------------------------------- 
 (0118935) lmadsen (administrator) - 2010-03-03 20:24
 https://issues.asterisk.org/view.php?id=16858#c118935 
---------------------------------------------------------------------- 
Wow, I'm not entirely sure what set you off, but the intention was
certainly not to do that. I quote jtodd:

"History works fine on MacOS with 1.6.2. Can you give a bit more
information on what version and OS you're on? I don't doubt it's broken,
but knowing what the details are would help a bit."

He states, "I don't doubt it's broken, but knowing what the details are
would help a bit", this seems to be a statement saying he wasn't able to
reproduce the issue immediately, but that some additional information might
be useful in trying to determine why you're experiencing the issue and he
is not.

I stated I was not able to reproduce this on Ubuntu 9.10 with Asterisk
trunk, which is certainly a version of Asterisk -- it's the latest
non-branched code.

If you were able to so easily reproduce the issue, and patch it yourself,
I'm not entirely sure why you wouldn't just provide the patch in the first
place, in which case it would likely be more obvious as a developer would
be able to see what part of the code needed to be modified, which likely
would have made the issue as obvious as you expected it to be.

Hopefully in the future you'll be more willing to work with the bug
marshals and developers, as the intention was never to belittle or
antagonize you, but rather to just get some additional information about
how to reproduce an issue you were experiencing so we could get it
resolved. Neither jtodd or myself were able to reproduce the issue
immediately in the few moments we had to triage your issue, which is why we
were looking for additional information to move this forward.

You'll catch more flies with honey than with vinegar. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-03 20:24 lmadsen        Note Added: 0118935                          
======================================================================




More information about the asterisk-bugs mailing list