Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-684

INI parser keeps escape characters in keys and values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2, 1.4.0
    • Fix Version/s: 1.5.0
    • Component/s: Configuration
    • Labels:
      None

      Description

      If I have a .ini file and I want to escape a character, the ini parser does not remove the escape character. For example, with a role such as "System\ Administrator = permissions" the key becomes "System\ Administrator" and the value "permissions", i.e. the escape char \ is not removed. The bug is in Ini.Section.splitKeyValue(String). The code checks for an escape character but does not skip or remove the escape character from the buffer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fpapon Francois Papon
                Reporter:
                ndjensen Nathan Jensen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m