IBM Support

LO61439: DXLEXPORTER OUTPUTS INCORRECT DATA WHEN DOCUMENT HAS IMAGE AND WRAP SETTING. A DIFFERENCE ARISES IN RICHTEXT WITH IMAGE SIZE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • Steps to reproduce:
    1. In Domino designer, create new form which has Subject and
    Body field.
    2. Create new view to display the subject.
    3. Create 2 agents which have the following Java code.
    4. In Notes client, create 1 document which has large size jpeg.
    Example.
    5. In editing the document, choose "Wrap around image" in Text
    Wrap in Picture properties after inserting a image.   Write
    "Upper Right" at the upper right of the image.   Write "Left
    Lower" under the image (in the next line).
    6. Select the document in the view.  DxlExporter agent is made
    to calculate the document to output a dxl text file.
    7. DxlImporter is made to calculate the text file to input into
    the database.
    8. Open the document which was inputted from the dxl file.
    "Upper Right" exists under the image, above "Left Lower"
    
    
    Additional information 1
    In the correct case, there is a text string after a image data.
    -----------------------------------
    </jpeg></picture>Text String </par>
    -----------------------------------
    But, in the incorrect case, "</par><par def='1'> Text String"
    exists after a image.
    -----------------------------------
    </jpeg></picture></par>
    <par def='1'>Text String</par>
    -----------------------------------
    
    Additional information 2
    This issue does not reproduce if a jpeg file size is small (ex.
    3KB).   I think that this issue reproduces if there are some
    image segments in rich text data.   When some image segments
    exist, some data as a record-type ff68 are exist.   It does not
    reproduce if the number of image segments is one and ff68 data
    does not exist.
    
    Additional information 3
    The issue does not reproduce if Notes client R5 creates a
    document with a large size jpeg file.
    
    
    ------------------------------------
    DxlExporter Agent
    
    import lotus.domino.*;
    public class JavaAgent extends AgentBase {
    public void NotesMain() {
      try {
        Session session = getSession();
        AgentContext agentContext = session.getAgentContext();
    
        // (Your code goes here)
        DocumentCollection dc =
    agentContext.getUnprocessedDocuments();
        Document doc = dc.getFirstDocument();
    
        // Export to file
        String filename = "c:\\test.dxl";
        Stream stream = session.createStream();
        if (stream.open(filename,"Unicode")) {
          stream.truncate(); // Any existing file is erased
          DxlExporter exporter = session.createDxlExporter();
          doc.removeItem("$FILE");
          exporter.setOutputDOCTYPE(false);
          exporter.setConvertNotesBitmapsToGIF(true);
          System.out.println("Exported " +
    stream.writeText(exporter.exportDxl(doc)) + " bytes to " +
    filename);
        }
        else
          System.out.println("Cannot open " + filename);
        } catch(Exception e) {
          e.printStackTrace();
        }
      }
    }
    
    ------------------------------------
    DxlImporter Agent
    
    import lotus.domino.*;
    public class JavaAgent extends AgentBase {
    static DxlImporter importer = null;
    public void NotesMain() {
    
      try {
        Session session = getSession();
        AgentContext agentContext = session.getAgentContext();
    
        // (Your code goes here)
        Database db = agentContext.getCurrentDatabase();
        // Get DXL file
        String filename = "c:\\test.dxl";
        Stream stream = session.createStream();
        if (stream.open(filename,"Unicode") & (stream.getBytes()
    >0)) {
          // Import DXL from file to new database
          importer = session.createDxlImporter();
          importer.setReplaceDbProperties(true);
          importer.setReplicaRequiredForReplaceOrUpdate(false);
    
    importer.setAclImportOption(DxlImporter.DXLIMPORTOPTION_REPLACE_
    ELSE_IGNORE);
    
    importer.setDesignImportOption(DxlImporter.DXLIMPORTOPTION_CREAT
    E);
          importer.importDxl(stream, db);
        }
        else
          System.out.println(filename + " does not exist or is
    empty");
        } catch(Exception e) {
          e.printStackTrace();
        } finally {
          // Print importer log
          try {
            System.out.println(importer.getLog());
          } catch(Exception e) {e.printStackTrace();}
        }
      }
    }
    

Local fix

Problem summary

  • This APAR is closed as FIN. We have deferred the fix to a
     future release.
    

Problem conclusion

Temporary fix

Comments

  • This APAR is associated with SPR# YSAI8HMEX5.
    
    This APAR is closed as FIN. We have deferred the fix to a
     future release.
    

APAR Information

  • APAR number

    LO61439

  • Reported component name

    NOTES CLIENT

  • Reported component ID

    5724E6255

  • Reported release

    851

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-08

  • Closed date

    2011-06-17

  • Last modified date

    2011-07-07

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • R851 PSN

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSKTWP","label":"Lotus Notes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
07 July 2011