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

The config parser does not handle float values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 4.3.0
    • Component/s: Configuration

      Description

      This config file:

      [DEFAULT]
      env = smallFiles
      
      [smallFiles]
      tmp-file-limit = 0.1
      

      Gives that exception:

      Traceback (most recent call last):
        File "__main__.py", line 113, in main
          ret = CliHandler().handle(sys.argv[1:])
        File "commandline.py", line 481, in handle
          options = self.parse_cli(argv)
        File "commandline.py", line 392, in parse_cli
          self.load_config(parser)
        File "commandline.py", line 447, in load_config
          Options.update(conf_args, setter="local", file=file, section=env)
        File "options.py", line 432, in update
          section=section,
        File "options.py", line 385, in set
          raise TypeError(err)
      TypeError: The type of the 'tmp_file_limit' option is str, while int is required. From '$HOME/.nuxeo-drive/config.ini', section [smallFiles].
      

      Indeed the tmp_file_limit option accepts only float values.

        Attachments

          Activity

            People

            • 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 - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m