[BaseImageSetContentResource.getImageResource:128] Failed to retrieve content bean. org.hippoecm.hst.content.beans.ObjectBeanManagerException: Cannot return bean of type 'interface org.hippoecm.hst.content.beans.standard.HippoGalleryImageSetBean'
The web service is hit and but the error seems to be due to incorrect URL - it appears that it cannot find the standard gallery folder location.
Question1:
Given my REST mount point 'restapi' and servlet context 'site', what is the correct REST URL for retrieving original image in an imageset content in standard location, /content/gallery/myhippoproject ?
Question2:
I also want to upload image from a file using REST API. Given my REST mount point 'restapi' and servlet context 'site', what is the correct REST URL for uploading the original image from a file abc.jpg, to an imageset content in standard location, /content/gallery/myhippoproject ?
Thanking you in advance.
Thanks and Regards,
Amal
siteContentBasePath of HstRequestContext is automatically set "content/documents/myhippoproject" rather than "content/gallery/myhippoproject". That seems to the root cause.
How do we override this?
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to a topic in the Google Groups "Hippo Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hippo-community/ygjeEmCEsUI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
value of hst:content of /hst:hst/hst:sites/myhippoproject to /content/gallery/myhippoproject. With this, I get requestContext.getSiteContentBasePath()=content/gallery/myhippoproject and this is a step forward for me. This also means that the content root folder is NOT the root case of the original problem, although initially I thought it was. Now I get the following error message |
Failed to retrieve content bean. org.hippoecm.hst.content.beans.ObjectBeanManagerException: Cannot return bean of type 'interface org.hippoecm.hst.content.beans.standard.HippoGalleryImageSetBean' |
and my code in REST web service method is quite simple: @GET @Path("/getImageset") public HippoGalleryImageSetRepresentation getImageSetResource2(@Context HttpServletRequest servletRequest, @Context HttpServletResponse servletResponse, @Context UriInfo uriInfo) { return super.getImageSetResource(servletRequest, servletResponse, uriInfo);
} The problems that I face: 1. I am unable to retrieve the imageset data in standard imageset folder, content/gallery/myhippoproject, thru this web service. 2. My second objective is to upload image, into standard imageset folder content/gallery/myhippoproject, using standard REST web service method BaseImageSetContentResource.updateImageResourceContent(), but I get stuck because of mapping issues mentioned above. |
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Hippo Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hippo-community/ygjeEmCEsUI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hippo-communi...@googlegroups.com.
The page you requested was not found in this site.