NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      when i try to resize an image I just get the broken image icon.

            [CONFSERVER-27748] image resizing busted?

            Shipped in OD-21

            Ivan Loire (Inactive) added a comment - Shipped in OD-21

            Reopened to add version label.

            Ivan Loire (Inactive) added a comment - Reopened to add version label.

            QA'd.

            Reproduced in master:

            • Create page with thumbnail
            • Corrupt thumbnail (echo blah > file)
            • Reload page. Confirm thumbnail does not load, exception in logs
            • No new thumbnail generated (no timestamp changed)

            Confirmed fixed on branch:

            • Create page with thumbnail
            • Corrupt thumbnail (echo blah > file)
            • Reload page. Confirm thumbnail loads and is regenerated, no exception in logs (confirm timestamp on thumbnail is updated)
            • Reload page. Confirm thumbnail loads and is not regenerated, no exception in logs (confirm timestamp on thumbnail is unchanged)

            Petch (Inactive) added a comment - QA'd. Reproduced in master: Create page with thumbnail Corrupt thumbnail (echo blah > file) Reload page. Confirm thumbnail does not load, exception in logs No new thumbnail generated (no timestamp changed) Confirmed fixed on branch: Create page with thumbnail Corrupt thumbnail (echo blah > file) Reload page. Confirm thumbnail loads and is regenerated, no exception in logs (confirm timestamp on thumbnail is updated) Reload page. Confirm thumbnail loads and is not regenerated, no exception in logs (confirm timestamp on thumbnail is unchanged)

            Changing to editor component

            Sherif Mansour added a comment - Changing to editor component

            This broken attachment is referring to an image "image2012-4-26 16:13:9.png" attached to the same page.

            It's definitely there:

            https://extranet.atlassian.com/download/attachments/1980933875/image2012-4-26+16%3A13%3A9.png

            But is linked as a thumbnail:

            https://extranet.atlassian.com/download/thumbnails/1980933875/image2012-4-26+16%3A13%3A9.png?version=1&modificationDate=1335420751053

            Going directly to this link returns a NullPointerException from the server, so it looks like there's a issue reading a cached thumbnail or generating it

            java.lang.NullPointerException
                at com.atlassian.confluence.pages.thumbnail.renderer.DelegatingThumbnailRenderer.retrieveIfExists(DelegatingThumbnailRenderer.java:128)
            
            Stack Trace:[hide]
            
            java.lang.NullPointerException
            	at com.atlassian.confluence.pages.thumbnail.renderer.DelegatingThumbnailRenderer.retrieveIfExists(DelegatingThumbnailRenderer.java:128)
            	at com.atlassian.confluence.pages.thumbnail.renderer.DelegatingThumbnailRenderer.retrieveOrCreateThumbNail(DelegatingThumbnailRenderer.java:166)
            	at com.atlassian.confluence.pages.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:110)
            	at com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceManager.getResourceReader(ThumbnailDownloadResourceManager.java:45)
            	at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManager.java:75)
            	at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32)
            	at com.atlassian.confluence.servlet.download.AttachmentDownload.getStreamForDownload(AttachmentDownload.java:63)
            	at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.java:140)
            	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
            	at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.getStreamInTransaction(ServeAfterTransactionDownload.java:41)
            	at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.serveFile(ServeAfterTransactionDownload.java:50)
            	at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:33)
            	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
            	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    ...
            

            Petch (Inactive) added a comment - This broken attachment is referring to an image "image2012-4-26 16:13:9.png" attached to the same page. It's definitely there: https://extranet.atlassian.com/download/attachments/1980933875/image2012-4-26+16%3A13%3A9.png But is linked as a thumbnail: https://extranet.atlassian.com/download/thumbnails/1980933875/image2012-4-26+16%3A13%3A9.png?version=1&modificationDate=1335420751053 Going directly to this link returns a NullPointerException from the server, so it looks like there's a issue reading a cached thumbnail or generating it java.lang.NullPointerException at com.atlassian.confluence.pages.thumbnail.renderer.DelegatingThumbnailRenderer.retrieveIfExists(DelegatingThumbnailRenderer.java:128) Stack Trace:[hide] java.lang.NullPointerException at com.atlassian.confluence.pages.thumbnail.renderer.DelegatingThumbnailRenderer.retrieveIfExists(DelegatingThumbnailRenderer.java:128) at com.atlassian.confluence.pages.thumbnail.renderer.DelegatingThumbnailRenderer.retrieveOrCreateThumbNail(DelegatingThumbnailRenderer.java:166) at com.atlassian.confluence.pages.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:110) at com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceManager.getResourceReader(ThumbnailDownloadResourceManager.java:45) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManager.java:75) at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32) at com.atlassian.confluence.servlet.download.AttachmentDownload.getStreamForDownload(AttachmentDownload.java:63) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.java:140) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.getStreamInTransaction(ServeAfterTransactionDownload.java:41) at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload.serveFile(ServeAfterTransactionDownload.java:50) at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) ...

            Hey guys.

            I showed this to @martin when it was happening so that I would have a witness.

            So the images that were doing this are no longer on the page (they were in the top summary section). I'm not sure what that means, I should have made a little movie.

            Anyway, if you search the page for the word "chewbacca" there's a broken image. If you click it, you get an inline dialog. Resize it to "original" and it appears, shrink it and its broken.

            This is the only behaviour thats left from the other day - the images that wouldn't pull up a dialog seem to be gone, maybe another designer overwrote the page and my changes... I'll check the history.

            J (Inactive) added a comment - Hey guys. I showed this to @martin when it was happening so that I would have a witness. So the images that were doing this are no longer on the page (they were in the top summary section). I'm not sure what that means, I should have made a little movie. Anyway, if you search the page for the word "chewbacca" there's a broken image. If you click it, you get an inline dialog. Resize it to "original" and it appears, shrink it and its broken. This is the only behaviour thats left from the other day - the images that wouldn't pull up a dialog seem to be gone, maybe another designer overwrote the page and my changes... I'll check the history.

            jrogers anything unique about these images compared to the ones above which seem ok? I'm thinking draft copied form somewhere else etc anything like that?

            #TeamBlack I don't know whether this goes to you or not as I'm not sure if it's 4.2 or 4.3 behaviour... Reassign if it needs to be.

            John Masson added a comment - jrogers anything unique about these images compared to the ones above which seem ok? I'm thinking draft copied form somewhere else etc anything like that? #TeamBlack I don't know whether this goes to you or not as I'm not sure if it's 4.2 or 4.3 behaviour... Reassign if it needs to be.

              iloire Ivan Loire (Inactive)
              jrogers J (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: