- 23 Nov, 2017 2 commits
-
-
Senthil Kumar G S authored
For requests which come directly to child resources (/WiFiConfResURI, /CoapCloudConfResURI and /DevConfResURI), this patch will remove the "href" property from the response as spec doesn't mandate the addition of "href" in the response. And also, CTT expects the response from direct request to any child to be same as the response which comes for the same child through collection. For example: Properties in "rep" for '/WiFiConfResURI' should be same as the properties in the direct response for GET from '/WiFiConfResURI' resource. Currently "href" is not included in "rep" for child resources. But it is included in the direct response for GET/POST. When CTT compares both responses, it finds them different due of "href". This patch resolves the issue and still conforms to spec. Change-Id: I017bed18d3e0ad568b662a03d9bd80134538a8c0 Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
Senthil Kumar G S authored
1. If one of the resources in the POST request over batch has invalid properties, then the response should include an empty "rep" for those resources. For all other resources with valid properties in the request, "rep" should include all the properties. 2. Allowing "cn" property to be set to ES_CONNECT_NONE. Change-Id: Ib819bed7a126717cc56df0fb32b3d9f3ec570682 Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
- 20 Nov, 2017 2 commits
-
-
Senthil Kumar G S authored
Required to make the successful execution of the CTT test case which expects observe notification from DevConf. As DevConf is a read-only resource, it is not possible to update its properties and hence there can't be any observe notifications. So this change makes DevConf non-observable. Change-Id: I8c73865aa995a61729e41063dfa0a74d0bea1400 Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
Senthil Kumar G S authored
When there is an update in the properties of child resources (WifiConf, CloudConf) of collection(EasySetup), a notification should be sent to EasySetup's observers. Change-Id: I9d4d4ab0b0f7e21995d29376819e014c90408d9c Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
- 09 Nov, 2017 1 commit
-
-
Habib Virji authored
Add ttl parameter to RD client APIs. Bug: https://jira.iotivity.org/browse/IOT-1935 Change-Id: Ic189cebebbcf8127bea1d127dd11a116e09743bb Signed-off-by:
Habib Virji <habib.virji@samsung.com> Signed-off-by:
Todd Malsbary <todd.malsbary@intel.com>
-
- 08 Nov, 2017 1 commit
-
-
Ibrahim Esmat authored
Cherry Pick Mats change from master to enable building with SCons 3.0 in 1.3-rel branch. This change and the change in review https://gerrit.iotivity.org/gerrit/#/c/22809 will be needed to merge together. With these 2 changes merged to 1.3-rel, you can successfully build IoTivity with SCons 3.0. Which will also allow you to build the UWP versions of the libraries needed for UWP Apps. Change in master: Prepare for scons3: change prints and others In preparation for scons3, recently released, modify remaining print statements by surrounding them with parens so they look like function calls. That takes care of the scons3 syntax requirement. The remaining instances of the sequence "print FOO; Exit(1)" were changed to "msg = FOO; Exit(msg)" - this helps with the change by not even using the print statement, and by giving the message to the output function, it is sent to the error stream rather than the output stream. Calls to dictionary keys() and values() are now wrapped in list(), on Python 3 these return special objects, not the expected list. That's harmless to Python 2 usage. The old exception format "except FooErr, err" is no longer supported; since the Python 3 format "except FooErr as err" has been available since Python 2.6, there is no problem switching these. Some instances of using the commands module in extlibs changes to use subprocess module. Change is transparent. A couple of instances of filter(lambda ...)) were changes to a python list comprehension, this is considered preferred for Python 3 (change was suggested by a conversion tool) Note on print() change: When running with Python2, the print statement is still used. That has a bit of an impact: print(a) is just prints the argument, but print(a, b, c) is interpreted as printing a tuple (a, b, c), so we could see: >>> print "This", "is", "a", "test" This is a test >>> print("This", "is", "a", "test") ('This', 'is', 'a', 'test') The second is not pretty. You can make Python2 code use the function instead of the statement: >>> from __future__ import print_function >>> print("This", "is", "a", "test") This is a test but that's a pain, so the small number of existing prints which used a comma as argument separators were updated to use addition, so now we're concatenating a string to produce one arg instead of supplying multiple "arguments" that would be misinterpreted as a tuple in print(). It's fine to add the import statement if it's needed. Change-Id: Idac00e1389b79ee65da4a2eb6ef3246551b66843 Signed-off-by:
Mats Wichmann <mats@linux.com> Signed-off-by:
Ibrahim Esmat <iesmat@microsoft.com>
-
- 06 Nov, 2017 1 commit
-
-
Senthil Kumar G S authored
If a post request comes with read-only properties, OC_EH_BAD_REQUEST(400) will be sent. Change-Id: I26cd3f8f7c24f8d197a39ac96a27c80018d62f2a Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
- 30 Oct, 2017 2 commits
-
-
Abhishek Pandey authored
JIRA IOT-2847: https://jira.iotivity.org/browse/IOT-2847 Updated updateEasySetupResource() to process "rep" property which is mandatory as per batch schema. Change-Id: I0371e68106728d375a390ac395c256ea5e2361c6 Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com>
-
Philippe Coval authored
The file from "out" dir will be also installed to system include path using scons install (to /usr/include/ on linux) Bug: https://jira.iotivity.org/browse/IOT-2599 Change-Id: Icddfb9354f47fd40ba998fe336b4963be7ade871 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Origin: https://gerrit.iotivity.org/gerrit/#/c/21989/
-
- 27 Oct, 2017 2 commits
-
-
Jay Sharma authored
1. Indentation fixes. 2. Uninitialized variable fixes Bug: https://jira.iotivity.org/browse/IOT-2810 Change-Id: Ibccf1bc11e590cf1b282e77cac3a9901ccf29fa2 Signed-off-by:
Jay Sharma <jay.sharma@samsung.com>
-
jake authored
- Be used OICFree without NULL checking. [Philippe Coval] Conflicts: service/notification/src/provider/NSProviderSubscription.c Change-Id: I1ce65d0e41a3b9f276a2b517d7b3d1c06faa92e6 Signed-off-by:
jake <jaehong2.lee@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/18239Reviewed-by:
JungYong KIM <jyong2.kim@samsung.com> Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Phil Coval <philippe.coval@osg.samsung.com> Reviewed-by:
Uze Choi <uzchoi@samsung.com> (cherry picked from commit acbf9ffd)
-
- 25 Oct, 2017 2 commits
-
-
George Nash authored
Documented all the functions referencing the native code. Note the OcProvisioning setPinType method had a return value int. The was returning the return value of the native call that was the status. Due to the way the code was writen the only value that could be returned was when things worked as expected. All other values were thrown so the return value was un-needed. The function was changed to have a return type of void. Bug:https://jira.iotivity.org/browse/IOT-2838 Change-Id: I3b5955a336661574dde9f70c87b6ead3dcd5ea7b Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
The coding standard states: Code must compile with no warnings. Without flags forcing warnings off. see: https://wiki.iotivity.org/iotivity_c_coding_standards Its possible that using an untested version of gcc could result in build warings that are not yet fixed. For this reason the build option ERROR_ON_WARN was added to make it possible to turn off the -Werror flag. This should only be used locally an not changed on the CI build. Due to some bugs in older version of gcc some warnings are forced off when using an older version of gcc. This change will force code to follow the coding standard of building with no warnings. The coapHttpParser code produces a build warning that currently is not solved. When building the coap_http_proxy library the -Werror build flag is removed. Don't use the -Werror build option for extlib yaml code. Don't use the -Werror build option for coap library Change-Id: Ifcc25ed7e5b8637ac4383a7bfa51ace105ed9458 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 23 Oct, 2017 1 commit
-
-
Harry authored
Java ESResult is not in sync with C++ SDK ESResult enum values. Change-Id: I0ab0e1ba88858fc8c511a56d046d40c1708760cd Signed-off-by:
Harry <h.marappa@samsung.com>
-
- 19 Oct, 2017 9 commits
-
-
George Nash authored
Fix the missing-field-initializers warning in the simulator code. OCDeviceInfo contains four values not two. Bug: https://jira.iotivity.org/browse/IOT-2539 Change-Id: Ifab39f7a5eb054eeb301cece2123e9cc6d19011c Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
Remove the unused-parameter warning from the simulator code Bug: https://jira.iotivity.org/browse/IOT-2539 Change-Id: Id1c3757e41443ae53126ac1ef1117e387f564327 Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
Fixed the switch warning in the simulator code. In the request_model_builder the other posible values for the switch are not expected if they occure print an error and exit assert. Just in case it is a release build an empty string is returned. In simulatory_utils the un-handled case statments were added to the switch. Bug: https://jira.iotivity.org/browse/IOT-2539 Change-Id: Iebb79bd22410727c65c33ed73ec8704a1b8a33a4 Signed-off-by:
George Nash <george.nash@intel.com>
-
abitha.s authored
Change-Id: I4aa2f68b36b70946c0bcee0e9da04feef596ea85 Signed-off-by:
abitha.s <abitha.s@samsung.com>
-
Philippe Coval authored
As not supported on clang-3.5 Bug: https://jira.iotivity.org/browse/IOT-1745 Change-Id: I7bb4f53a0a0e2eba56e670f87ac163a211173fb6 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21561Reviewed-by:
George Nash <george.nash@intel.com> Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com> (cherry picked from commit 99bfbb05)
-
Philippe Coval authored
This change is harmless and done to test build process Bug: https://jira.iotivity.org/browse/IOT-2279 Change-Id: Ia8889790f19d6e02a0fc5c2d857ac19e717e2ec4 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/19987Tested-by:
jenkins-iotivity <jenkins@iotivity.org> (cherry picked from commit 68649b7a)
-
Philippe Coval authored
Bypass the part which is crashing clang-3.5, and use reference Change-Id: I8578509cb642be5d8dbaf1d5fbcdd944377b0fc8 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com>
-
Harry authored
Changes are mostly related to indentation, adding curly braces to single line conditional blocks. Change-Id: I4fcade68805dc3c1a6970a34683e519708a609f7 Signed-off-by:
Harry <h.marappa@samsung.com>
-
Harry authored
Changes are mostly related to indentation, catching exception by reference-to-const. Change-Id: I3aa27b58f507551ed2ed677c4b2c89b151b87bf3 Signed-off-by:
Harry <h.marappa@samsung.com>
-
- 18 Oct, 2017 3 commits
-
-
George Nash authored
C99 spec suggests the type long long int should be at least 64 bits but may be more. On some platfroms it might be 128-bits. In printf %lld could be interpreted as 64-bits or 128-bits To fix this the PRId64 macro from inttypes can be used. Bug: https://jira.iotivity.org/browse/IOT-2539 Bug: https://jira.iotivity.org/browse/IOT-2817 Change-Id: Ie25ea50630f97b4dde866d8042af1567b18522d9 Signed-off-by:
George Nash <george.nash@intel.com>
-
Abhishek Pandey authored
JIRA IOT-2742 https://jira.iotivity.org/browse/IOT-2742 - Enabled support for self link in collections. - API OCLinksPayloadArrayCreate() modified to allow self links. - New parameter (bool) in the API now allows to have a self link with "rel":["self", "item"], in links array as per OCF Core Spec. Change-Id: I1f2e02dd33c993dc4b28fbc447b8d286c1f7f804 Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com>
-
Ankur Bansal authored
Update oic.r.easysetup baseline and link list response to correctly fill links property. Use OCLinksPayloadArrayCreate API to create the links payload for batch & link list interface. OCLinksPayloadArrayCreate API internally takes care of creating the most part of payload based on the properties of the resource. This will replace the logic of creating each property of links payload for each of the easy setup resources from the code. In link list interface response, add handling for both OCF & OIC response (for backward compatibility). Bug:https://jira.iotivity.org/browse/IOT-2711 Change-Id: I46ca2e2d635cb78e8c7fc7c5ef95d9e16327abb9 Signed-off-by:
Ankur Bansal <ankur.b1@samsung.com> (cherry picked from commit 787a73bd)
-
- 17 Oct, 2017 3 commits
-
-
George Nash authored
This will turn of the type-limits warning in very targeted area in the code. The code is checking that the user passed in value is within limits. Although it is very unlikely to be outsite the expected values it is possible. Tthis selectivly shuts off the warning for the two functions the warning is found in. Bug: https://jira.iotivity.org/browse/IOT-2539 Change-Id: Id5da64534c05dffd479d911112d5569305c36d48 Signed-off-by:
George Nash <george.nash@intel.com>
-
Harry authored
Fixed all the static analyzer reported issues in Simulator native code. Change-Id: I04c6008c36bb5880bfabee9753433804d43a46bf Signed-off-by:
Harry <h.marappa@samsung.com>
-
George Nash authored
This fixes moved the return value out of the if statment so the result of the operation will be returned even if ehRequest->query is null. Bug: https://jira.iotivity.org/browse/IOT-2539 Bug: https://jira.iotivity.org/browse/IOT-2714 Change-Id: I018776e8800aa51ed9a49a55554949fb869b9495 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 16 Oct, 2017 6 commits
-
-
Jay Sharma authored
Java static analysis fix for resource-encapsulation:. 1. Updated exception handling for logging. 2. Updated sample applications and unit test cases. Bug: https://jira.iotivity.org/browse/IOT-2745 Change-Id: I1aeb1b8b2b3338515cbc9733ef8fa032fd6f068e Signed-off-by:
Jay Sharma <jay.sharma@samsung.com>
-
Senthil Kumar G S authored
1. Added log in exception catch blocks. 2. Merged conditional blocks and removed unnecessary conditions. 3. Incorporated proper usage of access specifiers such as final and static. Change-Id: I78be7b865a30c1f8e746ed62213fb576d11505f8 Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
abitha.s authored
Change-Id: Ibb2a3e429702a0968a9aacc9ccce2c962a8db36b Signed-off-by:
abitha.s <abitha.s@samsung.com>
-
abitha.s authored
1. Indentation fixes. 2. Uninitialized variable fixes Change-Id: Iea41f46fcd1540cf8ef3985a030fa7b07e399681 Signed-off-by:
abitha.s <abitha.s@samsung.com>
-
abitha.s authored
1. Indentation fixes. 2. Uninitialized variable fixes Change-Id: Icfeb1b998be90411e6f1c16d37f79ef0a47f699c Signed-off-by:
abitha.s <abitha.s@samsung.com>
-
George Nash authored
The -Wformat= warning is given when the conversion specifier in a printf or scanf command does not match the value actually passed in. In this commit all of the issues are found in LOG functions. If type passed in was a variable size parameter like a pointer or size_t. The the PRIuPTR value from the inttypes.h header is used. For ssize_t variables the PRIdPTR was used. Bug: https://jira.iotivity.org/browse/IOT-2539 Change-Id: I4977253ac7ee68d2e80a26a0963b770b2ce87032 Signed-off-by:
George Nash <george.nash@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21771Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com> (cherry picked from commit 60d89aa8 )
-
- 15 Oct, 2017 2 commits
-
-
Harry authored
Fixed all the static analyzer reported issues in ES native code. Change-Id: Ida916ed651fcdf4f02f3549ce987511ca8d5eaa0 Signed-off-by:
Harry <h.marappa@samsung.com>
-
Senthil Kumar G S authored
Reason for crash:- OcProvisioning.provisionClose() should be called only when iotivity stack is built with security. But mediator android app invoked it without checking whether the stack is built with security. Change-Id: Ic2af9d649a4dce79d2bfd9daebc2c80b7dfaa2eb Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
- 13 Oct, 2017 3 commits
-
-
Senthil Kumar G S authored
i) Added error codes to represent invalid auth type and enc type. ii) Added logic to send OC_EH_BAD_REQUEST(400) without payload if POST request comes to "/WiFiConfResURI" or "/EasySetupResURI" with invalid auth type or enc type. Also updated the comments for existing error codes. Change-Id: I246af9a777f1aba1f18474ded74e38c4a5ed9b2c Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
Abhishek Pandey authored
JIRA IOT-2797: https://jira.iotivity.org/browse/IOT-2797 Change-Id: I1e2a1b7d4edb4971be616a2563227e1bc55a80d9 Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com>
-
Philippe Coval authored
Track memory allocations using oic_malloc, oic_string. This will suppress valgrind warning about using delete on C string, previously, ocEntityHandlerRequest.query was allocated using C strdup, so free should be used not C++ delete[]. Conflicts: service/resource-encapsulation/src/serverBuilder/unittests/RCSResourceObjectTest.cpp Bug: https://jira.iotivity.org/browse/IOT-2267 Origin: https://gerrit.iotivity.org/gerrit/#/c/22129 Change-Id: I86a3a3dfee8492656ee89de5913617369bf1fbb3 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/22129Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Mats Wichmann <mats@linux.com> Reviewed-by:
Ashok Babu Channa <ashok.channa@samsung.com>
-