Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-399

apxStrUnQuoteInplaceA removes needed quotes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • Procrun
    • None

    Description

      When trying to pass the following argument to the jvm

      -Xlog:gc:file="d:\logs\gc.log"::filecount=5,filesize=20000
      

      the method apxStrUnQuoteInplaceA removes " from it and the resulting command looks like this:

      -Xlog:gc:file=d:\logs\gc.log::filecount=5,filesize=2000
      

      Which is an invalid jvm argument.

      Workaround for version 1.1.0 is to add a space into the log filename.

      IMHO the proper fix would be not too use apxStrUnQuoteInplaceA at all.

      Another possible fix would be to replace utils.c:571 with

      else if (*p == ' ' || *p == ':') {
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              spjoe Camillo Dell'mour
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m