By using Drupalgap i create an article and attach/upload an image to that article. Image of name: myimage.jpg
has the actual absolute path in website: http://www.example.com/sites/default/files/myimage.jpg
. In View
(and also in Edit
) menu tab inside Drupalgap the image seems to be broken. By debugging i get that in the View it tries to show an image with absolute path of http://www.example.com/sites/default/files/styles/medium/public/myimage.jpg
which doesn't exist. What exists in that specific folder is a renamed clone of my image with absolute path http://www.example.com/sites/default/files/styles/medium/public/1495486688801.jpg
.
To make things weirder, yesterday's articles created with the same method, which appeared also to be broken yesterday, today are shown just fine. Just fine means that the link of the image being shown points to the correct cloned image: http://www.example.com/sites/default/files/styles/medium/public/1495486688801.jpg
.
?q=drupalgap/node/55.json
is today's article json
with broken links
?q=drupalgap/node/53.json
is yesterdays's article json
which shows image as expected.
Both get 200 OK
response.
In the 2nd json references the image (...)"filename":"1495486688801.jpg","uri":"public://1495486688801.jpg"(...)
and the 1st as
(...)""filename":"IMG-8a92960d1864691a4e03c9cfe9ee8516-V.jpg","uri":"public://IMG-8a92960d1864691a4e03c9cfe9ee8516-V.jpg"(...).
Default Display in site uses Large
image style and Drupalgap display uses Medium
image style for the article node.
I have to mention that the same warning as the issue 776 appears to my log file.
WARNING: drupalgap_remove_page_from_dom() - not removing the current page (node_add_article) from the DOM!
Maybe medium style is not created as per need of my mobile's request.
UPDATE
I installed the imageinfo_cache module and now (confirmed after 3 newly created articles nodes with images) images are not broken in the View
menu tab in Drupalgap. But in the Edit
menu tab is still broken.