SonarLint ignores quality profile from server - sonarlint

Using SonarLint 2.0.0 with Eclipse Mars.2 and SonarQube Server 5.3, I have a Maven multi-module project with each module connected to the corresponding project component on the SonarQube Server. The server uses a custom quality profile.
I've manually updated the issues from the server, but the issues I see in Eclipse are not in sync with the issues on SonarQube.
Eclipse displays some issues for rules that are deactivated in my profile, but misses lots of issues from other rules of my profile.
What's wrong here?

Can confirm this issue with SonarLint 2.0.0 on Eclipse Mars.2 and SonarQube Server 5.4.
The SonarQube Server has a custom Quality Profile which is configured as default for all projects, yet it seems to be not taken into account by SonarLint.

I confirm the issue on SonarLint for Visual Studio and SonarQube Server 5.4.
SonarLint uses generic default rules, instead of custom Quality Profile defined on server.

Related

asp.net core 1. how change the Target Runtime to x86

i develop an Asp core web application (.net framework).
how i specify a run as 32-bit applications?
the publish wizard do not give way to change the Target Runtime, which the selected option is x64 is selected.
I installed on my machine the x86 version of .NET Core Installer.
publish wizard screenshot:
PS Why do I need x86.
I had to run the site on a computer that installed Microsoft Access 32-bit (2003, for an old software).
I also need to access data in Microsoft Access file, which requires me to use the Microsoft.Jet.OLEDB.4.0 driver.
The problem is, probably, that the app's core ASP.NET always running as 64-bit applications, is what gives me the known exception 'driver not registred'
stil after set "enable 32-bit application" in IIS.
i cant install the 64-bit access driver engine, because it requires the removal of MS Access 32-bit...
As mentioned here you need to add the "runtimes" key to your project.json file like below image.
Once you do this, the Target Runtime entry in Publish menu will list all of your specified runtimes. Although this is not enough to get it working since using the Publish menu and selecting x86 version will have no effect and will result in x64 binary files. (This bug may be fixed in future).
The workaround is to navigate to your project folder where the project.json resides. Open a command prompt and type the following to have your binary in desired runtime:
dotnet publish --runtime win7-x86
If you get any error yet, you may need to have the corresponding runtime installed (Download form here).
More info:
https://learn.microsoft.com/en-us/dotnet/articles/core/app-types
https://learn.microsoft.com/en-us/dotnet/articles/core/rid-catalog#what-are-rids
There is also a platform key under buildOptions listing all possible targets, but yet because of some issues (like #1624) it has no effect and it seems the system ignores that.

IBM System i Access causes web application not to load

I have an web application that was developed in Visual Studio 13 using Visual Basic. When I switched it over to a virtual server to run, it was ran fine until I installed IBM System i Access. It was needed to connect to a db2 database. After its installation, removing it causes the application to stop working. It tries to load, but never does. After uninstalling it, the program worked fine, but I need it for the application. Do you have any idea of what may fix it?
Things to note:
MySQL is installed on the same virtual server as well, but uninstalling MySQL components didn't cause it to work.
Its ran using .NET 4.0
I figured out that the problem was due to the .NET Framework I was running. My application uses .NET 4.0. This was an issue because the version(6.1) of IBM System i Access for Windows only works with .NET 2.0. Hopes this helps someone eventually.

SQL adapter in Worlight?

I am new to IBM Worklight,and i found a way to connect to the MySQL using the SQL adapter.
the configuration as below:
<dataSourceDefinition>
<driverClass>com.mysql.jdbc.Driver</driverClass>
<url>jdbc:mysql://localhost:3306/worklight_training</url>
<user>Worklight</user>
<password>Worklight</password>
</dataSourceDefinition>
Since the adapter are compile together with the app, just wondering, is it safe? is there a possibility of someone decompiling my apk or ipa to view the adapter connection thus acquire the user and password to my mysql database.
A hacker decompiling your .apk or .ipa file will not find the database username/password there, for the simple reason that the adapter is not compiled "together with the app" and is not part of any artifacts that you install in a device.
An adapter is a server-side entity, not client-side.
The adapter is an object stored in the memory of the running application server.
Adapters are Server side code andare not part of the apk or ipa files.
You can check/confirm this information in Worklight documentation. The details about adapters, under "Developing the server side of a Worklight Application" are at:
http://www-01.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.dev.doc/devref/c_overview_of_ibm_worklight_adap.html
You can also check the Server Side Development of MobileFirst Platform Getting Started Modules
https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-6-3/server-side-development/
(MobileFirst Platform is the new name of Worklight)
In worklight, you usually have the application (apk/ipa) communicating with a server side component (the adapters) running in a worklight server. The adapters are used to communicate with backend systems (like a mysql server). There are a few different types of adapters to communicate with different types of backends (like sql, http and SAP)
Please, let us know what documentation/guide caused you the understanding that adapters are part of the client apk/ipa. If that is really stated in any documentation, it is wrong and must be corrected.
Edit:
To connect to a MySQL DB (no matter if it is a standalone MySQL or in XAMP, LAMP or whatever package) you can follow this geting started tutorial
https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-6-3/server-side-development/sql-adapter-communicating-sql-database/
Also note that, if you are using MobileFirst Studio (previously Worklight Studio) downloaded for free from Developer Works you have a developer version of the WOrklight Server running inside Studio so that you can create and deploy adapters and use it during development as your server. But when you go to production you are required to purchase licenses of Worklight because you don't have the worklight server available for free.
So if you have Studio, you have the server available but only for development purposes.

SQL Server Express with Mangement Studio does not install management studio

I downloaded the installation for SQL Server Express 2008 with Management Studio from here:
Download SQL Express 2008 with Management Studio
I ran the install and installed the SQL Server Services w/o issue, except there are no client-side tools. Management Studio Express did not install and I can find no way to install it. I have followed numerous posts on Microsoft's social sites, but no success. The posts that seem to make the most sense to me suggest running install and add features. When I do this, Management Studio is NOT listed as a feature to add:
As you can see by the image SQL Client Connectivity SDK is the ONLY option for added features.
Please advise.
I had this same problem. During the initial installation step where it checks pre-requisites, it found I did not have the PowerTools installed. I then installed the PowerTools and re-ran the checks and saw the screen above. But after rebooting, I then saw the 'Management Tools - Basic' option visible and checked.

cas jasig using oracle data source on windows

is there any way that can help cas settings to use the data source oracle on windows
in my company will apply singgle singgle sign on and logout, I've been trying for 5 days, and until now have not been successful.
I've tried several ways
I use
Tomcat 7.0
Java 1.7
cas server 3.5.2
Tomcat 7.0
Java 1.7
cas server 3.5.2
I downloaded cas server 3.5.2
extract cas-server-3.5.2
copy cas-server-webapp-3.5.2.war into tomcat webapps
cas has been successfully deployed, and can be accessed
and then I do not understand anymore, how do I get the authentication process can use oracle database
sorry my english is not good
thank you
There's a few things you need to do:
First of all, if you haven't downloaded and included the Oracle JDBC Driver library (http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html) then you have to do that.
Secondly, you need to configure the JDBC plugin: https://wiki.jasig.org/display/CASUM/JDBC
These instructions (and the preferred method of customizing & building CAS) uses the Maven Web Overlay method. This has the advantage that you deploy lots of un-necessary libraries that you aren't using.