Apache Cordova
  1. Apache Cordova
  2. CB-790

Add HTTP status code to FileTransferError

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.9.0
    • Component/s: CordovaJS
    • Labels:
      None

      Description

      Add HTTP status code to FileTransferError

      <pre>

      { "code": FILE_NOT_FOUND_ERR, "source": "http://example.com/missing.txt", "target": "file:///mnt/sdcard/foo.txt", "http_status": 404 } { "code": CONNECTION_ERR, "source": "http://example.com/protected.txt", "target": "file:///mnt/sdcard/bar.txt", "http_status": 401 } { "code": CONNECTION_ERR, "source": "http://example.com/admin.txt", "target": "file:///mnt/sdcard/baz.txt", "http_status": 403 }

      </pre>

        Activity

        Filip Maj made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Filip Maj made changes -
        Assignee Don Coleman [ dcoleman ] Filip Maj [ filmaj ]
        Fix Version/s 1.9.0 [ 12319551 ]
        Filip Maj made changes -
        Component/s iOS [ 12316400 ]
        Component/s Android [ 12316401 ]
        Component/s BlackBerry [ 12316402 ]
        Component/s WP7 [ 12316404 ]
        Component/s mobile-spec [ 12317700 ]
        Shazron Abdullah made changes -
        Assignee Joe Bowser [ bowserj ] Don Coleman [ dcoleman ]
        Don Coleman made changes -
        Field Original Value New Value
        Description Add HTTP status code to FileTransferError

        {
              "code": FILE_NOT_FOUND_ERR,
              "source": "http://example.com/missing.txt",
              "target": "file:///mnt/sdcard/foo.txt",
              "http_status": 404
        }

        {
              "code": CONNECTION_ERR,
              "source": "http://example.com/protected.txt",
              "target": "file:///mnt/sdcard/bar.txt",
              "http_status": 401
        }

        {
              "code": CONNECTION_ERR,
              "source": "http://example.com/admin.txt",
              "target": "file:///mnt/sdcard/baz.txt",
              "http_status": 403
        }
        Add HTTP status code to FileTransferError

        <pre>
        {
              "code": FILE_NOT_FOUND_ERR,
              "source": "http://example.com/missing.txt",
              "target": "file:///mnt/sdcard/foo.txt",
              "http_status": 404
        }

        {
              "code": CONNECTION_ERR,
              "source": "http://example.com/protected.txt",
              "target": "file:///mnt/sdcard/bar.txt",
              "http_status": 401
        }

        {
              "code": CONNECTION_ERR,
              "source": "http://example.com/admin.txt",
              "target": "file:///mnt/sdcard/baz.txt",
              "http_status": 403
        }

        </pre>
        Don Coleman created issue -

          People

          • Assignee:
            Filip Maj
            Reporter:
            Don Coleman
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development