Menu

#73 str doesn't recognize global strings

v1.0.x
fixed
critical (96)
v1.0.9
Bug Fix
2016-10-08
2016-06-30
Erik Hänel
No

The command str in procedures doesn't recognize global strings. Instead they will be interpreted as strings without quotation marks.

Analysis:
The bug comes from the detection of string vars in

bool Cache::containsStringVars(const string& sLine) const

where it won't be remarked, if the passed string ends with the last letter of the string vars' name.

Implementation:
Bug fix was implemented in the function named in the analysis. Implementation tests were successful.

Tests:
Tests were passed successfully. Bug fix accepted.

Discussion

  • Erik Hänel

    Erik Hänel - 2016-07-01
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2016-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,7 @@
     The command `str` in procedures doesn't recognize global strings. Instead they will be interpreted as strings without quotation marks.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2016-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,11 @@
     The command `str` in procedures doesn't recognize global strings. Instead they will be interpreted as strings without quotation marks.
    
     **Analysis:**
    +The bug comes from the detection of string vars in 
    +~~~C
    +bool Cache::containsStringVars(const string& sLine) const
    +~~~
    +where it won't be remarked, if the passed string ends with the last letter of the string vars' name.
    
     **Implementation:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2016-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,5 +8,6 @@
     where it won't be remarked, if the passed string ends with the last letter of the string vars' name.
    
     **Implementation:**
    +Bug fix was implemented in the function named in the analysis. Implementation tests were successful.
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2016-07-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -11,3 +11,4 @@
     Bug fix was implemented in the function named in the analysis. Implementation tests were successful.
    
     **Tests:**
    +Tests were passed successfully. Bug fix accepted.
    
    • status: testing --> fixed
     
  • Erik Hänel

    Erik Hänel - 2016-10-08
    • Labels: --> critical
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB