Affects Version/s: 7.0.0 DXP FP84, 7.0.X, 7.1.X, Master
Fix Version/s: None
When /journalarticle/add-article JSON web service is called with images included, the portal will be unable to deserialize the images correctly, the image will not appear in the article.
A similar issue was reported earlier: LPS-54107 but this time, the image files are not even showing up in the documents and media folder.
1. Create a web content structure (with an image field) and a template.
2. Note down the ddmstuctureKey and ddmtemplateKey.
( I used these queries:
SELECT templateKey FROM Your_DB_Name.DDMTemplate where userName like "Test Test";
SELECT structureKey FROM Your_DB_Name.DDMStructure where userName like "Test Test";
3. Replace the values in App.java with your values.
4. Run the app (Right Click on App.java and choose Run as Java Application)
When checking the created web content, the image doesn't appear.
(using the UI: api/jsonws page won't work either)
There are no errors or warnings in the console log.
When checking the created web content, the image appears as intended.
There was an important change in
Journal Images use PortletFileRepository API
LPS-67119 deprecated the methods that were used in LR 6.2 to handle the images in journal articles.