Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2622

Fix parsing of paths in local configuration file

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 5.2.0
    • Component/s: Configuration
    • Release Notes Summary:
      Paths in Local Config File
    • Release Notes Description:
      Hide

      The configuration file parser has been fixed to handle again path-like options.

      Show
      The configuration file parser has been fixed to handle again path-like options.
    • Sprint:
      nxDrive 11.2.19
    • Story Points:
      1

      Description

      Local config:

      [DEFAULT]
      env = bug
      
      [bug]
      nxdrive_home=/home/rgrasland/Documents/fake_home
      
      Traceback (most recent call last):
        File "/home/rgrasland/Projects/nuxeo-drive/nxdrive/__main__.py", line 69, in main
          ret = CliHandler().handle(sys.argv[1:])
        File "/home/rgrasland/Projects/nuxeo-drive/nxdrive/commandline.py", line 506, in handle
          options = self.parse_cli(argv)
        File "/home/rgrasland/Projects/nuxeo-drive/nxdrive/commandline.py", line 388, in parse_cli
          self.load_config(parser)
        File "/home/rgrasland/Projects/nuxeo-drive/nxdrive/commandline.py", line 472, in load_config
          Options.update(conf_args, setter="local", file=file, section=env)
        File "/home/rgrasland/Projects/nuxeo-drive/nxdrive/options.py", line 495, in update
          MetaOptions.set(
        File "/home/rgrasland/Projects/nuxeo-drive/nxdrive/options.py", line 455, in set
          raise TypeError(err)
      TypeError: The type of the 'nxdrive_home' option is str, while PosixPath is required. From '/home/rgrasland/.nuxeo-drive/config.ini', section [bug].
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.