Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1793

"Error: blob is undefined" when creating new SessionRecording from Blob

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.1
    • 1.5.3
    • guacamole-common-js
    • None

    Description

      When creating a Guacamole.SessionRecording instance by supplying a blob an error is thrown.

      To reproduce this, run the following test:

      describe("Guacamole.SessionRecording", function EventSpec() {
          it("should create new SessionRecording instance from Blob", async function () {
              const url = 'https://raw.githubusercontent.com/apache/' +
                  'guacamole-client/master/doc/guacamole-playback-example/src/main/webapp/recording.guac';
              const response = await fetch(url);
              const blob = await response.blob();
              const recording = new Guacamole.SessionRecording(blob);
              expect(recording).not.toBeNull();
          });
      });
      

      Expected result: The test passes without an error.
      Actual behavior: An error is thrown when calling the constructor function.

      TypeError: blob is undefined in src/main/webapp/modules/SessionRecording.js (line 280)
      readNextBlock@src/main/webapp/modules/SessionRecording.js:280:17
      parseBlob@src/main/webapp/modules/SessionRecording.js:296:9
      SessionRecording@src/main/webapp/modules/SessionRecording.js:403:18
      EventSpec/<@src/test/javascript/Recording.js:26:27
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            leonard2901 Leonard Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: