Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13849

getDirectory('') returns root path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: cordova-android-7.0.0
    • Fix Version/s: None
    • Component/s: cordova-plugin-file
    • Labels:
      None
    • Environment:

      Android

      Description

      At the moment the command {someDir}.getDirectory("") with a blank argument returns the root-path.
      If someone works already on a subdirectory that behaviour might be a security flaw.

      Better would be to return the current directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thaupenthal Tobias Haupenthal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m