Attachments: Problem rendering complex obs created outside of module

Corrected here:

1 Like

@mksd @reagan

i pulled the latest changes and tested them though the module still fails to attach images when you select ImageHandler outside the attachment api handlers.

Thanks @gcliff, what’s the stack trace now? Can you share it on https://dpaste.org/?

https://pastebin.com/CCFtwPs7

The new changes merged seem to have fixed this initial error here https://pastebin.com/xSUUbHnq

Thanks @gcliff. However something’s wrong with the reported error:

NullPointerException
  at AttachmentsController.downloadDocument(AttachmentsController.java:115)

But line 115 is a blank line, see here. Are you sure you’re running the build out of the latest master branch?

yes @mksd ,i have just reproduced the issue again and still the same error logs from the server

Indeed, I tried this locally and same weird stuff with line 115.

Anyway, I found the issue, it’s in this deprecated controller: AttachmentsController. Fixed here:

Could you guys try it?

@mksd i have tested the module with the latest changes merged and it works with handlers outside the attachment api …

1 Like

Thank you @gcliff for testing it out

1 Like