IoTKETI / Mobius

oneM2M IoT Server Platform
http://developers.iotocean.org/archives/module/mobius
BSD 3-Clause "New" or "Revised" License
135 stars 87 forks source link

Something Wrong With fanOutPoint #5

Closed shuibiande closed 4 years ago

shuibiande commented 7 years ago

using the Mobius API, i tested group performance,when coming to GETting the fanOutPoint resource,the Mobius has a throw out error.

IoTKETI commented 7 years ago

we will check if you tell us about your testing cases

uguraba commented 4 years ago

Anybody can explain, while Group Get method, how can i get the included Container's ContainerInstances ?

IoTKETI commented 4 years ago

This issue has been resolved. It works fine in the latest version.

IoTKETI commented 4 years ago

Anybody can explain, while Group Get method, how can i get the included Container's ContainerInstances ?

try to group virtual resources of the containers. example of group members are like ["Mobius/cnt1/la", "Mobius/cnt2/la"].

then each latest contentInstance of the containers will be aggregated in the response.

uguraba commented 4 years ago

Hi, i still cannot get containers, contentInstances from group.

First of all, i create a AE with name "ae_test_02", then i create two container in this AE "/Mobius/ae_test_02/thyme_01" and "/Mobius/ae_test_02/thyme_02".

Then i create a group, the request body is below.

{ "m2m:grp": { "rn": "grp_test_070520_02", "mt": 3, "mid": ["Mobius/thyme_01/la", "Mobius/thyme_02/la"], "mnm": 10 } }

and also tried;

{ "m2m:grp": { "rn": "grp_test_070520_02", "mt": 3, "mid": ["Mobius/ae_test_02/thyme_01/la", "Mobius/ae_test_02/thyme_02/la"], "mnm": 10 } }

If i use GET method: https://localhost:7579/Mobius/ae_test_02/grp_test_070520_02 the results will be okay, bu only resources.

Then i tried; GET method: https://localhost:7579/Mobius/ae_test_02/grp_test_070520_02/fopt it results infinite loop [fopt member] socket hang up.

Then i tried; GET method: https://localhost:7579/Mobius/ae_test_02/grp_test_070520_02/fopt/la it gives an error, "resource does not exist (get_target_url)"

I use nCube Thyme and IN-Mobius, should i MN-Rosemary or ASN-Lavender ? Or can i use only ADN-AE-Thyme and IN-Mobius ?

On the other hand, i can get contentInstance with GET method: https://localhost:7579/Mobius/ae_test_02/thyme_01/la it works correctly.

Saifer707 commented 4 years ago

I know i'm late, but @uguraba did you find a solution for this?

uguraba commented 4 years ago

I know i'm late, but @uguraba did you find a solution for this?

Hi, @Saifer707 after I asked the question, @IoTKETI was made a new commit by using this new commit it was worked correctly. However, there are also some issues; while using HTTPS or any other secure connection, the group management part cannot able to connect the other CSE's. I had to code that part individually. Can you explain your problem?

Saifer707 commented 4 years ago

Hi @uguraba. I was working with a prev version of that commit. When i try to get group of ContentInstance with fopt, i get an infinite loop. Now i'm going to test with new part of code in the commit. Thank you so much!

uguraba commented 4 years ago

Hi @uguraba. I was working with a prev version of that commit. When i try to get group of ContentInstance with fopt, i get an infinite loop. Now i'm going to test with new part of code in the commit. Thank you so much!

Hi, as I said that commit solves this issue but if you get an infinite loop; that means your "mid" values are wrong. The value is should be something like this "Mobius/ae_test_02/thyme_01/la"

"la" part is suggested from @IoTKETI https://github.com/IoTKETI/Mobius/issues/5#issuecomment-625076540