Embedded images broken if user not logged into Confluence
Issue #19
new
Steps to reproduce:
- Use this plugin to create a Confluence page for a JIRA issue.
- Drag an image into that page so that it's shown as an image attachment.
- Log out of Confluence.
- In JIRA, open the Confluence tab for that issue; the image is broken (shows a browser-specific "broken image" icon).
- Log back into Confluence.
- Reload the Confluence tab for the issue; the image displays correctly.
Comments (2)
-
Account Deactivated reporter -
Account Deactivated reporter Given that it's possible for a JIRA user to have a Confluence OAuth token but not be logged into Confluence (e.g. they may have gone to a different machine), any requests to Confluence URLs (e.g. for embedded images) will probably need to be proxied by my plugin to ensure they succeed. This will involve modifying the page HTML so that any Confluence URLs are changed to plugin URLs. Jsoup looks like a good way to do this.
- Log in to comment
The initial loading of the Confluence page content is done using the credentials stored against the application link. However the browser cannot use these credentials when requesting any Confluence URLs that appear within the iframe.