Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-78447

PDF export of Forge macros duplicates the first macro

XMLWordPrintable

      Issue Summary

      An issue with the app AI LaTeX+ for Confluence  - a Forge app using UI kit 1 and UI kit 2- was identified where if we add two or more macros on a page and try to export it as PDF, all the macros will show the formula from the first macro added.

      Page screenshot example:

      Steps to Reproduce

      1. Install AI LaTeX+ for Confluence in the Confluence instance.
      2. Create a page and Insert a macro of a latex equation using the app
      3. Repeat step 2 with a different equation
      4. Export to PDF

      Expected Results

      We should see the different formulas on the exported pdf, as well as the text on the page.

      Example page:

      Actual Results

      • We see the same duplicated formulas on the exported pdf.
      • On the partner replication we see the text on the page. On my lab instance we don’t even see the text.
      •  

      Example of formulas seen on PDF exported for the page above:

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

       

      Additional notes

      It seems the issue happens when we add a sequence of images with same URL domain source. For example, the code below on index.js of a UI kit 2 app:

       

      const App = () => {  
          return (    
            <>      
              <Image src="https://domain1.com/?t=abc123" />      
              <Image src="https://domain1.com/?t=xyz123" />      
              <Image src="https://anotherdomain.com/latex?equation=x%5Ey&display=block&color=black&size=24" />      
              <Image src="https://anotherdomain.com/latex?equation=2x%5E%7By%7D&display=block&color=black&size=24" />      
            </>      
          );
      }; 

       

      Would result on this PDF export, where the first image from domain1.com is repeated, and then the first image from anotherdomain.com is repeated:

       

              3fc9a08d5c87 Martin Maza (Inactive)
              d863d84a35c4 Gustavo Serrano (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: