Log4net
  1. Log4net
  2. LOG4NET-143

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial 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

        Eduard Gomolyako created issue -
        Olivier Oswald made changes -
        Field Original Value New Value
        Attachment Fix.jpg [ 12452449 ]
        Stefan Bodewig made changes -
        Fix Version/s 1.2.11 [ 12310980 ]
        Stefan Bodewig made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development