Re: [Dev] Two critical issues in IS 5.3.0 SCIM 1.1 implementation

2017-08-16 Thread Sathya Bandara
Hi, The issue [1] occurs due to invalid data format. It is not identified as a bug since as mentioned in the doc, similar to user create requests, we need to include json data within single quotations and not double quotations to avoid json parsing exceptions.With the correct format it is possible

Re: [Dev] Two critical issues in IS 5.3.0 SCIM 1.1 implementation

2017-08-16 Thread Johann Nallathamby
On Wed, Aug 16, 2017 at 12:33 PM, Sathya Bandara wrote: > Hi, > > The issue [1] occurs due to invalid data format. It is not identified as a > bug since as mentioned in the doc, similar to user create requests, we need > to include json data within single quotations and not double quotations to >

Re: [Dev] [IOTS-APIM]Configuring WSO2 IoT Server with WSO2 Identity Server get "Configuration parameters need to be defined in Authenticators.xml" error

2017-08-16 Thread Geeth Munasinghe
Can you please attach your api-manager.xml file ? On Wed, Aug 16, 2017 at 12:02 PM, 姜仁杰 wrote: > hi all: > > i configured WSO2 IoT Server with WSO2 Identity Server according > to https://docs.wso2.com/display/IoTS310/Configuring+WSO2+IoT+ > Server+with+WSO2+API+Manager. But I get the fo

Re: [Dev] Two critical issues in IS 5.3.0 SCIM 1.1 implementation

2017-08-16 Thread Pulasthi Mahawithana
Hi Johann, I also experienced this same problem with double quote sometime back. Yes, it's because the way curl works. When double quotes are used, curl was dropping the quotes. However, due to the way we parse the payload, it still worked as long as we don't have any character troubling the json

Re: [Dev] [IOTS-APIM]Configuring WSO2 IoT Server with WSO2 Identity Server get "Configuration parameters need to be defined in Authenticators.xml" error

2017-08-16 Thread 姜仁杰
hi: For APIM IoT - APIM - APIM 2.1.0 Features pom file There is another bug: carbon.device.mgt.version.2.0.74 - SNAPSHOT can not be found in the maven nexus repository, I manually changed it to carbon .device.mgt.version.2.0.74 2017-08-16 15:33 GMT+08:00 姜仁杰 : > hi Geeth: > > i am tried in t

[Dev] Display the roles of a custom user store for Identity Server

2017-08-16 Thread Thomas LEGRAND
Hello everybody, I am writing a custom user store for the Identity Server and I successfully retrieved my list of users from my database. But when I try to display the roles of a user by clicking on the "View Roles" button [1], only the internal roles are displayed. I implemented the methods doGet

Re: [Dev] Two critical issues in IS 5.3.0 SCIM 1.1 implementation

2017-08-16 Thread Sathya Bandara
Hi Johann, When we send data within double quotations since the quotations are dropped by curl, we get the payload as follows. *{schemas: [urn:scim:schemas:core:1.0], name : {familyName: Tester},userName: hasinitg,meta: {attributes: []}}* So when we try to parse the schemas array in payload, JSO

Re: [Dev] [IoTS] Maven Archetype based RaspberryPi Plugin Status.

2017-08-16 Thread Sameera Wickramasekara
Hi Devs, I would like to update rest of the changes I made in order to complete the task. in this period the name of the device type was changed from 'raspberrypicodebsed' to 'sampledevice' as per comments in the Code review. The numbering is continued from the previous mail. 6.Change the secured

[Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Megala Uthayakumar
Hi All, Currently we are working on writing a mobile application store for IOT server. For that we have decided to save the images and binary files related with applications in the file system(This decision was taken considering the file size). File location will be derived from a configuration. W

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Nuwan Dias
When you have two nodes of the IoT server running for HA, and if a given image/file is stored on the file system of one server, how do you make that image/file available for a request that's served via the other server? On Wed, Aug 16, 2017 at 4:54 PM, Megala Uthayakumar wrote: > Hi All, > > Cur

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Harshan Liyanage
Hi, @Megala : I think having too many folders (lets say if there are 100's of apps) won't be a good idea. So I'm +1 with the option 2. As Nuwan has mentioned we need to think of serving this on HA mode. So if we are to go with filesystem based approach we might need to have NFS in-between IoT nod

Re: [Dev] [IOTS-APIM]Configuring WSO2 IoT Server with WSO2 Identity Server get "Configuration parameters need to be defined in Authenticators.xml" error

2017-08-16 Thread Rasika Perera
Hi Jiang, i configured WSO2 IoT Server with WSO2 Identity Server according to > https://docs.wso2.com/display/IoTS310/Configuring+WSO2+IoT+ > Server+with+WSO2+API+Manager. But I get the following error We are bit confused on what you are trying to achieve. Are you trying to connect an external W

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Farasath Ahamed
On Tue, Aug 15, 2017 at 8:22 PM, Farasath Ahamed wrote: > Tested with Kernel 4.4.16, -Dhttpclient.hostnameVerifier=AllowAll > parameter is honoured and worked fine. > I had an offline discussion with Chandana and Thusitha and go to know that *-Dhttpclient.hostnameVerifier=AllowAll* is not suppor

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Megala Uthayakumar
Hi Nuwan, As mentioned by Harshan user needs to configure NFS when configuring this in HA setup. We do accept local file path or NFS url in the configuration file for the path. Thanks. On Wed, Aug 16, 2017 at 5:01 PM, Nuwan Dias wrote: > When you have two nodes of the IoT server running for HA

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Nuwan Dias
If you require NFS anyway (for other usecases), then I think its fine. But if you're introducing the complexity of NFS just for this use case, then I think it would be an overkill. BTW, not every one is ok with setting up a NFS. So if you need to share files between nodes you may want to have some

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Chathura Dilan
Hi Megala, If you go with the first approach, could you please mention what are the parameters you use to get the image? It is always better to get the image with a random parameters so it prevents hackers from guessing image names. @Nuwan. Some binary files could be large as 500MB in size. So we

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Charitha Goonetilleke
Hi Nuwan, As our previous experience with similar approach we have used to store binaries in DB, it cause for scallability issues in later when growing the size of the DB in GBs. So storing files as binaries in DB is highly depending on the DB engine used and the growth rate of the data. IMO, thes

Re: [Dev] [IOTS-APIM]Configuring WSO2 IoT Server with WSO2 Identity Server get "Configuration parameters need to be defined in Authenticators.xml" error

2017-08-16 Thread 姜仁杰
hi Perera: *As you said, I'm trying to connect an external APIM (2.1.0) with IOT Server (3.1.0)* *I follow the requirements of the document inside the configuration (https://docs.wso2.com/display/IoTS310/Configuring+WSO2+IoT+Server+with+WSO2+API+Manager

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Waruna Jayaweera
Hi Megala, AFAIU There are two problems as where we store the file contents(supporting clustering cases) and file structure of application content. Storage Location - This should be written as extension where you can store in local directory, FTP, NFS or someone can customize based on requirement

Re: [Dev] [IOTS-APIM]Configuring WSO2 IoT Server with WSO2 Identity Server get "Configuration parameters need to be defined in Authenticators.xml" error

2017-08-16 Thread 姜仁杰
hi all: I have tested it because the API 2.1.0 version and the version of carbon.device.mgt.version incompatible with the problem I said, when the introduction of V2.X series carbon.device.mgt.version will get the error jiang 2017-08-16 20:34 GMT+08:00 姜仁杰 : > hi Perera: > > *As you said, I'm

Re: [Dev] [IOTS-APIM]Configuring WSO2 IoT Server with WSO2 Identity Server get "Configuration parameters need to be defined in Authenticators.xml" error

2017-08-16 Thread Geeth Munasinghe
Hi Jang, Can you please try to use 3.0.67 instead of the 2.0.74-SNAPSHOT for carbon.device.mgt.version. Thanks Geeth On Wed, Aug 16, 2017 at 7:04 PM, 姜仁杰 wrote: > hi all: > > > I have tested it because the API 2.1.0 version and the version of > carbon.device.mgt.version incompatible with the

Re: [Dev] Two critical issues in IS 5.3.0 SCIM 1.1 implementation

2017-08-16 Thread Thilina Madumal
Hi All, What is the JSON parser we are using here? Please specify the version of it as well. IMO JSON parser should be intelligent enough to distinguish this kind of scenarios and should be able to perform correctly. If it is not, then either we should get it fixed or should move to some other Pa

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Nuwandi Wickramasinghe
Hi all, With the latest IS pack built with kernel 4.4.17-SNAPSHOT, we can successfully turn off the hostname verification with *-Dhttpclient.hostnameVerifier=AllowAll*. Need to do some code changes from Identity Server side to make the newly introduced property effective for some components. Sinc

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Megala Uthayakumar
Hi All, Please fine my responses below, *@Nuwan * Is there a problem is storing this file on the DB instead of the FS? As explained by Chathura and Charitha main reasoning behind not selecting the database is size of the binary file and yes we will consider other possible ways for supporting thi

[Dev] Critical issues found in Federated OpenID Connect authenticator

2017-08-16 Thread Johann Nallathamby
IAM Team, Following are 3 critical issues I came across with OpenID Connect when setting up a demo for a customer. IMO all these 3 issues need to be fixed for IS 5.4.0. Can someone please confirm if these can be fixed for IS 5.4.0? The fixes are quite simple. [1] https://wso2.org/jira/browse/IDEN

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Kishanthan Thangarajah
On Wed, Aug 16, 2017 at 9:48 PM, Nuwandi Wickramasinghe wrote: > Hi all, > > With the latest IS pack built with kernel 4.4.17-SNAPSHOT, we can > successfully turn off the hostname verification with > *-Dhttpclient.hostnameVerifier=AllowAll*. > What was the original issue? Farasath has followed t

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Nuwandi Wickramasinghe
On Wed, Aug 16, 2017 at 11:45 PM, Kishanthan Thangarajah < kishant...@wso2.com> wrote: > > > On Wed, Aug 16, 2017 at 9:48 PM, Nuwandi Wickramasinghe > wrote: > >> Hi all, >> >> With the latest IS pack built with kernel 4.4.17-SNAPSHOT, we can >> successfully turn off the hostname verification wit

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Muhammed Shariq
On Wed, Aug 16, 2017 at 11:45 PM, Kishanthan Thangarajah < kishant...@wso2.com> wrote: > > > On Wed, Aug 16, 2017 at 9:48 PM, Nuwandi Wickramasinghe > wrote: > >> Hi all, >> >> With the latest IS pack built with kernel 4.4.17-SNAPSHOT, we can >> successfully turn off the hostname verification wit

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Chathura Dilan
I'm +1 with option 2 since we can have a big storage for binary files and small storage for image files. The method of serving images and binary files are for two different things. We can optimize image storage for serving images because images are accessed frequently. Also in terms of security sto

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Chandana Napagoda
Hi Could you please point the fix you have made to address this issue? Regards, Chandana On Thu, Aug 17, 2017 at 7:20 AM, Muhammed Shariq wrote: > On Wed, Aug 16, 2017 at 11:45 PM, Kishanthan Thangarajah < > kishant...@wso2.com> wrote: > >> >> >> On Wed, Aug 16, 2017 at 9:48 PM, Nuwandi Wickra

Re: [Dev] Critical issues found in Federated OpenID Connect authenticator

2017-08-16 Thread Nuwandi Wickramasinghe
Hi Johann, We will address these issues in IS 5.4.0. thanks Nuwandi On Wed, Aug 16, 2017 at 11:35 PM, Johann Nallathamby wrote: > IAM Team, > > Following are 3 critical issues I came across with OpenID Connect when > setting up a demo for a customer. IMO all these 3 issues need to be fixed > f

Re: [Dev] [IOT]Concerns regarding saving the image and binary files in the File System

2017-08-16 Thread Chathura Ekanayake
As Charitha and Waruna mentioned, we will have to implement the storage method as an extension, where it is possible to switch among local file system (with rsync), FTP, S3, etc based on deployment requirements. @ChathuraD: We will not be exposing the actual storage to outside and all accesses wil

Re: [Dev] The input stream for an incoming message is null - EI 6.1.1

2017-08-16 Thread Melodias
Does anybody have any idea what can be wrong? -- View this message in context: http://wso2-oxygen-tank.10903.n7.nabble.com/The-input-stream-for-an-incoming-message-is-null-EI-6-1-1-tp150692p151091.html Sent from the WSO2 Development mailing list archive at Nabble.com. __