Change By: Frédéric Camblor (22/Jul/13 4:39 PM)
Description: When installing SCM-Sync-Configuration plugin v0.0.7.2 on 1.523, it seems like [this line of code|https://github.com/jenkinsci/scm-sync-configuration-plugin/blob/master/src/main/resources/hudson/plugins/scm_sync_configuration/extensions/ScmSyncConfigurationPageDecorator/footer.jelly#L64] :
{code}
var plugin = <st:bind value="${it}"/>;
{code}

is sometimes (depending on Jenkins installations) generating a strange output in the HTML :
{code}
var plugin = <script src="">{code}

Whereas in 1.509.2, I have this generated output :
{code}
var plugin = makeStaplerProxy('/$stapler/bound/<some-token>','<another token>',['purgeScmSyncConfigLogs']);
{code}

I personnally don't reproduce it on a fresh 1.523 install, but Björn Pedersen is reproducing it on its instance.

Is there something bad :
- In my code (I shouldn't affect the call to <st:bind> to a js variable because it could _potentially_ has to include necessary third party js files like json2.js)
  => if this is the case, is there a workaround to proxify my plugin instance on the JS clientside world ? (other than having to do stuff by hand by sending _manual_ Ajax calls to the server side)
- In Björn Pedersen's installation, or Jenkins core ?



Side note : Seems like the source of the problem is located in [this commit|https://github.com/stapler/stapler/commit/48cdf0f3242c6a79bb398e9115c0db7526c42a50#L4R74] which loads json2.js if it isn't already loaded.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to