[MGNLREST-194] Endpoint returns default rendition for all image variation Created: 31/Oct/18  Updated: 13/Dec/18  Resolved: 29/Nov/18

Status: Closed
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: 2.1.1
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Michal Novak Assignee: Viet Nguyen
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d
Original Estimate: Not Specified

Attachments: PNG File Blogs_overview_page.png     PNG File Heroimage.png     PNG File Integration.png     PNG File Local.png     PNG File Screen Shot 2018-11-28 at 5.35.00 PM.png     PNG File Screen Shot 2018-11-28 at 9.44.11 AM.png     PNG File Screen Shot 2018-11-28 at 9.44.45 AM.png     PNG File Screen Shot 2018-11-29 at 11.36.44 AM.png     PNG File Screen Shot 2018-11-29 at 11.38.11 AM.png     PNG File Screen Shot 2018-11-29 at 2.26.15 PM.png     File blogs-theme.yaml     PNG File blogs-theme_path.png     File blogs.yaml     PNG File blogs_listing.png     XML File dam.dev.Watney.steve-burg-1-mav-ver01-view-001..jpg.xml     Text File data-error.log     PNG File site_definition.png    
Issue Links:
Relates
causality
is causing DOCU-1806 A note in REST docs about defining fa... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Hello,

I’m using rest delivery endpoint v2 for fetching the data from a content app.  Locally it returns correct image variation for all the renditions, but on the Integration environment it returns the default variation for all the renditions.



 Comments   
Comment by Michal Novak [ 19/Nov/18 ]

Hello, could someone take a look on this one please? We would like to release new blogs LM soon and this is quite an issue. Thank you very much.

Comment by Michal Novak [ 27/Nov/18 ]

The issue can be seen here.
https://author-integration-magnolia-mkg.de.magnolia-cloud.com/blogs-home/

Steps to reproduce:

Note: On the page, this is related only to blogs listing, which is actually a Vue.js app. (whole area with the search field, dropdown filtering menu and lists of the blogs.
The main picture (hero image) on the page is created as an area with a freemarker code.

There you can see that imaging module returns correct rendition.

Hope this helps and thank you  

Comment by Viet Nguyen [ 28/Nov/18 ]

Hello mnovak,

Looks like you lack of imaging config within your theme, please double check it and compare b/w your local and integration env.
Docs here:
https://documentation.magnolia-cms.com/display/DOCS57/Imaging+module#Imagingmodule-Configuringanimageoperationinavariation

Your current config:


Hope this helps!

Comment by Michal Novak [ 28/Nov/18 ]

Hello Viet,
I’m using configuration for the imaging module via yaml file within the blogs light module. See blogs-theme.yaml

Also my site configuration sits in the site module, see here.

The same configuration is used for local setup and for the Integration one.

Also, as I’ve mentioned in the previous comment, assuming that the imaging module provides correct links when it is used via freemarker, the configuration is setup correctly. As you can see here

But the data that I’m using for the blog posts listing are being fetched by a rest call and as you can see in the response all the links have default state.

Comment by Viet Nguyen [ 28/Nov/18 ]

I'm still investigating on the issue since it's working on my local environment too.

It worked for
https://author-integration-magnolia-mkg.de.magnolia-cloud.com/.imaging/mte/blogs-theme/900/dam/testing/maud_tennyson2.jpg/jcr:content/maud_tennyson2.jpg
After double check...

It is rendering pretty well on my local environment such as
http://localhost:8280/mgnlwebapp55/.imaging/mte/travel-demo-theme/960/dam/tours/maud_tennyson2.jpg/jcr:content/maud_tennyson2.jpg

So there should be something wrong with the image operation chain or image generator on our cloud bundle, we'll investigate in more detail tomorrow.
It works at least for above link so need another way to investigate...

Viet

Comment by Michal Novak [ 28/Nov/18 ]

Just to better clarification.

As it is said on the picture above. The issue is tied only to the area called "Blogs listing" which pulls the data from the rest endpoint and uses the information to show the thumbnails. Area above the blogs listing, a detail page of a post or a detail page of a bloger uses freemarker code and it displays images correctly.

Comment by Michal Novak [ 28/Nov/18 ]

Yeah, go ahead with the restart.

Comment by Viet Nguyen [ 29/Nov/18 ]

Restarting the instance didn't fix the issue.
Also just to clarify that it's working locally for REST calls but totally not working on Cloud w/o any idea until now

Not working on cloud:

(image/renditions/450 section)

Comment by Viet Nguyen [ 29/Nov/18 ]

Adding a theme to 'fallback' site seems fixing this issue, probably because your 'blog' site was not mapped properly so the request URL fallbacks to 'fallback' site.
mnovak looks like the issue fix if you have a correct mapping for your 'blog' or just let the fallback site having my configured theme as below:

Comment by Michal Novak [ 30/Nov/18 ]

Ok, thank you for your time Viet

Generated at Mon Feb 12 06:57:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.