Hippo tries to resolve links within 'hint' fields

30 views
Skip to first unread message

Martijn van der Vorst

unread,
Dec 18, 2015, 7:40:01 AM12/18/15
to Hippo Community
Hello,

It looks like hippo tries to resolve links that are in hint fields.

what we're trying to do is create a linkCompound which has an 'externalLink' field where authors need to add fully qualified URLs (beginning with http:// or https://).
To do this we added a hint to the field: "Always start with https:// or http://".

Now whenever a document is opened that contains a linkCompound, the following error is logged:

http-nio-8080-exec-4 [JcrPluginConfig.getPluginConfig:382] Failed to resolve path Always start with https:// or http:// relative to node /hippo:namespaces/myproject/LinkCompound/editor:templates/_default_/translator/hippostd:translations

when I remove the "https:// or http://" these errors stop being logged.

I'm not exactly sure what's going on here.
We are using Hippo 10.1.1

Kind Regards,
Martijn van der Vorst

Woonsan Ko

unread,
Dec 18, 2015, 9:27:08 AM12/18/15
to hippo-c...@googlegroups.com
Hello Martijn,

Can you export /hippo:namespaces/myproject/LinkCompound/editor:templates/_default_/translator/hippostd:translations to XML in CMS Console and paste here?

Regards,

Woonsan


--
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.



--
w....@onehippo.com     www.onehippo.com
Boston - 745 Atlantic Ave, 8th Floor, Boston MA 02111
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466

Martijn van der Vorst

unread,
Dec 21, 2015, 5:47:09 AM12/21/15
to Hippo Community
Heelo Woonsan,

We haven't added translations for the hints, so the only translations there are for the captions:

<?xml version="1.0" encoding="UTF-8"?>
<sv:node sv:name="hippostd:translations" xmlns:sv="http://www.jcp.org/jcr/sv/1.0">
  <sv:property sv:name="jcr:primaryType" sv:type="Name">
    <sv:value>hippostd:translations</sv:value>
  </sv:property>
  <sv:node sv:name="alt">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>frontend:pluginconfig</sv:value>
    </sv:property>
    <sv:property sv:multiple="true" sv:name="jcr:mixinTypes" sv:type="Name">
      <sv:value>hippo:translated</sv:value>
    </sv:property>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>en</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Alt</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>nl</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Alt</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>de</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Alt</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
  <sv:node sv:name="internalLink">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>frontend:pluginconfig</sv:value>
    </sv:property>
    <sv:property sv:multiple="true" sv:name="jcr:mixinTypes" sv:type="Name">
      <sv:value>hippo:translated</sv:value>
    </sv:property>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>en</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Internal link</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>nl</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Internal link</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>de</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Internal link</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
  <sv:node sv:name="externalLink">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>frontend:pluginconfig</sv:value>
    </sv:property>
    <sv:property sv:multiple="true" sv:name="jcr:mixinTypes" sv:type="Name">
      <sv:value>hippo:translated</sv:value>
    </sv:property>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>en</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>External Link</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>nl</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>External Link</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>de</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>External Link</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
  <sv:node sv:name="openItInANewPage">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>frontend:pluginconfig</sv:value>
    </sv:property>
    <sv:property sv:multiple="true" sv:name="jcr:mixinTypes" sv:type="Name">
      <sv:value>hippo:translated</sv:value>
    </sv:property>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>en</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Open in new window</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>nl</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Open in new window</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>de</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Open in new window</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
  <sv:node sv:name="label">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>frontend:pluginconfig</sv:value>
    </sv:property>
    <sv:property sv:multiple="true" sv:name="jcr:mixinTypes" sv:type="Name">
      <sv:value>hippo:translated</sv:value>
    </sv:property>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>en</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Label</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>nl</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Label</sv:value>
      </sv:property>
    </sv:node>
    <sv:node sv:name="hippo:translation">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>hippo:translation</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:language" sv:type="String">
        <sv:value>de</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:message" sv:type="String">
        <sv:value>Label</sv:value>
      </sv:property>
    </sv:node>
  </sv:node>
</sv:node>


Kind Regards,
Martijn

Woonsan Ko

unread,
Dec 21, 2015, 10:52:52 AM12/21/15
to hippo-c...@googlegroups.com
Hi Martijn,

Thanks for uploading the xml, but I was probably wrong. The xml doesn't seem helpful in finding the cause. Sorry for that.
What is your hippo version?
I tried to find the string, "Failed to resolve path", in 10 cms and repository code, but I couldn't find any. I wonder where the error is coming out from.. Maybe someone in Hippo Engineering can chime in.
Anyway, I think I should have asked you to post the xml export from the node containing the hint configuration (probably in your document namespace) instead. That could help more in finding the cause.

Regards,

Woonsan

Dodo

unread,
Dec 21, 2015, 11:37:20 AM12/21/15
to Hippo Community
Hi,
I'll upload the relevant xml when I have access to it (wonderful Dutch train wifi), but as to the version, we're running 10.1.1 with the security updates from last Friday.

Martijn van der Vorst

unread,
Dec 22, 2015, 5:46:45 AM12/22/15
to Hippo Community
Hi Woonsan,

I've added the entire linkcompound xml in it's entirity. Hopefully this helps narrow down the problem.

Kind regards,
Martijn van der Vorst
linkcompound.xml
Message has been deleted

Martijn van der Vorst

unread,
Dec 22, 2015, 11:44:41 AM12/22/15
to Hippo Community
A product issue  has been created in hippo jira:

Woonsan Ko

unread,
Dec 22, 2015, 1:50:08 PM12/22/15
to hippo-c...@googlegroups.com
Thanks a lot for the update! Nice catch!

Woonsan

On Tue, Dec 22, 2015 at 11:44 AM, Martijn van der Vorst <martijn.va...@indivirtual.com> wrote:
A product issue  has been created in hippo jira:

--
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.
Reply all
Reply to author
Forward
0 new messages