platform/framework/web/wrt-commons.git
11 years ago[Release] wrt-commons_0.2.156
sung-su.kim [Fri, 11 Oct 2013 01:35:50 +0000 (10:35 +0900)]
[Release] wrt-commons_0.2.156

Change-Id: I5efe98d8ee1da6c8ee84acd88c9d82062b5d082b

11 years agoAdd DPL_DEPRECATED macro
Jihoon Chung [Wed, 9 Oct 2013 06:36:23 +0000 (15:36 +0900)]
Add DPL_DEPRECATED macro

[Issue#]     N/A
[Problem]    WRT doesn't have any MACRO to show deprecated build warning.
[Cause]      N/A
[Solution]   Add macro for showing build warning. (DPL_DEPRECATED, DPL_DEPRECATED_WITH_MESSAGE(msg))
             - Macro uses gcc attribute
               __attribute__((deprecated)), __attribute__((deprecated("msg")))
               The deprecated attribute results in a warning if the function is used anywhere in the source file.
               This is useful when identifying functions that are expected to be removed in a future version of a program.
               The warning also includes the location of the declaration of the deprecated function,
               to enable users to easily find further information about why the function is deprecated,
               or what they should do instead.
               The deprecated attribute can also be used for variables and types. (Variable Attributes, Type Attributes)
               http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html#Function%20Attributes
[SCMRequest] N/A

Change-Id: I2d79d8cacff3593c2bba8ea048d9a4025c6f4994

11 years ago[Release] wrt-commons_0.2.155
sung-su.kim [Fri, 4 Oct 2013 00:33:02 +0000 (09:33 +0900)]
[Release] wrt-commons_0.2.155

Change-Id: I4143f8d5fcb21d639819d068af4c955c93c362ec

11 years agoRemove unnecessary steps for QEMU installation
Slawomir Pajak [Tue, 1 Oct 2013 11:29:19 +0000 (13:29 +0200)]
Remove unnecessary steps for QEMU installation

[Issue#]   LINUXWRT-971
[Problem]  Message "pkill: command not found" when building WRT
[Cause]    wrt.db is reset and created during wrt installation (on QEMU)
[Solution] Remove steps connected to wrt.db from installation
           when QEMU detected. Detection is based on existence of
           EMULATOR_ARCHS value

[Verification] Build WRT repository and check if warning is not present

Change-Id: I00bba27c95c87f2b31668a90a7262ca42c9bf2af

11 years ago[Release] wrt-commons_0.2.154
sung-su.kim [Mon, 30 Sep 2013 02:43:58 +0000 (11:43 +0900)]
[Release] wrt-commons_0.2.154

Change-Id: Ia534f37d94b7479fcea8fa95a3b4678908fb0c9b

11 years agoUpdate package spec file for license
Zbigniew Kostrzewa [Fri, 27 Sep 2013 10:28:24 +0000 (12:28 +0200)]
Update package spec file for license

[Issue#]   LINUXWRT-927
[Problem]  Invalid/missing license file
[Cause]    N/A
[Solution] Update license file

[Verification]
    1. Build repository
    2. Install package on DUT
    3. Check whether license for this repository exists in
       /usr/share/license

Change-Id: I81c17ee638219a7953407ff19b23f1c29a8347ff

11 years ago[Release] wrt-commons_0.2.153
sung-su.kim [Sun, 22 Sep 2013 23:52:52 +0000 (08:52 +0900)]
[Release] wrt-commons_0.2.153

Change-Id: Ifeac87cca2b6d148b25548717e9e1d2f2657e6cb

11 years agoFix Prevent issue. Reduce number of Ignored issues.
Zbigniew Kostrzewa [Fri, 20 Sep 2013 05:43:20 +0000 (07:43 +0200)]
Fix Prevent issue. Reduce number of Ignored issues.

[Issue#]   CID: 12114
[Problem]  Return value not checked
[Cause]    Function returns a value which is not checked
[Solution] Check the returned value and log error if one occurred

[Verification] Build repository

Change-Id: If7c8ef9f8c7682830efa741a9d814438bb7ebe2d

11 years agoFix Prevent issue. Reduce number of Ignored issues.
Zbigniew Kostrzewa [Fri, 20 Sep 2013 06:09:16 +0000 (08:09 +0200)]
Fix Prevent issue. Reduce number of Ignored issues.

[Issue#]   CID: 12645
[Problem]  Wrong exception message
[Cause]    Copy-paste error probably
[Solution] Fix exception message

[Verification] Build repository

Change-Id: I76e8fa66262e89815f6676a6432c165b13f9c021

11 years agoFix building the package with GCC-4.8
Grzegorz Rynkowski [Fri, 20 Sep 2013 09:23:56 +0000 (11:23 +0200)]
Fix building the package with GCC-4.8

[Problem]      The package cannot be built with gcc-4.8.
[Cause]        Missing #include statements.
[Solution]     Add the missing #include statements.
[Verification] Build package both with current (GCC-4.5) and (GCC-4.8)
               version of compiler.
[SCMRequest]   N/A

Change-Id: I1c8ec9183989e0099a229b55014f83c2119ed458

11 years agoAdd function getting uncompressed size at zip file.
Soyoung Kim [Fri, 13 Sep 2013 08:53:01 +0000 (17:53 +0900)]
Add function getting uncompressed size at zip file.

    * wrt-installer should be able to check low memory at installation time

[Issue#]   WGL-299
[Problem]  There is no function to get uncompressed size.
[Cause]    N/A
[Solution] Uncompressed size can be calcuated before unzip during installation.

[SCMRequest] N/A

Change-Id: I403242b0af066fd22826843095fea12ce95370bb

11 years agoAdd DPL_UNUSED_PARAM macro
Jihoon Chung [Thu, 19 Sep 2013 09:12:42 +0000 (11:12 +0200)]
Add DPL_UNUSED_PARAM macro

[Issue]    LINUXWRT-901
[Problem]  Build warning.
[Cause]    Caused by unused parameter.
[Solution] Add macro casted to void.

Change-Id: Ib9f55567a3c3876a5ab94c4230b75eb54b60942f

11 years agoDir operation duplications clean up.
Maciej Piotrowski [Fri, 9 Aug 2013 06:59:43 +0000 (08:59 +0200)]
Dir operation duplications clean up.

[Issue#]   LINUXWRT-717
[Problem]  Dir operation duplications.
[Cause]    N/A
[Solution] Functionality from
            - wrt-installer/src/jobs/widget_install/directory_api.*
            - wrt-installer/src/jobs/widget_install/task_common.*
            was transferred to wrt-commons/modules/utils/src/path.cpp

[Verification] Build repository, install/uninstall widgets,
create test case for added method DPL::Utils::CreateTempPath, run tests.

Change-Id: Ia1a18a1c301ead904674197bc51705e53546ed55

11 years ago[Release] wrt-commons_0.2.152
sung-su.kim [Sun, 8 Sep 2013 23:19:51 +0000 (08:19 +0900)]
[Release] wrt-commons_0.2.152

Change-Id: I9536e807a7d34e8918e5b091313b3d2b34893110

11 years agoFix building the package with GCC-4.8
Grzegorz Rynkowski [Wed, 4 Sep 2013 08:56:19 +0000 (10:56 +0200)]
Fix building the package with GCC-4.8

[Problem]      The package cannot be built with gcc-4.8.
[Cause]        Missing #include statement.
[Solution]     Add the missing #include statement.
[Verification] Build package both with current (GCC-4.5) and new
(GCC-4.8) version of compiler.

Change-Id: Ic462ffa18b7a41983fc4843e78c56645cf4d5d7d

11 years ago[Release] wrt-commons_0.2.151
sung-su.kim [Sun, 1 Sep 2013 23:59:35 +0000 (08:59 +0900)]
[Release] wrt-commons_0.2.151

Change-Id: Ia3b312058df2171e2c28de963a0d58b5d59308b0

11 years agoAdding test case type RUNNER_MULTIPROCESS_TEST.
Marcin Niesluchowski [Tue, 13 Aug 2013 10:36:19 +0000 (12:36 +0200)]
Adding test case type RUNNER_MULTIPROCESS_TEST.

Running many processes in one test case would work fine on those rules.
* Using wait(), waitpid(), waitid() functions within test case body is forbidden
(waiting for child processes is handeled by framework).
* Process exiting properly should exit only 0.
* Communication by signals is forbidden - signals could be cought by parent and
  ignored.

Tests also provided. To run them build this flags below and run them as
wrt-commons-tests-test --output=text --runignored .
  flags:  --define "WITH_TESTS ON" --define "WITH_CHILD ON"
All tests from DPL_TESTS_TEST_MULTIPROCESS group should pass.

[Issue#]        SSDWSSP-438
[Bug/Feature]   Calling fork() inside RUNNER_TEST causes errors for whole process
                group while failed or ignored. Additional path for each redundant
                failed process is created.
[Cause]         N/A
[Solution]      Creating test case type controlling processes.
[Verification]  Applying it to failing multiprocess tests. All errors should
                be collected as one and no additional process should run after
                test case ends.

Change-Id: I371528de102def369107cab3c5cffe0b2f53e9e5

11 years agoAdd suffix path for manifest and recovery
Soyoung Kim [Wed, 28 Aug 2013 09:29:43 +0000 (18:29 +0900)]
Add suffix path for manifest and recovery

[Issue#]   N/A
[Problem]  No suffix for the path of manifest.
[Cause]    N/A
[Solution] add path for save manifest of pkgmgr.
             - nomal path : "/opt/share/packages"
             - preload path : "/usr/share/packages"

           add path for checking recovery status
            - "/opt/share/packages/.recovery/wgt"

[SCMRequest] N/A

Change-Id: I560b5341141caff96bedd8f6f52a6112d8f380a1

11 years agoMutableTaskList type for wrt-installer JobWidgetInstall
Tomasz Iwanek [Tue, 27 Aug 2013 11:22:50 +0000 (13:22 +0200)]
MutableTaskList type for wrt-installer JobWidgetInstall

[Issue#]       LINUXWRT-820
[Feature]      Muable task list class
[Cause]        There is need to modify list of tasks during running
[Solution]     New task list type
[Verification] Build repo. Test together with commit from wrt-installer.

Change-Id: I543144b5c1a6921e9928a9bcd59171965693459c

11 years agoDPL Path - Extension method
Tomasz Iwanek [Mon, 19 Aug 2013 08:59:00 +0000 (10:59 +0200)]
DPL Path - Extension method

[Issue#]       WGL-428
[Bug]          No way to get file extension
[Cause]        Extension() function is needed for wrt installer
[Solution]     Add function and test case
[Verification] Run tests: wrt-commons-tests-utils --output=text --regexp="path_"

Change-Id: I8a2a889303f0278471b283044e5acfd634963622

11 years agoAdd ExistsAndIsFile() and ExistsAndIsDir() in DPL::Utils::Path
Kamil Nowac [Thu, 22 Aug 2013 08:18:30 +0000 (10:18 +0200)]
Add ExistsAndIsFile() and ExistsAndIsDir() in DPL::Utils::Path

[Issue#]   N/A
[Problem]  Not provided functions for Exists _AND_ IsFile/Dir check.
[Cause]    Because of throws in IsFile() and IsDir() functions,
           there are difficulties to use them in conditional statements.
           Sometimes unhandled exception occurs and there is no way to handle it.
[Solution] Added functions: ExistsAndIsFile() and ExistsAndIsDir()
[Verification] 1. Build with --define "WITH_TESTS ON"
               2. Run wrt-commons-tests-utils --output=text --regexp="path_"
[SCMRequest]   Needed by: http://tizendev.org/gerrit/#/c/72690/

Change-Id: If74a9d565c03d52d57ea8f5ebeef9113b3536b97

11 years agoDPL Pipe tests fix
Tomasz Iwanek [Mon, 19 Aug 2013 13:05:12 +0000 (15:05 +0200)]
DPL Pipe tests fix

[Issue#]       N/A
[Bug]          2 tests failing
[Cause]        FlattenConsume function assumes presence of data
[Solution]     Test fix
[Verification] Run: wrt-commons-tests-test --output=text --regexp='ProcessPipe_'

Change-Id: I5bc2e9a9cc1e16ecd76eed7002ba0a35babf41ee

11 years ago[Release] wrt-commons_0.2.150
sung-su.kim [Tue, 20 Aug 2013 23:40:26 +0000 (08:40 +0900)]
[Release] wrt-commons_0.2.150

Change-Id: Ib9429e5f0e1f0396e86258ccbc86ff0d5989a4eb

11 years agoFix RUNNER_CHILD_TEST framework.
Lukasz Marek [Fri, 2 Aug 2013 13:51:11 +0000 (15:51 +0200)]
Fix RUNNER_CHILD_TEST framework.

Fixes:
 * Add support for Ignore macro in child process. Now parent process
   print result in corrent way.
 * Fix SIGPIPE problem when test process want to use function write with stdout
   or stderr in RUNNER_CHILD_TEST. (Problem occures only when
   environment value DPL_USE_OLD_STYLE_LOGS=1 was defined).

[Issue#]   N/A
[Problem]  Macro RUNNER_IGNORE_MSG was not allowed in child test process.
           Call write(stdout, ...) in RUNNER_CHILD_TEST cause SIGPIPE.
[Cause]    Lack of support exception "TestRunner::Ignored"
           Lack of stdout and stderr descriptor in child process.
[Solution] Add support for Exception "TestRunner::Ignored" in RUNNER_CHILD_TEST

Change-Id: I7f69972ed6d2f6fea16584058c29acd9c8f0a27a

11 years ago[Release] wrt-commons_0.2.149
sung-su.kim [Sun, 18 Aug 2013 23:45:25 +0000 (08:45 +0900)]
[Release] wrt-commons_0.2.149

Change-Id: If449781c1185db56adeaf35f5215ebd9d5215257

11 years agoFixed an issue related to multiple database connection
Jihoon Chung [Sat, 17 Aug 2013 06:01:15 +0000 (15:01 +0900)]
Fixed an issue related to multiple database connection

- As every web application has its own security dao,
  support of multiple DB connections will not be needed.

[Issue#]   N/A
[Problem]  Setting menu shows wrong information with the following steps.
           1. Launch Setting -> Manage applications
           2. Select Web application -> Allow list
           3. Back to Manage applications -> select another Web application
           4. checking Allow list menu
           then, the menu showed the firstly chosen web application information.
[Cause]    Security origin dao is not released even though corresponding dao object is released.
           This causes returning old data when a new dao object is created.
           N.B) Security origin dao uses static value to avoid
                conflict with re-created connection object.
[Solution] Remove static dao value, and clen up old dao code.
           - We originally needed "static value" to support thread locking mechanism.
             But, current web applications don't have separate threads, hence no longer needed.
           - Moreover, sqlite already supports such a conflict through transaction manager.
[SCMRequest] N/A

Change-Id: Ide83f7c8fa63a387e48f0396c3a8febc79409101

11 years ago[Release] wrt-commons_0.2.148
sung-su.kim [Wed, 14 Aug 2013 01:43:51 +0000 (10:43 +0900)]
[Release] wrt-commons_0.2.148

Change-Id: I0bf08fffaabd439f535b25016e10deb31b90099a

11 years agoImplement widget interface DAO library
Jihoon Chung [Fri, 9 Aug 2013 05:33:55 +0000 (14:33 +0900)]
Implement widget interface DAO library

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] As requirment of customer, DAO should create in install time
To support this, widget interface DAO library should move from
wrt-plugins-common to wrt-commons
[SCMRequest] N/A

Change-Id: I744614dd4ba242f2703d66d1dabd5f643628516e

11 years agoOption --only-from-xml for dpl test framework
Tomasz Iwanek [Mon, 5 Aug 2013 08:50:45 +0000 (10:50 +0200)]
Option --only-from-xml for dpl test framework

[Issue#]       LINUXWRT-743
[Feature]      Reading testcase to be launched from TCT xml file
[Cause]        Need for automatic launching only TCT tests.
[Solution]     Additional option for test binary.
Additonal changes:
 - printing number of testcases at startup
 - listing option will take into account --regexp and --only-from-xml
[Verification] Build and run tests from change. Try this change with wrt-extra tests with commit "W3C testcases names adjust for TCT".
Install TCT on target:
 - tct-widget01-w3c
 - tct-widget02-w3c
 - tct-wgtapi01-w3c
 - tct-wgtapi02-w3c
 - tct-widgetpolicy-w3c
 - tct-widgetdigsig-w3c

All commands below should print requested list of tescases from xml file
and do not complain about wrong XML file (note that list option prints now only test
to run (after filtering them)):
 wrt-extra-tests-plugins-w3c --list --only-from-xml=/usr/share/tct-wgtapi02-w3c-tests/tests.xml
 wrt-extra-tests-plugins-w3c --list --only-from-xml=/usr/share/tct-wgtapi01-w3c-tests/tests.xml
 wrt-extra-tests-w3c --list --only-from-xml=/usr/share/tct-widget01-w3c-tests/tests.xml
 wrt-extra-tests-w3c --list --only-from-xml=/usr/share/tct-widget02-w3c-tests/tests.xml
 wrt-extra-tests-w3c-widget-policy --list --only-from-xml=/usr/share/tct-widgetpolicy-w3c-tests/tests.xml
 wrt-extra-tests-w3c-digsig --list --only-from-xml=/usr/share/tct-widgetdigsig-w3c-tests/tests.xml #no testcases anyway

Change-Id: I1b62a5d17dc351c1f763fb1d9a877e1300bc6a9c

11 years ago[Release] wrt-commons_0.2.147
sung-su.kim [Mon, 12 Aug 2013 23:10:53 +0000 (08:10 +0900)]
[Release] wrt-commons_0.2.147

Change-Id: I84ea89be3b9b6641d9d229af8c340297e79d57d5

11 years agoFixed wrong index for app-control
Jihoon Chung [Mon, 12 Aug 2013 07:07:04 +0000 (16:07 +0900)]
Fixed wrong index for app-control

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution]
Data index for appcontrol isn't matched with parser.
WidgetAppControl::Disposition & AppControlInfo::Disposition
[SCMRequest] N/A

Change-Id: I311f1810700bb1308fd447a9d9d77946fd51e4e2

11 years ago[Release] wrt-commons_0.2.146
sung-su.kim [Sun, 11 Aug 2013 23:25:30 +0000 (08:25 +0900)]
[Release] wrt-commons_0.2.146

Change-Id: I3949d64e9358ae592edab698b3865ea5127cff1e

11 years agoImplement disposition element parser
Jihoon Chung [Sun, 4 Aug 2013 09:39:38 +0000 (18:39 +0900)]
Implement disposition element parser

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Implement disposition element parser
disposition element is sub-element of tizen:app-control.
element name : tizen:disposition
value :
  inline - application running with submode
  window - application running with normal state
example :
  <tizen:app-control>
    <tizen:src name="test.html"/>
    <tizen:operation name="http://tizen.org/appcontrol/operation/test"/>
    <tizen:disposition name="inline"/>
  </tizen:app-control>
dispostion element requires platform level
[SCMRequest] N/A

Change-Id: Ia957cd0f5921e3a3ab25eb6394395c00f951de82

11 years ago[Release] wrt-commons_0.2.145
sung-su.kim [Wed, 7 Aug 2013 23:52:38 +0000 (08:52 +0900)]
[Release] wrt-commons_0.2.145

Change-Id: I47b8e712df981cfa13f010ba5942bf055f042675

11 years agoRemove deprecated API
Jihoon Chung [Sun, 4 Aug 2013 07:36:55 +0000 (16:36 +0900)]
Remove deprecated API

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Remove deprecated API
[SCMRequest] N/A

Change-Id: I3a95aea130764378bc651b12ea7bc7b3cb885b82

11 years agoAdd the cflag about feature of USER/ENG binary.
Soyoung Kim [Wed, 7 Aug 2013 05:41:48 +0000 (14:41 +0900)]
Add the cflag about feature of USER/ENG binary.

[Issue#] N/A
[Problem] can't display dlog.
[Cause] N/A
[Solution] Add TIZEN_ENGINEER_MODE.
[SCMRequest] N/A

Change-Id: I2bf39cf8e8dd5190978b8e88d21617c522284a37

11 years ago[Release] wrt-commons_0.2.144
sung-su.kim [Mon, 5 Aug 2013 23:16:16 +0000 (08:16 +0900)]
[Release] wrt-commons_0.2.144

Change-Id: If15599918a037f91a363b51bf38fbeaa74a1e140

11 years agoAdd default tag to secure_log
Jihoon Chung [Mon, 22 Jul 2013 06:13:23 +0000 (15:13 +0900)]
Add default tag to secure_log

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add default define for LOG_TAG
[SCMRequest] N/A

Change-Id: I46138fa430f1a0e63906e1506563fff4ae546c81

11 years ago[Release] wrt-commons_0.2.143
sung-su.kim [Sun, 4 Aug 2013 23:42:00 +0000 (08:42 +0900)]
[Release] wrt-commons_0.2.143

Change-Id: I2fdbb01c44d2770d1c9163c37126a147c0bcc53b

11 years agoAdd widgetDAO API to update tizen application id field
Jihoon Chung [Sun, 4 Aug 2013 07:56:49 +0000 (16:56 +0900)]
Add widgetDAO API to update tizen application id field

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution]
Add updateTizenAppId WidgetDAO API
Deprecated registerOrUpdateWidget, backupAndUpdateWidget and
restoreUpdateWidget.
[SCMRequest] N/A

Change-Id: Iac505db9a7934741071fb8ca1657fac4738dd96f

11 years agoClean-up widget dao
Jihoon Chung [Tue, 30 Jul 2013 05:26:55 +0000 (14:26 +0900)]
Clean-up widget dao

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution]
Remove deprecated API
Add getPkgId API
[SCMRequest] N/A

Change-Id: I8bd69e6339111217d800bd8777ceeb91bf5031d5

11 years agoFixed wrong WARP scheme checking
Jihoon Chung [Fri, 2 Aug 2013 13:35:48 +0000 (22:35 +0900)]
Fixed wrong WARP scheme checking

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] WARP ignore scheme missed "smsto".
[SCMRequest] N/A

Change-Id: I9f9e5d3281cb2f1e9bb761acb5f2cd554b63d0e2

11 years ago[Release] wrt-commons_0.2.142
sung-su.kim [Thu, 1 Aug 2013 23:26:27 +0000 (08:26 +0900)]
[Release] wrt-commons_0.2.142

Change-Id: I51aa9cdd1da86ae0480cc74157e2d8922c1cdfa1

11 years ago[DPL] ProcessPipe
Tomasz Iwanek [Thu, 11 Jul 2013 15:29:52 +0000 (17:29 +0200)]
[DPL] ProcessPipe

[Issue#]       LINUXWRT-639
[Feature]      Utility to spawn subprocess o read and write bytes through named pipes
[Cause]        N/A
[Solution]     This will be used in tests. Whats more this was problem in wrt-extra for some tests.
[Verification] Build repository with tests and with WITH_CHILD ON. Run tests: wrt-commons-tests-test --output=text --regexp='ProcessPipe_' #all should pass

Change-Id: I92915b53b9542cd2e523e42669e37ebd050eaf81

11 years ago[Release] wrt-commons_0.2.141
sung-su.kim [Thu, 1 Aug 2013 01:36:51 +0000 (10:36 +0900)]
[Release] wrt-commons_0.2.141

Change-Id: I67bb77fbb2c2c590b32be706cc75cf02e276489b

11 years agoInline scope guard factory function.
Zbigniew Kostrzewa [Mon, 22 Jul 2013 07:54:18 +0000 (09:54 +0200)]
Inline scope guard factory function.

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Inlining this function should improve efficiency.
[SCMRequest] N/A
[Verification]
1. Build respository.
2. Run command:
  `wrt-commons-tests-core --output=text --regexp='ScopeGuard*'`

Change-Id: I24d7ce9ad26411997829b6feb3a59326b60cb7c2

11 years agoMerge "[Release] wrt-commons_0.2.140"
HOSEON LEE [Wed, 31 Jul 2013 06:39:12 +0000 (06:39 +0000)]
Merge "[Release] wrt-commons_0.2.140"

11 years ago[Release] wrt-commons_0.2.140
sung-su.kim [Wed, 31 Jul 2013 00:04:57 +0000 (09:04 +0900)]
[Release] wrt-commons_0.2.140

Change-Id: Ic97400e9a394b5ceb38cc01fe720b047a3e2482b

11 years ago[CodeCovarage] Automatic tests for DPL test framework
Tomasz Iwanek [Wed, 17 Jul 2013 14:20:53 +0000 (16:20 +0200)]
[CodeCovarage] Automatic tests for DPL test framework

[Issue#]       LINUXWRT-664
[Feature]      Tests/tests fix
[Cause]        Those tests are returning actual result of tests. Returned result should be catch and compared with expected. That comparsion should give pass or fail.
[Solution]     Add macro for catching tests results to make tests automatic.
[Verification] Build "WITH_TESTS ON" and "WITH_CHILD ON". Run:
   wrt-commons-tests-test-runner-child --output=text --regexp='t0'
   wrt-commons-tests-test-runner-child --output=text --regexp='t1'
All should pass (binary may have name wrt-commons-tests-test if previous do not exist).

Change-Id: Ie7b008813b666ceb75de28119286e497d1c4b7ac

11 years agoDPL Encryption module removal
Tomasz Iwanek [Thu, 25 Jul 2013 11:51:44 +0000 (13:51 +0200)]
DPL Encryption module removal

[Issue#]       N/A
[Feature]      Removal of unused code
[Cause]        Unused code
[Solution]     Removal
[Verification] Build repository. This code will not be used as it was replaced by secure storage.

Change-Id: I938a79185990740191522a98cb520e48f4f67e0e

11 years ago[Release] wrt-commons_0.2.139
sung-su.kim [Mon, 22 Jul 2013 23:56:05 +0000 (08:56 +0900)]
[Release] wrt-commons_0.2.139

Change-Id: I2fcbdd3a6d0e5450782bb5c970154176669521e5

11 years agoExtract IANA language tags into a separate DB.
Zbigniew Kostrzewa [Tue, 16 Jul 2013 12:41:34 +0000 (14:41 +0200)]
Extract IANA language tags into a separate DB.

[Issue#] N/A
[Problem] Could not restrict access to iana_records table only.
[Cause] N/A
[Solution] Extract iana_records table into a separate DB.
[Verification]
1. Build repository
2. Run command `wrt-commons-tests-i18n --output=text`

Change-Id: Iacfec548485f5742a0c9fbf5f4596d4d3de8c3d5

11 years ago[Release] wrt-commons_0.2.138
sung-su.kim [Mon, 22 Jul 2013 01:36:23 +0000 (10:36 +0900)]
[Release] wrt-commons_0.2.138

Change-Id: I3ce9c228fd976bed091ec9d9db1f20d8dc1042cc

11 years agoAdd secure_log.h
Jihoon Chung [Sat, 20 Jul 2013 06:05:01 +0000 (15:05 +0900)]
Add secure_log.h

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add secure_log.h
[SCMRequest] N/A

Change-Id: I1bd92bccbadf45b1576c696a693a4628a707507e

11 years agoAdd ScopeGuard utility
Zbigniew Kostrzewa [Thu, 18 Jul 2013 11:36:45 +0000 (13:36 +0200)]
Add ScopeGuard utility

[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] ScopeGuard is utility class that allows to register a piece
of code to be executed when control exits a scope in which ScopeGuard
object has been created.
Implementation based on:
* Scope guard pointer from Loki library
  http://loki-lib.cvs.sourceforge.net/loki-lib/loki/include/loki/ScopeGuard.h?view=markup
* Scope guard implementation in folly library
  https://github.com/facebook/folly/blob/master/folly/ScopeGuard.h
* Lecture "Systematic Error Handling in C++" conducted by Andrei Alexandrescu
  http://channel9.msdn.com/Shows/Going+Deep/C-and-Beyond-2012-Andrei-Alexandrescu-Systematic-Error-Handling-in-C
[Verification]
1. Build repository
2. Run command
  `wrt-commons-tests-core --output=text --regexp='ScopeGuard*'`

[Notes]
It will be utilized e.g. in wrt-installer for guarding detaching from
WRT DB.

Change-Id: I13cdd15b9c9c83a927faeee658d88340052ef66d

11 years agoAdd exception handling to w3c_file_localization for double root, "//".
Tae-Jeong Lee [Tue, 16 Jul 2013 08:55:36 +0000 (17:55 +0900)]
Add exception handling to w3c_file_localization for double root, "//".

[Issue#] N/A
[Problem] Exception handling
[Cause] N/A
[Solution] Add exception handling to w3c_file_localization for double root, "//".

Change-Id: I375bfda94637465c987fdc21720a08a2ee4ec1df

11 years ago[Release] wrt-commons_0.2.136
sung-su.kim [Wed, 17 Jul 2013 02:48:40 +0000 (11:48 +0900)]
[Release] wrt-commons_0.2.136

Change-Id: I58fbc9e47d9495492511681afbcc049878f6235b

11 years agoReplace LogInfo to LogDebug
Jihoon Chung [Wed, 17 Jul 2013 02:40:20 +0000 (11:40 +0900)]
Replace LogInfo to LogDebug

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Replace LogInfo to LogDebug
Platform policy isn't used LogInfo
[SCMRequest] N/A

Change-Id: I7517004391b9e22cc0f48ede3443032acd1eb1b6

11 years agoCode cleanup
Tomasz Iwanek [Wed, 10 Jul 2013 10:52:48 +0000 (12:52 +0200)]
Code cleanup

[Issue#]       LINUXWRT-629
[Bug]          Temporary code
[Cause]        N/A
[Solution]     N/A
[Verification] Build repository wrt-commons and wrt-installer
[SCMRequest] This commit depends on: https://review.tizendev.org/80392

Change-Id: Ia26b39ee8f2821c46d8bcecce711626db366649c

11 years agoUpdating SecurityOriginInfo fix
Tomasz Iwanek [Mon, 15 Jul 2013 12:45:29 +0000 (14:45 +0200)]
Updating SecurityOriginInfo fix

[Issue#]       LINUXWRT-657
[Bug]          Update clause missing where statement
[Cause]        N/A
[Solution]     Add where statement
[Verification] Install tct-behaviour widget from TCTManager package. This widget should be able to be installed(reinstalled) several times.
 Run: wrt-installer -i [.wgt] several times in row (Previous version throwed exception from security dao).

Change-Id: I567a34a4442482143750bf3bc3cd86af8de07554

11 years agoIWacSecurity interface name change to IWidgetSecurity
Tomasz Iwanek [Wed, 10 Jul 2013 10:10:53 +0000 (12:10 +0200)]
IWacSecurity interface name change to IWidgetSecurity

[Issue#]       LINUXWRT-629
[Bug]          This code is not longer connect with wac functionality
[Cause]        N/A
[Solution]     Name change of interface.
[Verification] Build repo. Build wrt-installer basing on this change.

Change-Id: Ib46c3c910e8baf5a8bf98c57f051fd987aefe5ad

11 years agotodo comment regarding app scheme
Tomasz Iwanek [Mon, 15 Jul 2013 11:51:27 +0000 (13:51 +0200)]
todo comment regarding app scheme

[Issue#]       N/A
[Bug]          High probablity of bug in code in case of app scheme
[Cause]        N/A
[Solution]     N/A
[Verification] N/A

Change-Id: I085f6ae43168b7fa499ddff46a71111d6e82e571

11 years agoAdd support for monitoring allow-navigation occurrence.
Zbigniew Kostrzewa [Fri, 12 Jul 2013 09:34:55 +0000 (11:34 +0200)]
Add support for monitoring allow-navigation occurrence.

[Issue#] https://bugs.tizendev.org/jira/browse/TDIS-6856
[Problem] All allow-navigation elements from web application's
configuration document are parsed but only the first one should be
processed.
[Cause] N/A
[Solution] Add flag for monitoring whether allow-navigation element has
already occurred.
[Verification]
1. Build repository

[Notes]
Utilized in configuration parser (in wrt-installer).

Change-Id: I9f67822ada3fc547d02ac80c08d595281740b91c

11 years agoSupport svg type for start file
Soyoung Kim [Fri, 12 Jul 2013 11:48:28 +0000 (20:48 +0900)]
Support svg type for start file

[Issue#] WEB-3586
[Problem] Widget installation fails when default start file as "index.svg"
 is present at the root of the widget package.
[Cause] N/A
[Solution] add svg type.
[SCMRequest] N/A

Change-Id: I98f076a8f958b111cf074f9f7f882716e87f83c9

11 years agoWAC code removal
Tomasz Iwanek [Wed, 10 Jul 2013 06:47:13 +0000 (08:47 +0200)]
WAC code removal

[Issue#]       LINUXWRT-629
[Bug]          Not supported code
[Cause]        N/A
[Solution]     Removing:
- WrtDB::APP_TYPE_WAC20 app type,
- WAC paths, versions,
- developer/compliance mode in global dao,
[Verification] Build repository
[SCMRequest]   This change requires: https://review.tizendev.org/#/c/80343/

Change-Id: I62bb55f51da35eb08d39c36de8e7e02889df1f0d

11 years agoRemoved unused code about wac signed.
Soyoung Kim [Thu, 4 Apr 2013 05:25:13 +0000 (14:25 +0900)]
Removed unused code about wac signed.

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] remove wac signed logic.
[SCMRequest] N/A

Change-Id: I3805944527c3e5e7be229f6bd07660928027449e

11 years ago[Release] wrt-commons_0.2.135
sung-su.kim [Tue, 9 Jul 2013 10:15:51 +0000 (19:15 +0900)]
[Release] wrt-commons_0.2.135

Change-Id: I23bc94641a0f848a0a5244d1c31fddf4b7ed1bf1

11 years ago[Path usage Unification] Widget Installation:JobWidgetInstall part unificati
Kamil Nowac [Tue, 11 Jun 2013 15:03:32 +0000 (17:03 +0200)]
[Path usage Unification] Widget Installation:JobWidgetInstall part unificati

[Issue#] LINUXWRT-396
[Problem] Due to changes in wrt-installer repo.
No hasExtension() in DPL::Utils::Path
[Cause] N/A
[Solution] Added function hasExtension
[Verification]
1. Build wrt-commons with tests
2. Run wrt-commons-tests-utils --output=text
All tests for path building should pass.

Change-Id: I687bab68d6810e0cfee233cfefe0dfd0763de586

11 years ago[Release] wrt-commons_0.2.134
sung-su.kim [Mon, 24 Jun 2013 05:15:49 +0000 (14:15 +0900)]
[Release] wrt-commons_0.2.134

Change-Id: Id479e9513ca3fd96814465ab1f28f75e7c9740b5

11 years agoAdd PluginDAOReadOnly::getImplementedObjects() API.
Taejeong Lee [Fri, 14 Jun 2013 16:25:53 +0000 (01:25 +0900)]
Add PluginDAOReadOnly::getImplementedObjects() API.

 - It returns whole of ImplementedObjectes in PluginDAO DB.

[Issue#] N/A
[Problem] Performance
[Cause] N/A
[Solution] Add PluginDAOReadOnly::getImplementedObjects() API.

Change-Id: I91c7743b593946871db0fa4f07d7f6c81741319b

11 years ago[Daily Tests] wrt-commons-tests-dao fix
Rafal Bednarski [Mon, 10 Jun 2013 15:54:26 +0000 (17:54 +0200)]
[Daily Tests] wrt-commons-tests-dao fix

[Issue] LINUXWRT-147
[Problem] wrt-commons-tests-dao tests do not pass in 100%
[Cause] N/A
[Solution]
Fixed wrt_dao_tests_prepare_db.sh script, especially lines
responsible for inserting data in the WidgetPreference table.
Changed property_dao_get_lists in file TestCase_PropertyDAO.cpp
Procedure is not sensitive for WidgetNotExist exception from now.
[Verification]
1. Build wrt-commons repository
2. Tests wrt-commons-test-dao on target.
All tests should pass in 100%.

Change-Id: Ifc3e799287b0d3e74efc8103d24ba867d96ddf94

11 years ago[Release] wrt-commons_0.2.133
sung-su.kim [Fri, 21 Jun 2013 02:39:21 +0000 (11:39 +0900)]
[Release] wrt-commons_0.2.133

Change-Id: I6df63ce41ffa1bfd319d70c0f871134d3fd1616b

11 years agoSupport "tizen-service" scheme
Jihoon Chung [Thu, 20 Jun 2013 11:21:02 +0000 (20:21 +0900)]
Support "tizen-service" scheme

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Support "tizen-service" scheme
This commit skip tizen-service scheme to check WARP
[SCMRequest] N/A

Change-Id: If5ada9f1f889bb123d20319d51a33907b64567f1

11 years agoExpand structure of LiveboxInfo for support of 'use-decoration'
Yunchan Cho [Tue, 18 Jun 2013 12:04:50 +0000 (21:04 +0900)]
Expand structure of LiveboxInfo for support of 'use-decoration'

[issue#] N/A
[problem] There is no member variable for new attribute 'use-decoration' of <tizen:box-size>
[cause] N/A
[solution] LiveboxInfo struct has been expanded for this

Change-Id: I7a94e6283d7148968ff970303465ec230d4a82a1

11 years agoMerge "[Release] wrt-commons_0.2.131"
HOSEON LEE [Thu, 20 Jun 2013 05:08:05 +0000 (05:08 +0000)]
Merge "[Release] wrt-commons_0.2.131"

11 years agoChange tizen:metadata details
Jihoon Chung [Tue, 18 Jun 2013 05:24:23 +0000 (14:24 +0900)]
Change tizen:metadata details

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Change tizen:metadata details
Add value is null case
[SCMRequest] N/A

Change-Id: Ie7d609c9b703773b5b001aeee2a727dbddc785bd

11 years ago[Release] wrt-commons_0.2.131
sung-su.kim [Tue, 18 Jun 2013 05:43:06 +0000 (14:43 +0900)]
[Release] wrt-commons_0.2.131

Change-Id: I6aa6dc9cfde9d27a14989f75a700237c6689f0bb

11 years agoFix installation of NPRuntime plug-ins.
Zbigniew Kostrzewa [Fri, 14 Jun 2013 10:49:02 +0000 (12:49 +0200)]
Fix installation of NPRuntime plug-ins.

[Issue#] N/A
[Problem] All NPRuntime plug-ins are installed with a widget instead of
only those that match target architecture.
See "Tizen Web Runtime Core Specification 2.1", section "Web Application
Installation", requirements 0102 and 0103.
[Cause] N/A
[Solution] Provide API for retrieving path to the NPRuntime plug-ins
depending on the target architecture.
[SCMRequest] N/A

[Verification]
1. Build repository.

Change-Id: Ic341d91adc7a6019b4b0f330baaf06982a44eb8c

11 years ago[Release] wrt-commons_0.2.130
Soyoung Kim [Fri, 14 Jun 2013 06:16:52 +0000 (15:16 +0900)]
[Release] wrt-commons_0.2.130

Change-Id: I69ed439a11dbb582349d2da04c87a9819a68b274

11 years agoFixed required version
Soyoung Kim [Fri, 14 Jun 2013 05:26:14 +0000 (14:26 +0900)]
Fixed required version

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] fixed required version to 2.2
[SCMRequest] N/A

Change-Id: Iebeb891a7c01d8afdf2e608c3229bf2feeced2b1

11 years ago[Release] wrt-commons_0.2.129
Jihoon Chung [Thu, 13 Jun 2013 14:07:15 +0000 (23:07 +0900)]
[Release] wrt-commons_0.2.129

Change-Id: If72777f9462b95b50564e0c3c67e954c0a9c364c

11 years agoLog style is changed to SECURE_LOG
Hoseon LEE [Tue, 11 Jun 2013 04:43:22 +0000 (13:43 +0900)]
Log style is changed to SECURE_LOG

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Log stryle is changed to SECURE_LOG
[SCMRequest] N/A

Change-Id: I57048730cd2e161067619cd8f35cbe44321c54e6

11 years ago[Release] wrt-commons_0.2.128
Jihoon Chung [Tue, 4 Jun 2013 04:26:40 +0000 (13:26 +0900)]
[Release] wrt-commons_0.2.128

Change-Id: Ib940dd07f5bc211b8b9e3446a423537fe987112e

11 years agoChange SMACK label for custom_handler
Jihoon Chung [Mon, 3 Jun 2013 08:21:26 +0000 (17:21 +0900)]
Change SMACK label for custom_handler

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Change SMACK label for custom_handler
Deprecate 'wrt-commons::db_wrt_custom_handler' and use 'wrt-commons::db_wrt'
[SCMRequest] N/A

Change-Id: I2eead3810312b2f7d5cf99ad956dc24345ec4b21

11 years ago[Release] wrt-commons_0.2.127
Yunchan Cho [Fri, 31 May 2013 08:18:33 +0000 (17:18 +0900)]
[Release] wrt-commons_0.2.127

Change-Id: I4fa7443115e977c772debf57366ba618ff092e3f

11 years agoAdd a boxlabel Type.
leerang song [Mon, 27 May 2013 05:39:16 +0000 (14:39 +0900)]
Add a boxlabel Type.

[Issue#] N/A
[Bug] N/A
[Cause] Add function for parsing language label in widget_parser
[Solution] Add a boxlabel Type.
[Verification] This commit should be release with wrt-installer.

Change-Id: I109c6d4ead8de5ecead8f0e1ebce3252463ca75e

11 years ago[Release] wrt-commons_0.2.126
Jihoon Chung [Thu, 30 May 2013 07:41:30 +0000 (16:41 +0900)]
[Release] wrt-commons_0.2.126

Change-Id: Ied4ea59b65131e21d787191709e217e8127e8469

11 years agoChange temporary storage path
Jihoon Chung [Wed, 29 May 2013 06:29:15 +0000 (15:29 +0900)]
Change temporary storage path

[Issue#] H0100184102
[Problem] Using tizen.download to download to "wgt-private" works,
but not to "wgt-private-tmp"
[Cause] N/A
[Solution]
Change temporary storage path app directory
Before : /tmp/pkgid/
After  : /opt/usr/apps/pkgid/tmp/
[SCMRequest] N/A

Change-Id: Ica434a2ce5be2e7ceb816d92b0aafd60bc25515d

11 years ago[Release] wrt-commons_0.2.125
sung-su.kim [Wed, 29 May 2013 02:12:54 +0000 (11:12 +0900)]
[Release] wrt-commons_0.2.125

Change-Id: Ic19661efbb90254215c749d9b7d3423903681e51

11 years ago[Unit Tests] wrt-commons: DAO tests
Kamil Nowac [Fri, 17 May 2013 14:29:30 +0000 (16:29 +0200)]
[Unit Tests] wrt-commons: DAO tests

[Issue#] LINUXWRT-147
[Problem] Lack of the privileges and app_control
[Cause] N/A
[Solution] Added widget_dao_test_register_app_control
and widget_dao_test_register_widget_privileges
[Verification]
1.Build wrt-commons repository with --define "WITH_TESTS ON"
2.Test wrt-commons-tests-dao on target. All tests should pass.

Change-Id: I5e880b195425b27ed7403be7500d9e1cb49a4ad1

11 years ago[Developer mode] Removal from wrt-commons repository
Kamil Nowac [Thu, 2 May 2013 12:27:30 +0000 (14:27 +0200)]
[Developer mode] Removal from wrt-commons repository

[Issue#] LINUXWRT-282
[Problem] Unsupported feature
[Cause] N/A
[Solution] Removing it
[Verification]
1. Check if there are any 'D(/d)eveloper' words remains in source code.
2. Build wrt repository.

Change-Id: I8e324391cb9a99377806852e35590f9229e987f3

11 years agoAdd widget_config for shared directory
Jihoon Chung [Tue, 28 May 2013 01:25:56 +0000 (10:25 +0900)]
Add widget_config for shared directory

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add path builder for shared directory
[SCMRequest] N/A

Change-Id: I2ca612caabc7673b0f6f359494706523304db55b

11 years agoClean-up unused global_config.h
Jihoon Chung [Tue, 28 May 2013 01:17:48 +0000 (10:17 +0900)]
Clean-up unused global_config.h

[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Remove deprecated inline funtion regarding vconf
[SCMRequest] N/A

Change-Id: I303b8901f399dfd846261a647d81846b73b4acfd

11 years ago[Release] wrt-commons_0.2.124
sung-su.kim [Mon, 27 May 2013 08:54:43 +0000 (17:54 +0900)]
[Release] wrt-commons_0.2.124

Change-Id: I3e2aba8ee9db0a51275509e4ad8d7f93820380ec

11 years agoFixed web app can't update.
Soyoung Kim [Fri, 24 May 2013 13:49:37 +0000 (22:49 +0900)]
Fixed web app can't update.

[Issue#] N/A
[Problem] can't update
[Cause] widget preference db has tizen_appid instead of app_id(handle).
So db error occur during update.
db error is "foreign key constraint failed".
[Solution] modify foreign key from tizen_appid to app_id.
[SCMRequest] N/A

Change-Id: I7299fd34f125e574eeeeffb111ac022b08e3987b

11 years ago[Daily Tests] wrt-commons tests
Kamil Nowac [Wed, 8 May 2013 09:08:38 +0000 (11:08 +0200)]
[Daily Tests] wrt-commons tests

[Issue#] LINUXWRT-214
[Problem] Tests do not pass in 100%
[Cause] Tests in one directory must fail so it looks bad in daily tests
[Solution] Adding proper condition to CMake
[Verification]
1. Build wrt-commons repository with --define "WITH_TESTS ON" and --define "WITH_CHILD ON".
There is proper a signal during build: "Additional test subdirectory is being added"

Change-Id: I1533ac05a3e7406b5f4c67c9ba382381898b0481

11 years ago[Release] wrt-commons_0.2.123
sung-su.kim [Thu, 23 May 2013 09:22:04 +0000 (18:22 +0900)]
[Release] wrt-commons_0.2.123

Change-Id: I32406fe3bed5b6d5ab102eba3819935f8b7fea68

11 years agoAdd "getRootPluginHandleList()" api to PluginDAOReadOnly.
Taejeong Lee [Thu, 23 May 2013 07:09:51 +0000 (16:09 +0900)]
Add "getRootPluginHandleList()" api to PluginDAOReadOnly.

[Issue#] N/A
[Problem] Performance
[Cause] N/A
[Solution] Add "getRootPluginHandleList()" api to PluginDAOReadOnly.

Change-Id: I9624177e8349e81fade08e3b96e5d4d4cec751f0

11 years ago[Release] wrt-commons_0.2.122
sung-su.kim [Thu, 16 May 2013 04:27:43 +0000 (13:27 +0900)]
[Release] wrt-commons_0.2.122

Change-Id: Ic3f8591ab3f6d8be15236dfb0a4f6c1b7b53d535

11 years agoAdd new type of getFilePathInWidgetPackageFromUrl() api for performance.
Taejeong Lee [Wed, 15 May 2013 03:01:33 +0000 (12:01 +0900)]
Add new type of getFilePathInWidgetPackageFromUrl() api for performance.

 - std::string getFilePathInWidgetPackageFromUrl(const std::string &tzAppId, const std::string &url)

[Issue#] N/A
[Problem] Performance
[Cause] URI localization consumed too many CPU resource.
[Solution] Optimization to getFilePathInWidgetPackageFromUrl()

Change-Id: I6f0253067b082ab27b645682a789432d7773df1a