Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13988

Harden CreateCollectionCleanupTest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.4
    • None
    • None

    Description

      This test counts on being unable to create

      /some_invalid_dir/foo
      

      And if it does somehow succeed, it'll affect the filesystem (which it apparently can at least on Windows under some circumstances and maybe Unix if you're super-user).

      It seems safer to create a temp dir and explicitly disable write permissions on it and use that instead. See attached patch. While I don't have a Windows machine to test on, the javadocs assure me that I can disable write perms this way on Windows...

      anshumtflobbe Does this seem OK to you?

      Attachments

        1. SOLR-13988.patch
          2 kB
          Erick Erickson

        Activity

          People

            erickerickson Erick Erickson
            erickerickson Erick Erickson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: