Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5762

Create class TestUnsafe, that contains unsafe methods used by tests

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.35.0
    • None
    • None

    Description

      Create class TestUnsafe, that contains unsafe methods used by tests. Similar to the existing class Unsafe, this will be excluded from forbidden-apis checks. But it contains sensitive commands (e.g. java.lang.Runtime#exec)) that are safe to use in tests but must not be on the runtime class path.

      Move some methods from class ConcurrentTestCommandScript to class TestUnsafe, and remove the former class from the forbidden-apis allow-list.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment