How can we create a dynamic Base URL. Sometimes we need to access the plugins/resources from different context path. So we want to make the base url dynamic from General Configuration under Administration.
Actually, we are not looking for two Base URL. But we have NCR Portal to access any NCR website (i.e.
) from out side the NCR LAN. NCR Portal authenticates the user and provides session to enter the NCR website. NCR portal redirects the request with encripted URL to that website. Website understand that URL and land the user. But baseurl (which is configured in JIRA) is executed without encripted or without the session. So baseurl is not understand in out side the NCR LAN.
Due to above reason we want to setup the Base URL as request.getContextPath(). Please let me know any JSP, Java, properties file, where we can configure or set the baseurl variable to Context Path.
As per my understanding, we need to modify the methods getText() or getString() in ApplicationPropertiesImpl.java file to feed to correct URL. To modify this file can you send me the .java file or can you tell me the process to modify this .class file to achieve the Base URL dynamic. Please consider this is a urgent request as our external user not able to access JIRA properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suspect you need a commercial licence to see that file, as it's part of the core code (you're entitled to download the source if you have one). I suspect you'll need to amend more than that one file too - the base url is used throughout Confluence and I don't think it's changeable in just one place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to your account and look for the download section.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have downloaded the java file. Can you tell me, how can I handle request object in this java file? I want to retrieve the reference URL by request.getHeader("referer") in this java file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried to get the request object in file ApplicationPropertiesImpl.java as below. But both the cases I got null value. Please let me know any alternative.
HttpServletRequest servletRequest = ServletActionContext.getRequest();
HttpServletRequest servletRequest2 = ActionContext.getRequest();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can anybody tell where the baseurl is stored for display the plugins in dashboard. For example, if I see the property of plugin displayed in dashboard as below.
Can you tell me where this code is written to create this URL in application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You do understand that this is community support right? If you're not getting answers it's because you're not doing enough research yourself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I come to know that the gadgets (Two Dimensional Filter Statistics: Current Assignee Filter, Activity Stream etc.) displayed in the dashboard is not dependent on the Base URL which is provided by configuration (General Configuration under Administration). I have modified the Base URL to some unknown URL and restart the JIRA server. Observed that gadgets are displayed properly in dashboard still. I think these gadgets are collecting the URL from somewhere else. I was not able to find. Do you have any idea that I can proceeds or modify the URL as appropriate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mmm, actually, those gadgets do depend on the base url, but they also know that they're running in Jira and therefore don't have to have it explicitly given to them. If you use them on other pages, then they need a pointer to Jira, which includes the base url...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic, I have modified the Base URL to some other unknown URL (....restart the server) and seen that gadgets are still populating with out any issue with previous URL. But i am not able to find the page where this gadgets are populated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Guys i am waiting for your reply. But still no body reply on my question. I am asking you, because I stack some where and I did not get any way to resolve the issue. My question is, please let me know the place (.jsp, .java etc)where dashboard gadgets are populated?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The gadgets are storing their configuration. When you create them, they remember where they came from (i.e. the context in which they were created). I don't know how that's done explicitly, but I think it's in the OSGI framework stuff.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.