Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-143

Invalid Repository Config Uri composition from "log4net.Config" application setting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.11
    • Component/s: Core
    • Labels:
      None

      Description

      In DefaultRepositorySelector class in method ConfigureRepository(Assembly assembly, ILoggerRepository repository) (DefaultRepositorySelector.cs, line 706) code perform config uri composition from applicationBaseDirectory path and specified in "log4net.Config" settings file name. Because SystemInfo.ApplicationBaseDirectory property return path not ended with slash '\' at line 706 during "new Uri(applicationBaseDirectory)" operation executed trimmed last folder, so config uri made invalid.

      1. Fix.jpg
        29 kB
        Olivier Oswald

        Activity

        Hide
        bodewig Stefan Bodewig added a comment -

        fixed with svn revision 1167161

        Show
        bodewig Stefan Bodewig added a comment - fixed with svn revision 1167161
        Hide
        ooswald Olivier Oswald added a comment - - edited

        log4net.Core.DefaultRepositorySelector, line 706: A simple fix for a long outstanding issue (screenshot).

        Show
        ooswald Olivier Oswald added a comment - - edited log4net.Core.DefaultRepositorySelector, line 706: A simple fix for a long outstanding issue (screenshot).

          People

          • Assignee:
            Unassigned
            Reporter:
            edy Eduard Gomolyako
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development