Second access to same attachment stored in database is not found

XMLWordPrintable

      User uses

      {excel} macro to bring in data from an attachment. On the same page, uses {excel}

      macro again to the same attachment to get additional data (a different sheet). Second attempt fails. This scenario works fine when attachments are stored in the file system, but seems to break when attachment is stored in database. The plugin code is using something like:

      attachment = attachmentManager.getAttachment(entity, name);
      return attachment.getContentsAsStream();

      A stream is then passed on for processing, and that processing results in file not found error.

      I might be premature in opening this, but I suspect the new DB attachment support might be the problem. The user can easily reproduce the problem, but I do not yet have a setup that includes attachments in a DB.

              Assignee:
              Andrew Lynch (Inactive)
              Reporter:
              Bob Swift
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: