Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-8551

Explore service under Standalone produces URL-encoded directories

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Explore, Standalone
    • Labels:
      None
    • Rank:
      1|hzzv5j:

      Description

      While fixing CDAP-5717, I noticed that there are two distinct errors. The first was in the shell scripts, which is fixed in CDAP-5717, the other was in the on-disk location of some data.

      My location:

      $ pwd
      /Users/chris/tmp/some dir/cdap-sdk-4.0.1
      

      After starting Standalone, a directory is created to store some Explore temp files, it appears.

      $ ls -al ../.. | grep some
      drwxr-xr-x   4 chris  staff        136 Feb 16 18:21 some dir
      drwxr-xr-x   3 chris  staff        102 Feb 16 18:28 some%20dir
      

      The contents of the some%20dir are as follows:

      $ find some%20dir
      some%20dir
      some%20dir/cdap-sdk-4.0.1
      some%20dir/cdap-sdk-4.0.1/data
      some%20dir/cdap-sdk-4.0.1/data/explore
      some%20dir/cdap-sdk-4.0.1/data/explore/tmp
      some%20dir/cdap-sdk-4.0.1/data/explore/tmp/chris
      some%20dir/cdap-sdk-4.0.1/data/explore/tmp/chris/89ff246c-837d-47c7-b1e8-deca39c482a1
      some%20dir/cdap-sdk-4.0.1/data/explore/tmp/chris/89ff246c-837d-47c7-b1e8-deca39c482a1/_tmp_space.db
      

      I would assume that somewhere in the Explore service, we're using a URL-encoded PATH versus the raw PATH, properly quoted or with spaces escaped.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhooshan Bhooshan Mogal
                Reporter:
                chris Chris Gianelloni
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: