- 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>
-
- 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/
-
- 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 1 commit
-
-
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 2 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>
-
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>
-
- 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 2 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>
-
- 04 Oct, 2017 2 commits
-
-
Pawel Winogrodzki authored
Moving global environment configuration common for all platforms into build_common/SConscript and removing repeated lines from service/easy-setup/*. Bug: https://jira.iotivity.org/browse/IOT-1583 Change-Id: I578d7147ca731ec83599a260510fdcbc9b308ddd Signed-off-by:
Pawel Winogrodzki <pawelwi@microsoft.com>
-
koushik.girijala authored
as RA related build option is not valid anymore Change-Id: I9b197b258c575e0f00c443bee5d28c09e1876bb4 Signed-off-by:
koushik.girijala <g.koushik@samsung.com>
-
- 28 Sep, 2017 2 commits
-
-
Senthil Kumar G S authored
Java static analysis fix for easy-setup module. 1. Removed unused imports. 2. Updated log to include error info. 3. Avoided multiple statements in single line. 4. Removed unused methods/code. 5. Proper order of java modifiers, etc. Change-Id: Ida08e2084246aca7c5f1528bb2efe4c57682c85c Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
Philippe Coval authored
Also introduce ORIGIN for crosscompiler. RPATH can be convenient to avoid developer to deal with environment variables (LD_LIBRARY_PATH or PATH on windows), as we're using them for now. In longer term, this can be replaced by relative pathes, once the installation process is fixed (at least on systems supporting ORIGIN). It was tested on yocto poky master. Bug: https://jira.iotivity.org/browse/IOT-1745 Change-Id: Ibaabc31b8dc744267e4c6c1c682d2090da9ada96 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Origin: https://gerrit.iotivity.org/gerrit/#/c/21589/
-
- 27 Sep, 2017 1 commit
-
-
Senthil Kumar G S authored
Updated JNI file to add iotivity stack version in EnrolleeConfig representation. Updated sample to parse wifi modes and frequencies based on the version. Change-Id: I1580823bdf3309369eb747dca4d3ce1bc3087158 Signed-off-by:
Senthil Kumar G S <senthil.gs@samsung.com>
-
- 26 Sep, 2017 2 commits
-
-
Philippe Coval authored
Change-Id: Idf208ace8c533da9d7587cd1a56aeca81edee9d2 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com>
-
Harry authored
Removal of never used methods and catching exceptions by reference. Change-Id: I10d3c83ce5b14174b6f82a49897738c98a461af7 Signed-off-by:
Harry <h.marappa@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21233Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Senthil Kumar G S <senthil.gs@samsung.com> Reviewed-by:
Phil Coval <philippe.coval@osg.samsung.com> (cherry picked from commit e450d106)
-
- 19 Sep, 2017 1 commit
-
-
George Nash authored
Fixed memory leak found using valgrind. The memory leak was due to the provisionInit function calling sqlite3_open_v2 without calling sqlite3_close There was not provisionClose method in the C++ so it was added to the OCSecure class. To do this OCClosePM was also added to that the code could be used in Windows. The provisioningClose call was added to all of the samples that are currently calling provisioningInit(dbfile) While updating the some of the android samples the tab depth was cleaned. Note the unit tests are not following one of the most basic rules of unit testing. Tests should be isolated and independent. When the cleanup code was added to the unit tests it broke tests that run later. Each individual unit test should be able to run independent of all the other unit tests order should not matter. This commit does a little to break the dependency tests have on other tests, but it did not fix it completely. Many tests rely on the DB being left in a state by another test as well as passing test state to global variables that hold information outside the individual test. Change-Id: Id2c05ecc611516a5cf892ae70bb4e0cd0c115752 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 18 Sep, 2017 1 commit
-
-
Abhishek Pandey authored
JIRA IOT-2721: https://jira.iotivity.org/browse/IOT-2721 Change-Id: Ie9309fc6830b5473e8b7482b798d59bb2aed2e13 Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com>
-
- 15 Sep, 2017 2 commits
-
-
Abhishek Pandey authored
IOT-2703: https://jira.iotivity.org/browse/IOT-2703 [Easy Setup] Adding Ownership transfer failure reason logs - Mapped failure due to Timeout to ESResult::ES_COMMUNICATION_ERROR. - Added error logs for developers to know failure reason. - Optimized for loop with a break when matching resource is found. Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com> Change-Id: I0e1e0fce5834acc625347198497a9e420b54909c
-
Abhishek Pandey authored
IOT-2713: https://jira.iotivity.org/browse/IOT-2713 - Applied "href" and "rep" to POST request using oic.if.b (batch interface). - Updated the handling for provision wifi & cloud properties - Verified Enrollee & Mediator on Linux with sample apps. - Linux Unit tests verified locally. - Also fixed on build warning in easysetup_x.c (sample app). Change-Id: I5e5d7c495d45dd8eb41ca5bcce2af8e18fd53c71 Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com>
-
- 13 Sep, 2017 2 commits
-
-
Ankur Bansal authored
Add new mandatory properties to oic.r.wificonf - swat: Enrollee's supported Wi-Fi Authentication Types - swet: Enrollee's supported Wi-Fi Encryption Types - Update Enrollee sample apps (Linux and Tizen). Note: This impacts Easy Setup Enrollee API "ESSetDeviceProperty". Change-Id: Ic765671dfbe3a4e1c8a857ef6ae1d3dcb9ba783e Signed-off-by:
Ankur Bansal <ankur.b1@samsung.com>
-
Ankur Bansal authored
- Change properties from integer to string enums: swmt, swf, wat, wet - Change supported frequencies from single value to array. - Create type converters for enum to string and string to enum. - Remove EOF marker in enum WIFI_MODE. - Update Enrollee sample apps (Linux and Tizen). - Cleanup some unused code in easysetup.c. - Fixed unit test cases for Enrollee and Mediator. Note: This impacts Easy Setup Enrollee API "ESSetDeviceProperty". Thanks-To: Abhishek Pandey <abhi.siso@samsung.com> Change-Id: Iea8191616cea89a0273e0f5486bd259735e914fa Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com> Signed-off-by:
Ankur Bansal <ankur.b1@samsung.com>
-
- 11 Sep, 2017 1 commit
-
-
Abhishek Pandey authored
- Updated mediator logic based on version checking API from OCResource class. - Get Configuration Response parsing updated as per spec version. - provisionProperties updated as per spec version Change-Id: Iad208bbeb08e3dbdb749bf6d280c5e60231164a2 Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com>
-
- 07 Sep, 2017 1 commit
-
-
Ankur Bansal authored
Add handling for "oic.if.rw" for wificonf, coapcloudconf. Add handling for "oic.if.r" for devconf. Slightly refactor ProcessGetRequest to move out common part. Update CheckEhRequestPayload to check for all supported interfaces in generic manner. Update "if" property of response of resources. (This is still work in progress for response of EasySetup Resource, will be updated in a separate commit). Change-Id: I501a6ba3aff8e84c253f962d383782b2c6f49206 Signed-off-by:
Ankur Bansal <ankur.b1@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/22265Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Abhishek Pandey <abhi.siso@samsung.com> Reviewed-by:
Ashok Babu Channa <ashok.channa@samsung.com>
-
- 06 Sep, 2017 1 commit
-
-
George Nash authored
On linux pthread_t is not a pointer type so assigning it as NULL is an error. pthread_t should be assigned using the functions like pthread_create which is already done. Change-Id: I55559a3ed3d4de82dd4863b1ee6e0ce11dd1726b Signed-off-by:
George Nash <george.nash@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21739Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Abhishek Pandey <abhi.siso@samsung.com> Reviewed-by:
Mats Wichmann <mats@linux.com> Reviewed-by:
Rick Bell <richard.s.bell@intel.com> (cherry picked from commit 2dc503e6) Reviewed-on: https://gerrit.iotivity.org/gerrit/22185
-
- 29 Aug, 2017 1 commit
-
-
Pawel Winogrodzki authored
Moving global environment configuration common for all platforms into build_common/SConscript and removing repeated lines from service/easy-setup/*. Bug: https://jira.iotivity.org/browse/IOT-1583 Change-Id: I76cf82bacb36d95574f5d716c01cd1d7fb7e4f5f Signed-off-by:
Pawel Winogrodzki <pawelwi@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21325Reviewed-by:
George Nash <george.nash@intel.com> Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Mats Wichmann <mats@linux.com> Reviewed-by:
Phil Coval <philippe.coval@osg.samsung.com>
-
- 18 Aug, 2017 1 commit
-
-
Alex Kelley authored
Change-Id: I008588e1479e4bd55c4ca58d3227e670dc35e9ed Signed-off-by:
Alex Kelley <alexke@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21935Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 02 Aug, 2017 1 commit
-
-
Philippe Coval authored
Designate securevirtualresourcetypes.h as a "Public Experimental" header. Those headers are needed for C applications in secured mode (using OCRepPayloadCreate from ocpayload.h) Observed error is: .../resource/stack/ocpayload.h:42:40: \ fatal error: securevirtualresourcetypes.h: \ No such file or directory For C++ app there is no such requierements Bug: https://jira.iotivity.org/browse/IOT-1745 Change-Id: I6a37fa82e3a1065541dba8be541ff4ac90e3294a Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Signed-off-by:
Dan Mihai <Daniel.Mihai@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21549Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Ziran Sun <ziran.sun@samsung.com> Reviewed-by:
Mats Wichmann <mats@linux.com> Reviewed-by:
George Nash <george.nash@intel.com> Reviewed-by:
Martin Rösch <martin.roesch@kistler.com> Reviewed-by:
Randeep Singh <randeep.s@samsung.com>
-
- 31 Jul, 2017 1 commit
-
-
Abhishek Pandey authored
[IOT-2458] OCRepPayloadSetIntArray() did not allow empty array. Fixed by not returning false when dimTotal is 0 and instead letting the function to get executed when input array is NULL & dimTotal is 0. Also fixed the usage of API in easy setup enrollee code. Now using OCRepPayloadSetIntArrayAsOwner() instead of OCRepPayloadSetIntArray() as the later duplicates the memory which can be avoided "by giving payload ownership to stack". Added unit test in cbortests to test new API behavior. Change-Id: If5352b1faf5a9355dd0f8a22882a6af545df6d29 Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21591Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Uze Choi <uzchoi@samsung.com> Reviewed-by:
Todd Malsbary <todd.malsbary@intel.com> Reviewed-by:
Harish Marappa <h.marappa@samsung.com> Reviewed-by:
Ashok Babu Channa <ashok.channa@samsung.com>
-
- 28 Jun, 2017 1 commit
-
-
Mats Wichmann authored
[Mats Wichmann] These reformattings are not supposed to change any behavior, but they are not all purely whitespace. For example, consecutive lines of Append(LIBS= or Append(CPPPATH= were collapsed into one call with multiple entries in the list. A few comments were beefed up, as were occasional informative messages. Import of run_test moved to top (Python style), except the two scripts where the unittest code is not isolated to a subdirectory - the import has to be protected so it is only called for targets that support the tests - the import fails on Tizen for some reasons. Change this when separate patches to isolate unit test building/running are merged. [Philippe Coval] Ported to 1.3-rel from master Conflicts: service/easy-setup/enrollee/unittests/SConscript service/easy-setup/mediator/richsdk/unittests/SConscript service/notification/cpp-wrapper/unittest/SConscript service/notification/unittest/SConscript service/resource-container/unittests/SConscript service/resource-encapsulation/src/common/SConscript service/resource-encapsulation/src/serverBuilder/SConscript service/resource-encapsulation/unittests/SConscript Change-Id: Ifaf3eb2d837e773a06e59b50132f0d3c8881fdd8 Signed-off-by:
Mats Wichmann <mats@linux.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/20553Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
George Nash <george.nash@intel.com> Reviewed-by:
Uze Choi <uzchoi@samsung.com> Bug: https://jira.iotivity.org/browse/IOT-1745Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21001Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-