![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Unassigned |
|
Components:
|
core |
|
Created:
|
07/Aug/14 10:41 PM
|
|
Description:
|
https://github.com/jan-molak/jenkins-build-monitor-plugin/issues/79 was traced to the fact that a plugin was binding a View with a @_javascript_Method. When this method was called, the StaplerRequest in effect (/$stapler/bound/<UUID>/<method>) has a useless List<Ancestor>: the BoundObjectTable, then the View, but with a getUrl of /jenkins/<UUID> (where the /$stapler/bound went missing). So AbstractItem.getUrl (as of JENKINS-19310) produced <UUID>/job/<jobname>/, which of course does not work.
What was really wanted was an ancestor list copied from the original HTML rendering request that produced the _javascript_ using this method, so that the final result would have been view/<viewname>/job/<jobname>/ as it would have been from a Jelly call.
Ideally the @_javascript_Method would copy the ancestors from the original request, like https://github.com/jenkinsci/jenkins/commit/ea95434938b2111d8768528823990a78bdc58d3e#diff-3 did for ProgressiveRendering.
|
|
Project:
|
Jenkins
|
|
Labels:
|
stapler
_javascript_
|
|
Priority:
|
Major
|
|
Reporter:
|
Jesse Glick
|
|
|
|
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
[email protected].
For more options, visit
https://groups.google.com/d/optout.