Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-9

If no newline in axiscpp.conf apache won't start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • current (nightly)
    • None
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 24034

    Description

      If there is no newline after the last line in axiscpp.conf the apache module
      will not load and apache will not start.

      The problem was traced to AxisConfig.cpp in the method
      int AxisConfig::ReadConfFile().

      If the piece of code..

      while(line[k] != '\n')

      { value[j]=line[k]; k += 1; j += 1; }

      is replaced with..
      while(line[k] != '\n' && line[k]!='\0')
      { value[j]=line[k]; k += 1; j += 1; }

      The problems seems to be solved.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sanjayas@opensource.lk sanjaya singharage
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: