where can i find wso2 source code - wso2

I'm trying to find wso2 source in particular for the following class:
org.wso2.carbon.user.core.common.AbstractUserStoreManager.doGetUserClaimValues(AbstractUserStoreManager.java:2583)
I googled an svn repo, but it didn't got changes since 2012, has only branches for 3.x (I am using 4.6.0) and the lines do not match.
I found a github repo (or repos) but there seems to be no org.wso2.carbon.user.core package there, only org.wso2.carbon.user.mgm, but this is not what I am looking for.
Any ideas where wso2 source code and in particular the user store code is located?
regards
Leon
In particular I am looking for following lines:
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.doGetUserClaimValues(AbstractUserStoreManager.java:2583)
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserClaimValues(AbstractUserStoreManager.java:556)
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserClaimValues(AbstractUserStoreManager.java:550)

It's located here:
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.user.core/4.2.0/
You may also want to look at the patches (up to patch0004, only if they contain updates to the user core):
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/
You can find the carbon platform version (and also patches) for each product by looking at the release matrix, and then search the repo for the sources.
http://wso2.com/products/carbon/release-matrix/
(IS 4.6.0 is released with carbon 4.2.0 and also there's patch004 is released with that version.)

It can also be found on Github: https://github.com/wso2/product-is starting version 5.1.0

Related

application failed to find Chromium-edge browser

I created a sample application to open a webpage on microsoft edge, by following below URL guidance.
https://learn.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/win32
I installed packages using NuGet packet manager as instructed. Everything worked fine on development machine.
Then I copied the exe of my sample application and the library "WebView2Loader.dll" into testing machine, which has Microsoft edge Version 83.0.478.50 (Official build) (64-bit). I got "ERROR_FILE_NOT_FOUND" error, means "Either it failed find the edge installation or version is Not compatible with SDK version". This error is on call CreateCoreWebView2Environment(), which supposed to find browser.
I am trying to find out why it is not working when it has higher version of than minimum required version. As per documentation, minimum required version of edge is 82 I have 83.0.478.50.
Let me know what I am missing on test environment? should I set any environment variables? I tried find online if there any environment variables required, couldn't find any.
Edit:
The current version Microsoft.web.webview2 SDK is 0.9.488. The testing box has edge version 83.0.478.50. I understand that I need to update my edge version on Testing machine.
What version of the SDK package are you using?
The way to find out the minimum version of the browser for a given SDK package is to look at the build numbers. For example:
SDK version 0.9.538 requires Edge n.n.538.n+
More details can be found here:
https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/versioning
CreateCoreWebView2Environment or CreateCoreWebView2EnvironmentWithOptions returns 'FILE_NOT_FIND'?
You need webview2 runtime. You should download WebView2 Runtime installer (Preview) and then run it.
Separate webview2 runtime is not necessary if there is a fully functional Microsoft edge(Chromium). But the stable channel Microsoft edge(Chromium) is not supported by now, as the webview2 is in its preview stage.

Sonar runner is not listing the CxxCppCheckSensor while runner is started

I am new to sonar, i have installed sonarqube on RHEL 7 machine and its version is 5.1.1.
and the runner's version is 2.4.
I have four cpp related plugins, i tried with each one,
sonar-cxx-plugin-0.9.4-RC3.jar sslr-cxx-toolkit-0.9.4-RC3.jar
sonar-cpp-plugin-3.6.jar sonar-cpp-plugin-3.5.jar
sonar-cxx-plugin-0.9.jar
nothing seems to be listing the Sensor CxxCppCheckSensor . i need this for integrating cppcheck with the sonar. my cppcheck version is 1.68.
i have included sonar.cfamily.cppcheck.reportPath = in my sonar.project.properties file too.
Am I doing something wrong here ? Please help me out.
1.And do these cpp plugins needs license or trial key for proceeding?
2. Can cppcheck's xml report alone be viewed in sonar's dashboard?
Thanks in advance :)
sonar-cpp-plugin correspond to the commercial plugin and of course needs a license, sonar.cfamily.cppcheck.reportPath property is only for the commercial plugin.
sonar-cxx-plugin correspond to the community C++ plugin and has different properties.
Do not mix the two different plugins and documentation, pick one and follow one documentation installing only one of them.

Trying to switch from Xunit.KRunner to xunit.runner.kre?

Today after updating our projects it seems Xunit.KRunner is no longer available on NuGet. We checked the Microsoft projects and it looks like they are using the xunit.runner.kre package. When trying to install this the xunit.assert assemly is failing to download from Nuget. Any suggestions to get this working? I am guessing that the versions are messed up.
Here are my nuget package locations:
I'm also using the beta2 version of the kre.
There is/was an issue with the new xunit.runner.kre and VS CTP 5. See below discussion:
https://github.com/aspnet/Testing/issues/65
xunit.runner.xre is available only on myget/vnext feed. Include that in the Nuget.config that you should be able to restore the package
By running on the beta2 kre you're then having mismatched dependencies. If you look at the versions of your xunit bits they're all beta3. I'd recommend upping your kre to beta3 to fix your issue (will affect which packages your app pulls in).
Also as a side note I'd recommend ensuring your nuget.org/api/v2/ feed is enabled (in the SS you posted it wasn't). There's currently an issue where it'll occasionally disable itself; has definitely made my life frustrating several times when things don't build :).

How to build WSO2 4.X from source?

We have been trying to build wso2 (various products) from source to no avail.
I have looked for information all over (with assistance from Google) and followed the few instructions we have found but without luck.
I have, on the other hand, found various posts discussing this process and how error prone it is due to this or that.
Don't get me wrong, WSO2 looks like an amazing framework to work within but confidence in the project is not boosted by the complicated/error prone/enormous build process.
Does anyone here have a good description/recipes to build the 4.x.x version of carbon?
I really don't think it is intentionally hard to build. The product is huge with tons on developers working on it. Most of the issues seem to be around erroneous commits by developers. My understanding is that WSO2 will be changing the development process to make it more robust (source: Manoj's Comment).
The WSO2 set of products are awesome and well engineered. They can be built, but you will need to persist and resolve issues along the way.
It took me quite a few days to get a working build in my spare time. Here is a rough sequence of tasks to perform:
1) Checkout the 4.0.0 branch:
svn co https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0
svn co https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0
svn co https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0
For more information of the code base high level structure, see here: what is wso2 'orbit', 'kernel' and 'platform'?
2) Decide which version of a product you need to build - Which version of patch-release to build?
3) Build the three separate code bases (build the main branch plus patch-release versions below your required version).
build orbit 4.0.0/ Then build orbit/patch-release/4.0.x
build kernel 4.0.0/ Then build kernel/patch-release/4.0.x
build platform 4.0.0/ Then build platform/patch-release/4.0.x
Note to build:
use Java 6 (Use Sun/Oracle JDK - not OpenJDK)
use Maven 3
set MAVEN_OPTS to -Xms512m -Xmx1024m -XX:MaxPermSize=1024m
you will probably need to use the following mvn command line: mvn clean install -Dmaven.test.skip=true
You will find the built distribution zip file here: ROOT/distribution/product/modules/distribution/target/ (source: WSO2 Carbon 4.1.x - how to make the distribution)
Be prepared to put in the time to hunt down and fixing issues as you encounter them. Most issues seem to be due to maven dependency issues. Using google, you can usually find the answer. Also you post any issues you need help with on stackoverflow.

wso2 - so many maven issues when building from source

I have tried many different combinations of tags and branches, and none of them seem to build successfully first time around.
Question: Is this a known problem when building WSO2 products? If lots of errors are expected, then I know that it's not necessarily me doing something wrong.
EDIT:
Some of my previous stackoverflow posts:
wso2 maven issue building platform patch release 4.0.9 - failure to find org.wso2.appfactory:wso2appfactory-parent:pom:1.0.0
issue running mvn eclipse:eclipse on platform tag 4.0.3
What are the steps needed to build WSO2 Carbon Platform Patch Release 4.0.x?
After finally building a product (Identity Server) from platform branch 4.0.0, I can say: building from source can be difficult. I think this is mainly because:
The code base is huge
Code, files, etc may be checked into svn in a broken state
You have to be prepared when things go wrong to hunt down the problem and have a go at digging in the code, build files, etc to resolve the issue.
When I get a chance, I will put some instructions together which walk through a complete checkout and build of platform from scratch, because I think this will be immensely useful for others wanting to build a product.