SonarQube is not saving settings - sonarqube

Using SQ 6.2 I observe a strange behaviour: Whe I modify and save no matter which setting in the administration UI and then reload the page, everything looks reset.
Example: Set "General / Delete all snapshots after" to "5", press "Save" and then press "F5". The field is empty again.
Does SQ store its settings in the database or on the filesystem? May I have wrong access rights then?
We're using an external PostgreSQL database.

Thanks for the input. The problem was caused by some totally different reason:
We had the ReSharper plugin installed, which caused a warning in its settings tab like "path to inspectcode and resharper cannot be used simultaneously".
After uninstallation of ReSharper all was fine again and the UI was behaving as expected and displaying all settings' values.

If you define a setting in sonar.properties, its value will not be rendered in the settings web page - and you are not able to change it there.
Have a look at Administration / System / System info to see the properties currently in effect.
To change the value of Delete all snapshots after:
Either change sonar.dbcleaner.weeksBeforeDeletingAllSnapshots in your sonar.properties
Or remove sonar.dbcleaner.weeksBeforeDeletingAllSnapshots from your sonar.properties and set the value in the web user interface (its value will be stored in the database, in this case)

Related

ms access "enter parameter value" when I enable macros

I have an issue in MS Access.
I have a report that calls a query where the results are filtered with a value taken from the form that calls the report.
The condition on the field looks like this: ​[FORMS]![Main Menu]![Combo42]
When I open the project with the macros DISABLED the report works okay.
But when I enable macros (either from the enable content pop-up yellow line that appears on top or enabling all macros in the trust setting ) and I try to open the report the "enter parameter value" pop up appears.
It looks like when the I enable macros "Combo42" field becomes unaccessible from the query.
I have tried all the possible combinations from "trust center" settings menu even though only the "enable macros" seems to have any affect.
Is has to be setting related because the issue appears only on "freshly installed" office that I installed by my self (i tried many versions) but when I use pre-configured office (i.e. company laptop) the issue doesn't appear.
Does anyone has any idea why this is happening?
Thanks
UPDATE!
after some time investigation tying to answer some questions i found the solution here
MS Access VBA code editor character encoding and copy/paste
different outcome same root cause.
Have you tried renaming the reference to a valid field name after enabling Macros? This can help:
Enter Parameter Value

How do I change what a registry does in Windows (10)?

I have been trying to take a new tab in edge open right to google. I have tried adding a string value called NewTabPageURL and setting the value to www.google.com in numerous locations, but this hasn't worked. In MicrosoftEdge\ServiceUI, I can see the registry that controls what a new tab will be (their 3 options, blank page, feed, feed and your top websites it is called NewTabPageDisplayOption). I have the value set to 1 which will open a new page with top websites. Can I change what the value 1 does to open to google, or add a new value after 2 that can do this?
I suggest you to do not modify the registry settings. If you modify the registry settings incorrectly than it can lead MS Edge to get crashed or not work properly.
It is best practice to apply the settings via group policy. group policy will create/ modify registry keys properly.
If we talk about your requirement than it looks like you want to open Google.com in new tab.
You can refer steps below to achieve your requirement via group policy.
(1) Open Run Window in your Win 10 OS.
(2) Type GPEDIT.MSE in it and press Enter key.
(3) Navigate to location below.
Computer Configuration > Administrative Templates > Windows Components > Microsoft Edge
(4) Find a policy setting called Set New Tab Page URL and double click on it.
(5) Click on Enabled radio button.
(6) Set a new URL for New Tab page like below.
(7) Click on Apply button and close the Window.
Note that this policy is depended upon other policy called Allow Web Content on New Page.
So you also need to find this policy from the similar location and Enabled it. Otherwise your above policy setting will get ignored.
For more information, You can refer the link below.
New Tab page
You also need to check that above settings are not controlled by your administrator/ organization. Due to that reason, This policy settings also get ignored.

Setting default firefox preferences

Our continuous integration process uses Selenium, and twice in the last few months it has been knocked out of action thanks to firefox updating itself (either on developer machines or the CI server).
We have therefore installed the previous firefox version alongside the later one (this time in a directory called firefox-16), until Selenium catches up.
The problem is, the app.update.auto setting (in about:config) is set to true by default - meaning that sooner or later it will update itself to 17 and selenium will break. We therefore installed an all-no-update.js file in the /usr/lib/firefox-16/defaults/pref folder containing
user_pref("app.update.auto", false);
which (according to MDN) should override any other values. Unfortunately it doesn't work - the about:config page still shows auto-update as app.update.auto as true. This MDN page says:
All Mozilla-based applications read (application directory)/defaults/preferences/*.js
but unfortunately that doesn't work either - the value stays unchanged.
I've trawled the Bugzilla database but can't find anything relevant (other than the fact that an all.js file gets deleted by an upgrade so be sure to use all-*.js file).
Does anyone know enough about the workings of Mozilla Firefox to tell me how to set this preference value? (please don't say "click on the about:config page" - it needs to be automatically to ensure the build is repeatable and stable).
Thanks, James
Edit:
Sorry if the above isn't clear: I can create default preferences, for newly created profiles, just fine. But as users already have a profile this won't have any effect. I could possibly create a new profile on every machine, for every user, that has this setting disabled - but it is a lot of overhead. Sysadmins all over the world must be using this functionality somehow, surely: a way to override a given preference with a centrally-set one?
The most likely reason is using user_pref() function - as the name already says, this one is reserved for user's preferences (in user's profile), default preferences should use pref() instead.
You also have to consider that whatever you put into this directory are default preferences, they can be overridden in the browser profile (in the file prefs.js there). If you aren't using a clean profile the preference can already be set there and the default won't have any effect then.
For reference: A brief guide to Mozilla preferences
From MDN: Enterprise Deployment (Configuration)
Some config items require lockPref to be set, such as app.update.enabled. It will not work if it set with just pref.
Suspect this may apply to app.update.auto as well. Although I can find no obvious (i.e. named update) configuration option in about:config that is specific to any given add-on. So I don't even know if the per-add-on setting is a pref?

IIS8 Win8 and runAllManagedModulesForAllRequests="true"

I am attempting to run an application in IIS8 that has the following in the config:
<modules runAllManagedModulesForAllRequests="true" />
IIS8 is giving me an error that says...
This configuration section cannot be used at this path. This happens
when the section is locked at a parent level. Locking is either by
default (overrideModeDefault="Deny"), or set explicitly by a location
tag with overrideMode="Deny" or the legacy allowOverride="false".
I'm guessing by the error and a quick SO search that there is some higher level security setting that's preventing that line from being allowed. Any ideas?
I've solved the same problem by installing the window features "Internet Information Service/World Wide Web Service/Application Development/ASP.NET x.x" in the Control Panel of Windows8. If you want to setting on Windows Server 2012, the following link gives you hint.
http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45
hope that it works out.
For those of you running Windows Server 2012 the Application Development features are found at
[] Server Roles
[] Web Server IIS
[] Web Server
[] Application Development
[] ASP.NET x.x
When you select the .NET version it will ask if you want to add Extensions and other features. I just said yes, but you may be able to get away without installing those.
its hard to give a specific answer here, but the basics of it are that you need to look at the machine.config for the box you're running on. find the system.webServer node and look for the 3 tags/attributes its referencing in the error. chances are you'll find something that is marked as not overridable (allowOverride="false"), but i've not messed with windows 8/server 2012 yet, so i don't know what the machine.config looks like.
You can unlock the section via the IIS UI per https://serverfault.com/a/516921/137255
Open IIS Manager
Click the server name in the tree on the left
Right hand pane, Management section, double click Configuration Editor
At the top, choose the relevant section based on the offending item's XPath; i.e. system.webServer/modules for this example.
Right hand pane, click Unlock Section

What is overriding Windows proxy settings (inserting "vsts-proxy-installed-indicator") and how do I turn it off?

I have a number of machines, all of which have Visual Studio installed, where something (presumably visual studio) is overriding the proxy settings: setting up localhost and some random port for both HTTP and HTTPS. In the "Do not use proxy server" box, it puts <vsts-proxy-installed-indicator> which is presumably a tag so it know it's done it.
This occasionally prevents browsers from working on my desktop, and more recently, changed it on our build server which caused the code signing step (which connects to an external timestamp server) to fail all day until I finally found this proxy issue.
What is changing these settings? Why is it changing them? How do I turn it off?
Note, there is a serverfault question about this as well: What is inserting “vsts-proxy-installed-indicator”? but since this is a Visual Studio-specific question, I thought it might be better to ask here.
This happens because you've enabled "ASP.NET Client Proxy for IntelliTrace and Test Impact" in the Test Settings.
To disable - VS2010: Open the menu Test > Edit Test Settings > (select the current active test settings), select Data and Diagnostics and disable the mentioned setting.
To disable - VS2013: Double click on the enabled* .testsettings-file in the solutions explorer, select Data and Diagnostics and disable the mentioned setting.
*) You'll find which one is enabled (if any) under TEST> Test settings
Keep <vsts-proxy-installed-indicator> in the exception list along with the other proxy and exception settings. This will solve the issue.
It looks like running mstests (e.g., from the "Test List Editor" tab triggers this! Can someone reproduce?

Resources