[
https://issues.apache.org/jira/browse/SHINDIG-466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Lindner resolved SHINDIG-466.
----------------------------------
Resolution: Cannot Reproduce
looks like the UP substitutions are now done first.
Also the linked gadget fails due to a missing google-domain feature. Please
reopen if you find this in current code.
Thanks!
> Wrong sequence of substitutions in GadgetServer
> -----------------------------------------------
>
> Key: SHINDIG-466
> URL: https://issues.apache.org/jira/browse/SHINDIG-466
> Project: Shindig
> Issue Type: Bug
> Components: Java
> Environment: any
> Reporter: christof kaleschke
>
> When the substitutions take place in the method
> GadgetServer.createGadgetFromSpec() this is done in the sequence: MESSAGE,
> BIDI, USERPREF, MODULE. This sequence leads to wrong substitutions in the
> following (complicated) case:
> If the default_value attribute of a <UserPref> element contains a __MSG
> value and a <ModulePrefs> attribute or subelement references this <UserPref>
> element via __UPit is substituted to the __MSG value and not to the element
> from the message bundle.
> Take the example: http://www.google.com/ig/modules/youtube_videos.xml. There
> the UserPref channel_url_to_preload contains the default_value
> __MSG_recently_featured_rss__. A Preload element references this UserPref via
> __UP_channel_url_to_preload__ in its href attribute. After the substitutions
> in GadgetServer.createGadgetFromSpec() the value in the href attribute is
> __MSG_recently_featured_rss__ and not
> "http://youtube.com/rss/global/recently_featured.rss" from the message bundle.
> I think the sequence of substitutions should be: USERPREF, MESSAGE, BIDI,
> MODULE.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira