[TIME-248] Group Timesheet with CAS Authentication
I am experiencing similar problems like https://studio.plugins.atlassian.com/browse/TIME-212 or https://studio.plugins.atlassian.com/browse/TIME-239.
Our Jira server is configured with a CAS Authentication.
The Group Timesheet doesn't work. (peer not authenticated ...)
Tested on Jira 4.4.5 and JIRA Timesheet Plugin 2.2.8
I suggest the following fix in the group-timesheet-gadget.xml file ( and probably on the other gadgets xml files ):
<Optional feature="atlassian.util" />
By oboniteau/Olivier Boniteau on Thu, 12 Apr 2012 07:20:10 -0700
Comments (4)
-
reporter -
reporter Fixed in 2.0, 2.1 and 2.2.9
Committed revision 167744
Committed revision 167745By azhdanov on Sat, 14 Apr 2012 16:04:30 -0700
-
reporter First, I am not a gadget developper, but I made some investigation
I found that atlassian.util was used in some gadgets and not present in Group Time Sheet.
https://developer.atlassian.com/display/GADGETS/Including+Features+into+your+GadgetThe _ATLASSIAN_BASE_URL_ format is replaced by the publisher :
https://developer.atlassian.com/display/GADGETS/Using+Substitution+Variables+and+Directives+in+your+GadgetThis expression is supported by Atlassian, and used in some examples :
https://developer.atlassian.com/display/JIRADEV/Plugin+Gadget+Tutorial+-+Writing+a+Gadget+that+Displays+the+Days+Left+in+a+Version#PluginGadgetTutorial-WritingaGadgetthatDisplaystheDaysLeftinaVersion-Step7.CreatetheConfigModefortheGadgetBy oboniteau on Mon, 16 Apr 2012 00:40:55 -0700
-
reporter Thank you, Oliver, you're better than Gadget developer
Marking issue as fixed, as it's checked in for 2.3.4 too, and some happy users already confirmed this helped in 2.2.9.
By azhdanov on Mon, 16 Apr 2012 15:09:58 -0700
- Log in to comment
Hi Oliver,
Thank you so much, I think this is greatest help I ever got for timesheet plugin since I've got Atlassian's help when plugin appeared! You might guess how many people suffer from it. And I think it really helps. I'm going to include this fix asap. But I'd like to understand better something more. May be you can help again.
First, I've found the following usage of it in Atlassian's jquery.js:
if (typeof atlassian.util === "undefined" || atlassian.util.getRendererBaseUrl() !== options.baseUrl) { options.unauthorized(options, xhr); } else { options.send(); $ajax(params); }
I think it may explain the need to include atlassian.util in gadget.xml, however I don't understand it completely. Do you?
And I also wonder if I should use atlassian.util.getRendererBaseUrl() in my gadgets instead of _ATLASSIAN_BASE_URL_, do you have any idea?
Thank you.
By azhdanov on Fri, 13 Apr 2012 16:13:35 -0700