Changeset 429 for trunk/icedtea-web/ChangeLog
- Timestamp:
- Sep 24, 2014, 9:34:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/ChangeLog
r418 r429 1 2012-08-27 Deepak Bhole <dbhole@redhat.com> 2 3 * configure.ac: Prepare for 1.3 4 * NEWS: Same 1 2014-05-14 Omair Majid <omajid@redhat.com> 2 3 * tests/test-extensions/net/sourceforge/jnlp/tools/CodeSignerCreator.java 4 (KeyPair): New class. 5 (createCert): Use KeyPair. 6 7 2014-08-07 Jiri Vanek <jvanek@redhat.com> 8 9 Pre-release tuning 10 * Makefile.am: (netx-html-gen.stamp) set number of changests to 36 (since 1.5) 11 * NEWS: date of 1.5.1 set to 2014-08-13 12 * configure.ac: (AC_INIT) set to use 1.5 13 14 2014-08-05 Jiri Vanek <jvanek@redhat.com> 15 16 Massively improved offline abilities. Added Xoffline switch to force work without inet connection. 17 * NEWS: updated 18 * netx/net/sourceforge/jnlp/JNLPFile.java: (openURL) is now using properly 19 cached file instead of direct online one. 20 * netx/net/sourceforge/jnlp/Launcher.java: launcher is now using JNLPRuntime 21 isOnline* set of methods 22 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java: misleading 23 (getInputStream) method removed (initializeResource) check for connection 24 before downlaodin (unless Xforceoffline specified). If environment is offline 25 it do not attempt any url connections or writing to cache 26 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: added flags of (offlineForced) 27 and (onlineDetected) with getters and setters. Added utility method (detectOnline) 28 to recognize whether environment is onliune by resovling inet addres of host 29 of not file url. 30 * netx/net/sourceforge/jnlp/util/XDesktopEntry.java: now writes real url into 31 desktop icon 32 33 2014-08-01 Jiri Vanek <jvanek@redhat.com> 34 35 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: casts to 36 (JNLPClassLoader) DID guarded by instanceof 37 38 2014-07-31 Andrew Azores <aazores@redhat.com> 39 40 Add URLPermission support to SecurityDesc. This is essentially Java 8 41 support, as URLPermission is new to Java 8 and required for many applets 42 to continue working when a Java 8-compatible JVM is in use. 43 * netx/net/sourceforge/jnlp/SecurityDesc.java (urlPermissionClass, 44 urlPermissionConstructor): new static variables for storing references to 45 URLPermission, if available, for reflective construction at runtime 46 (getSandboxPermissions): adds URLPermissions to sandbox permissions set, 47 if available (Java 8+) 48 (getUrlPermissions): new method for getting URLPermissions for the current 49 SecurityDesc 50 (getHostWithSpecifiedPort, appendRecursiveSubdirToCodebaseHostString): new 51 static helper methods for generating URLPermissions' constructor args 52 (requireNonNull): new method, simply throws NPE if its argument is null 53 * tests/netx/unit/net/sourceforge/jnlp/SecurityDescTest.java 54 (testNotNullJnlpFile): cleanup refactor, no semantic change 55 (testNullJnlpFile, testAppendRecursiveSubdirToCodebaseHostString, 56 testAppendRecursiveSubdirToCodebaseHostString2, 57 testAppendRecursiveSubdirToCodebaseHostString3, 58 testAppendRecursiveSubdirToCodebaseHostStringWithPort, 59 testAppendRecursiveSubdirToCodebaseHostStringWithNull, 60 testGetHostWithSpecifiedPort, testGetHostWithSpecifiedPortWithFtpScheme, 61 testGetHostWithSpecifiedPortWithUserInfo, 62 testGetHostWithSpecifiedPOrtWithPort, 63 testGetHostWithSpecifiedPortWithPath, testGetHostWithSpecifiedPortWithAll, 64 testGetHostWithSpecifiedPortWithNull, testGetHost, 65 testGetHostWithFtpScheme, testGetHostWithUserInfo, testGetHostWithPort, 66 testGetHostWithPath, testGetHostWithAll, testGetHostNull, 67 testGetHostWithAppendRecursiveSubdirToCodebaseHostString, 68 testGetHostWithSpecifiedPortWithAppendRecursiveSubdirToCodebaseHostString): 69 new test methods 70 71 2014-07-31 Andrew Azores <aazores@redhat.com> 72 73 Fixes for coverity issues discovered in RH1121549 74 * plugin/icedteanp/IcedTeaNPPlugin.cc (ITNP_New): print error message and 75 return error if JVM fails to start. 76 (NP_Initialize): fix missing argument to PLUGIN_ERROR when unable to 77 create data directory 78 * plugin/icedteanp/IcedTeaParseProperties.cc (get_log_dir): refactored to 79 reduce duplicate code, and added debug warning messages 80 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc (setProperty): do not 81 erroneously redeclare java_result 82 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc (file_exists): added 83 assertion that directories satisfy file_exist 84 85 2014-07-30 Jie Kang <jkang@redhat.com> 86 87 *NEWS: mentioned fixes to Java Console and itweb-settings UI. PR1856, 1857, 88 1859 89 90 2014-07-30 Jie Kang <jkang@redhat.com> 91 92 Fixed TeeOutputStream to accept multi-byte encodings. 93 * netx/net/sourceforge/jnlp/util/logging/TeeOutputStream.java: Now uses 94 ByteArrayOutputStream instead of StringBuffer 95 * tests/netx/unit/net/sourceforge/jnlp/util/logging/TeeOutputStreamTest.java: 96 97 2014-07-30 Jie Kang <jkang@redhat.com> 98 99 Fix to Java ConsoleOutputPane for lower resolutions. Addresses bug 100 PR1859 where part of the pane is hidden and unnaccessible when 101 clicking Show Details. 102 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: 103 104 2014-07-30 Jie Kang <jkang@redhat.com> 105 106 Fix to Control Panel UI for lower resolutions. Addresses bug 107 PR1856 where part of the dialog is hidden and unaccessible 108 on lower resolutions such as 800 x 600. 109 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: 110 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java: 111 112 2014-07-22 Fridrich Strba <fridrich.strba@suse.com> 113 114 * plugin/icedteanp/IcedTeaPluginUtils.cc (flush_pre_init_messages): 115 Return NULL explicitly. 116 117 2014-07-03 Jiri Vanek <jvanek@redhat.com> 118 119 * tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java 120 removed useless iterations of all resources against all. Kept only all against 121 default. 122 123 2014-07-01 Jiri Vanek <jvanek@redhat.com> 124 125 * NEWS: mentioned PL localization 126 127 2014-06-26 Jacob Wisor <gitne@gmx.de> 128 129 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: 130 (sortBy) Remove slipped in Java 7 language construct and API call 131 132 2014-06-26 Jacob Wisor <gitne@gmx.de> 133 134 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: Formatting 135 fixes & cleanup 136 Made final classes, members, and variables final 137 138 2014-06-26 Jacob Wisor <gitne@gmx.de> 139 140 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties: Add new PL 141 localized messages 142 143 2014-06-25 Andrew Azores <aazores@redhat.com> 144 145 PolicyEditor persists empty non-default codebase entries 146 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEntry.java 147 (toString): return empty string only if the codebase both has no 148 permissions assigned and is also the default "All Applets" codebase 149 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java 150 (savePolicyFile): release fileLock with try/finally 151 152 2014-06-19 Jiri Vanek <jvanek@redhat.com> 153 154 * NEWS: mentioned All JDKs ability, DE localization and KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK 155 156 2014-06-19 Jiri Vanek <jvanek@redhat.com> 157 158 Making the previous chnage actualy take an effect. 159 * Makefile.am: All tests runs using CLASSPATH varibale on line, separated by 160 semicolon. I have no idea wy this was needing. 161 162 2014-06-19 Jiri Vanek <jvanek@redhat.com> 163 164 All tests adapted to run from XBootclaspath (forced by extending package private 165 rt.jar class) 166 * Makefile.am: all sets of call of -Xbootclasspath in tests and coverage 167 are now adding $CLASSPATH to boot classapth. Where CLASSPATH was not deffined, 168 was added. 169 * tests/netx/unit/net/sourceforge/jnlp/JNLPMatcherTest.java: and 170 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ComponentFinder.java: 171 resources loaded from boot classloader 172 * tests/reproducers/simple/JavawsAWTRobotFindsButton/testcases/JavawsAWTRobotFindsButtonTest.java 173 (static init) used system classlaoder to laod image 174 175 2014-06-19 Jiri Vanek <jvanek@redhat.com> 176 177 Made it works (basicaly) on any JDK 178 * Makefile.am: (NETX_PKGS) sun.applet added to recognized netx packages 179 (netx-dist.stamp) sun directory included into packed list 180 * acinclude.m4: removed (IT_CHECK_FOR_APPLETVIEWERPANEL_HOLE) check. Added 181 IT_CHECK_FOR_SUN_APPLET_ACCESSIBILITY, which test existence of 182 classes sun.applet.AppletPanel, sun.applet.AppletViewerPanel 183 fields applet, documentURL, baseURL and methods run and runLoader. Addapted messge 184 * configure.ac: call to IT_CHECK_FOR_APPLETVIEWERPANEL_HOLE replaced by call 185 to IT_CHECK_FOR_SUN_APPLET_ACCESSIBILITY 186 * /netx/net/sourceforge/jnlp/NetxPanel.java: now extends AppletViewerPanelAccess 187 instead of AppletViewerPanel directly. Access to baseURL, applet and documentURL 188 replaced by dedicated getters/setters 189 * netx/sun/applet/AppletViewerPanelAccess.java: new class extending AppletViewerPanel 190 and enabling access to applet, documentURL and baseURL. Backed by reflection. 191 Also overriding run by usage of short copypasted code. 192 * netx/sun/applet/AppletViewerPanelAccess.java: addedd accidentally skipped 193 createAppletThread method 194 * netx/sun/applet/package-info.java: new file with worning about usage of this 195 package in itw 196 * plugin/icedteanp/java/sun/applet/PluginAppletPanelFactory.java: only call 197 to super debug repalced by ITW's debugging call 198 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: used getters as in 199 NetxPanel 200 201 2014-06-19 Kurt Miller <kurt@intricatesoftware.com> 202 203 Fixed PR1743 - Intermittant deadlock in PluginRequestProcessor 204 * NEWS: added PR1743 205 * plugin/icedteanp/IcedTeaNPPlugin.cc: declaration of cond_message_available 206 moved to PluginRequestProcessor class 207 * plugin/icedteanp/IcedTeaNPPlugin.h: removed external cond_message_available search 208 * plugin/icedteanp/IcedTeaPluginRequestProcessor.h: message_queue_mutex, 209 syn_write_mutex and message_queue moved to PluginRequestProcessor clas. 210 Constructor, destructor and newMessageOnBus declarationmoved to end of class. 211 declared queueProcessorThread method. 212 * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: Removed declaration of 213 static message_queue_mutex, syn_write_mutex, message_queue. (PluginRequestProcessor) 214 constructor and destructor and (newMessageOnBus) are now using the fields from 215 PluginRequestProcessor class. new method of (queue_wait_cleanup) to unlock mutex 216 added. (queue_processor) is now calling queueProcessorThread. Implemented 217 (queueProcessorThread), which uses setMember, call , eval and loadUrl rather 218 then processor->, versions. If no message_parts are available, the cleanup is done 219 only if message_queue is empty. 220 221 2014-06-18 Jacob Wisor <gitne@gmx.de> 222 223 * netx/net/sourceforge/jnlp/resources/Messages.properties (BOredirect) 224 (CCannotClearCache, CFakedCache, CONSOLEClean, CVCPCleanCache) 225 (CVCPCleanCacheTip): Fixed language in some messages 226 * netx/net/sourceforge/jnlp/resources/Messages_de.properties: Added new DE 227 localized messages 228 229 2014-06-06 Andrew Azores <aazores@redhat.com> 230 231 * netx/net/sourceforge/jnlp/security/policyeditor/CustomPermission.java 232 (toString): fixed empty actions string appearing on basic permissions, which 233 do not have actions 234 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/CustomPermissionTest.java: 235 (testToStringWithoutActions): new test 236 237 2014-06-06 Andrew Azores <aazores@redhat.com> 238 239 Fixed NullPointerException when closing PolicyEditor with changes made and 240 no file yet set (editor opened without arguments), and selecting yes to 241 save changes before exit. 242 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java 243 (quit): if file is null, display file chooser prompt before attempting to save 244 245 2014-04-15 Jiri Vanek <jvanek@redhat.com> 246 247 Reflect possibility of disabled manifest check to unit-test 248 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: new field 249 (attCheckValue) to store original value. (setPermissions) is enabling check 250 and (resetPermissions) returning back to original 251 252 2014-04-14 Andrew Azores <aazores@redhat.com> 253 254 * netx/net/sourceforge/jnlp/resources/Messages.properties: 255 (PEAccessThreads, PEAccessThreadsDetail, PEAccessThreadGroups, 256 PEAccessThreadGroupsDetail) new messages 257 * netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java: 258 (ACCESS_THREADS_PERMISSION, ACCESS_THREAD_GROUPS_PERMISSION) new 259 permissions, added to reflection group. 260 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionTarget.java: 261 (ACCESS_THREADS, ACCESS_THREAD_GROUPS) new targets 262 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java: 263 (ACCESS_THREADS, ACCESS_THREAD_GROUPS) new permissions, added to 264 reflection group. Minor formatting fixes. 265 266 2014-04-14 Jiri Vanek <jvanek@redhat.com> 267 268 All manifest attributes can be disabled 269 * netx/net/sourceforge/jnlp/config/Defaults.java: added new 270 KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK configuration. 271 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: 272 Added KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK key 273 * netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java: 274 (isCheckEnabled) new method to check value of KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK 275 (checkAll) is testing isCheckEnabled before checking individual attributes. 276 277 2014-04-07 Andrew Azores <aazores@redhat.com> 278 279 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: 280 (showPartiallySignedWarningDialog) add missing shouldPromptUser check 281 282 2014-04-07 Jiri Vanek <jvanek@redhat.com> 283 284 Post 1.5 changes 285 * NEWS: added 1.5.1 section 286 * configure.ac: (AC_INIT) bumped to 1.5.1pre 287 288 2014-04-02 Jiri Vanek <jvanek@redhat.com> 289 290 * Makefile.am: bumped number of changeset in for about dialog. Fixed placement. 291 292 2014-04-02 Jiri Vanek <jvanek@redhat.com> 293 294 * Changelog: minor fixes 295 296 2014-04-02 Jiri Vanek <jvanek@redhat.com> 297 298 Pre-release tuning 299 * Makefile.am: (netx-html-gen.stamp) set number of changests to 223 (since 1.4) 300 * NEWS: date of 1.5 set to 201-04-02 301 * configure.ac: (AC_INIT) set to use 1.5 302 303 2014-04-02 Jiri Vanek <jvanek@redhat.com> 304 305 * NEWS: Bumped date of 1.5 release to 2014 306 307 2014-04-01 Andrew Azores <aazores@redhat.com> 308 309 Fix Permissions manifest attribute check 310 * netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java: 311 (isNoneOrDefault) new method. 312 (validateRequestedPermissionLevelMatchesManifestPermissions) new method. 313 (checkPermissionsAttribute) rework to closer match spec and fix bug in not 314 allowing signed applets to request sandbox permissions. 315 316 2014-04-01 Jiri Vanek <jvanek@redhat.com> 317 318 * netx/net/sourceforge/jnlp/JNLPFile.java: hardcoded strings replaced by 319 SecurityDesc.RequestedPermissionLevel values. 320 * netx/net/sourceforge/jnlp/PluginBridge.java: likewise 321 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: likewise 322 * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java: added new tests 323 (testGetRequestedPermissionLevel1) - (testGetRequestedPermissionLevel7). 324 Added (minimalJnlp) field. 325 * tests/netx/unit/net/sourceforge/jnlp/PluginBridgeTest.java: added new 326 (testGetRequestedPermissionLevel) test. 327 * netx/net/sourceforge/jnlp/SecurityDesc.java: added (DEFAULT) into 328 (RequestedPermissionLevel) and fixed typo in (J2EE) jnlpValue 329 330 2014-04-01 Andrew Azores <aazores@redhat.com> 331 332 * netx/net/sourceforge/jnlp/SecurityDesc.java: (RequestedPermissionLevel) 333 new enum to describe the permission level requested in an applet's 334 JNLP/HTML. (requestedPermissionLevel) new field. (SecurityDesc) new 335 constructor with RequestedPermissionLevel added. 336 (getRequestedPermissionLevel) new method. 337 * netx/net/sourceforge/jnlp/JNLPFile.java: (getRequestedPermissionLevel) 338 new method 339 * netx/net/sourceforge/jnlp/Parser.java: (getSecurity) construct 340 SecurityDescs with correct RequestedPermissionLevel 341 * netx/net/sourceforge/jnlp/PluginBridge.java: 342 (getRequestedPermissionLevel) new overridden method 343 * netx/net/sourceforge/jnlp/PluginParameters.java: (getPermissions) new 344 method 345 346 2014-04-01 Jiri Vanek <jvanek@redhat.com> 347 348 * netx/net/sourceforge/jnlp/resources/Messages_cs.properties: adapted to match newest state. 349 (MissingPermissionsMainTitle) (MissingPermissionsInfo) (ALACAMissingMainTitle) (ALACAMissingInfo) 350 (ALACAMatchingMainTitle) (ALACAMatchingInfo) removed codebase word, used text in all hrefs. 351 352 2014-04-01 Jiri Vanek <jvanek@redhat.com> 353 354 Manual quotation in ClasspathMatcher regex replaced by Pattern.quote 355 * netx/net/sourceforge/jnlp/util/ClasspathMatcher.java: (quote) 356 is now using Pattern.quote instead manual \Q + original + \E 357 358 2014-04-01 Jiri Vanek <jvanek@redhat.com> 359 360 Restricted CodebaseMatcher to not match aaexample.com by *.example.com expression 361 but still match example.com - as in specification. 362 * netx/net/sourceforge/jnlp/util/ClasspathMatcher.java: (domainToRegEx) consists 363 of original regex connected by or with second one in case of *. start. 364 (sourceToRegExString) part of the logic extracted to quote method. 365 * tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java: 366 (matchTest5) adapted. (wildCardSubdomainDoesNotMatchParentDomainPaths) new test, 367 focusing on aaexample.com/example.com/aaa.example.com in *.example.com both 368 path and domain. 369 370 2014-03-31 Omair Majid <omajid@redhat.com> 371 372 * netx/net/sourceforge/jnlp/resources/Messages.properties 373 (MissingPermissionsMainTitle): Remove 'codebase' 374 (MissingPermissionsInfo): Use simple link title. 375 376 2014-03-31 Omair Majid <omajid@redhat.com> 377 378 * netx/net/sourceforge/jnlp/resources/Messages.properties 379 (ALACAMissingMainTitle, ALACAMissingInfo ALACAMatchingMainTitle) 380 (ALACAMatchingInfo): Rephrase strings and replace full links with page 381 names. 382 * netx/net/sourceforge/jnlp/util/UrlUtils.java (setOfUrlsToHtmlList): 383 Enclose list in 'ul' element. 384 385 2014-03-31 Jiri Vanek <jvanek@redhat.com> 386 387 Allowed wrong match of the aaaexample.com by *.example.com expression as in 388 specification. 389 * netx/net/sourceforge/jnlp/util/ClasspathMatcher.java: uncommented handling 390 of dot in (domainToRegEx). 391 * tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java: 392 (matchTest) uncommented and added tests of/for dot issue. 393 394 2014-03-31 Jiri Vanek <jvanek@redhat.com> 395 Alexandr Kolouch <skolnag@gmail.com> 396 397 Fixed cz_CS locales and adapted tests 398 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: added missing 399 values 400 * tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java: 401 Added few untranslatable items to white-list. (allResourcesAreReallyDifferent) 402 now skip test on values of "std. err" "std. out" "Policy Editor" and 403 "Java Reflection" 404 405 2014-03-31 Omair Majid <omajid@redhat.com> 406 407 * acinclude.m4 408 (IT_CHECK_XULRUNNER_MIMEDESCRIPTION_CONSTCHAR), 409 (IT_CHECK_XULRUNNER_REQUIRES_C11): Use AC_LANG_SOURCE with code. 410 411 2014-03-31 Jiri Vanek <jvanek@redhat.com> 412 413 Refactored check of heap space. Now recognize g/G and is based on regex 414 * netx/net/sourceforge/jnlp/JREDesc.java: Added (heapPattern) constant. 415 (checkHeapSize) now returns trimmed string and its logic is matching the 416 heapPattern instead compelx structure. (init) set result of checkHeapSize 417 as initialHeapSize and maximumHeapSize. 418 * tests/netx/unit/net/sourceforge/jnlp/JREDescTest.java: tests for (checkHeapSize) 419 and (init) of JREDesc. 420 421 2014-03-27 Andrew Azores <aazores@redhat.com> 422 423 Fix NPE when trying to open a new file, with changes made, and wanting to 424 save these changes to a file 425 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 426 (openButtonAction) display Save As file chooser if there is no file object 427 yet and user wishes to save changes 428 429 2014-03-27 Andrew Azores <aazores@redhat.com> 430 431 Fix bug with checkboxes not correctly updating on open and with repeats of 432 a codebase appearing when opening a file multiple times 433 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 434 (resetCodebases) new method. (openAndParsePolicyFile) call resetCodebases 435 at start. (PolicyEditor) call resetCodebases in constructor 436 437 2014-03-27 Andrew Azores <aazores@redhat.com> 438 439 Applets can be temporarily granted permission levels above fully sandboxed 440 but below all-permission 441 * netx/net/sourceforge/jnlp/resources/Messages.properties: 442 (STempPermNoFile, STempPermNoNetwork, STempPermNoExec, 443 STempPermNoFileOrNetwork, STempPermNoExecOrNetwork, STempPermNoFileOrExec, 444 STempPermNoFileOrNetworkOrExec, STempAllMedia, STempSoundOnly, 445 STempClipboardOnly, STempPrintOnly, STempAllFileAndPropertyAccess, 446 STempReadLocalFilesAndProperties, STempReflectionOnly): new messages 447 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: (installPanel) 448 pass SecurityDelegate to partially signed dialog 449 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: 450 (showPartiallySignedWarningDialog) added SecutityDelegate param for 451 message extras 452 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: 453 (checkPartiallySignedWithUserIfRequired) added SecurityDelegate param 454 * netx/net/sourceforge/jnlp/security/dialogs/CertWarningPane.java: 455 (createPolicyPermissionsMenu, PolicyEditorLaunchListener, 456 PolicyEditorPopupListener) removed in favour of TemporaryPermissionsButton 457 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/PartiallySignedAppTrustWarningPanel.java: 458 same 459 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/AppTrustWarningDialog.java: 460 (partiallySigned) SecurityDelegate param 461 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionActions.java: 462 (DELETE, READLINK, FILE_ALL) new actions. (rawActions, rawString) can 463 retrieve raw String representation of the action 464 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionTarget.java: 465 (USER_HOME, TMPDIR) grant permissions to entire directory, not only 466 children 467 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java: 468 (DELETE_LOCAL_FILES, DELETE_TMP_FILES) new permissions. 469 (Group.WriteFileSystem) added DELETE* permissions 470 * nests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorParsingTest.java: 471 update for change in PermissionTarget 472 * netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java: 473 new class 474 * netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissionsButton.java: 475 new class 476 477 2014-03-27 Jiri Vanek <jvanek@redhat.com> 478 479 Clenaup in PolicyEditor tests and MVC 480 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: MVC 481 mixing method (updatecheckboxes) splited to invokelater and plain impls. 482 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/* : removed 483 warnings and fixed wrong package declaration. 484 * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: when 485 filelaks are negative, take it as success. 486 487 2014-03-26 Andrew Azores <aazores@redhat.com> 488 489 Fix JOptionPane modality problems after making PolicyEditor itself modal 490 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 491 JOptionPane dialog parents set correctly to JDialog or JFrame rather than 492 JPanel 493 494 2014-03-26 Jiri Vanek <jvanek@redhat.com> 495 496 * netx/net/sourceforge/jnlp/resources/Messages.propertie: new keys (STOAsignedMsgFully) 497 (STOAsignedMsgAndSandbox) (STOAsignedMsgPartiall) added 498 * netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java: extracted 499 hardocded values of (signedMsg) 500 501 2014-03-26 Jiri Vanek <jvanek@redhat.com> 502 503 Added possibility to group permissions in PolicyEditor 504 * netx/net/sourceforge/jnlp/resources/Messages.properties: added groups names 505 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: (setLayout) 506 added grouping panels and checkboxes. (JcheckBoxWithGroup) New inner class to work 507 with groups. 508 netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java: 509 Added inner class (Groups) and deffinied (ReadFileSystem) (WriteFileSystem) 510 (AccesUnowenedCode) (MediaAccess) 511 512 2014-03-26 Andrew Azores <aazores@redhat.com> 513 514 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 515 (savePolicyFile, openAndParsePolicyFile) made synchronous so that 516 programmatically adding a new codebase has a well-defined order when 517 performed immediately after starting a new PolicyEditor instance 518 519 2014-03-26 Andrew Azores <aazores@redhat.com> 520 Jiri Vanek <jvanek@redhat.com> 521 522 PolicyEditor can be made modal. 523 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 524 (PolicyEditorWindow) new interface to facilitate PolicyEditor as a Window 525 rather than Panel. (PolicyEditorFrame, PolicyEditorDialog) 526 PolicyEditorWindow implementations. (getPolicyEditorFrame, 527 getPolicyEditorWindow) new methods to get frame or dialog implementations. 528 (setComponentMnemonic) made static. (preparePolicyEditorWindow) common 529 setup for frame and dialog implementations. 530 * netx/net/sourceforge/jnlp/controlpanel/PolicyPanel.java: refactor to use 531 PolicyEditorWindow 532 * netx/net/sourceforge/jnlp/security/dialogs/CertWarningPane.java: 533 same 534 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/PartiallySignedAppTrustWarningPanel.java 535 same 536 * netx/net/sourceforge/jnlp/util/FileUtils.java: (showReadOnlyDialog, 537 showCouldNotOpenFileDialog, showCouldNotOpenFilePathDialog, 538 showCouldNotOpenDialog) use Component rather than JFrame 539 540 541 2014-03-26 Andrew Azores <aazores@redhat.com> 542 543 Added many new permissions for PolicyEditor 544 * netx/net/sourceforge/jnlp/resources/Messages.properties: (PEWriteProps, 545 PEWritePropsDetail, PEWriteSystemFiles, PEWriteSystemFilesDetail, 546 PEAWTPermission, PEAWTPermissionDetail, PERecordAudio, 547 PERecordAudioDetail, PEReflection, PEReflectionDetail, PEClassLoader, 548 PEClassLoaderDetail, PEClassInPackage, PEClassInPackageDetail, 549 PEDeclaredMembers, PEDeclaredMembersDetail, PEExec, PEExecDetail, 550 PEGetEnv, PEGetEnvDetail): new messages. (PEAudio, PEAudioDetail) renamed 551 to PEPlayAudio{,Detail}. 552 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionActions.java: 553 (EXECUTE) new action 554 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionTarget.java: 555 (ALL_FILES, RECORD, REFLECT, GETENV, ACCESS_CLASS_IN_PACKAGE, 556 DECLARED_MEMBERS, CLASSLOADER) new targets 557 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionType.java: 558 (REFLECT_PERMISSION) new type 559 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java: 560 (WRITE_PROPERTIES, WRITE_SYSTEM_FILES, JAVA_REFLECTION, GET_CLASSLOADER, 561 ACCESS_CLASS_IN_PACKAGE, ACCESS_DECLARED_MEMBERS, EXEC_COMMANDS, GET_ENV, 562 ALL_AWT, RECORD_AUDIO) new permissions. (AUDIO) renamed PLAY_AUDIO. 563 564 2014-03-24 Andrew Azores <aazores@redhat.com> 565 566 * netx/net/sourceforge/jnlp/runtime/ManifestsAttributesValidator.java: 567 renamed to ManifestAttributesChecker. 568 * netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java: 569 (checkTrustedOnlyAttribute, checkCodebaseAttribute, 570 checkPermissionsAttribute, 571 checkApplicationLibraryAllowableCodebaseAttribute) made private. 572 (checkAll) new method. 573 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: reflect above 574 changes 575 576 2014-03-24 Andrew Azores <aazores@redhat.com> 577 578 * netx/net/sourceforge/jnlp/runtime/ManifestsAttributesValidator.java: 579 (checkTrustedOnlyAttrubute) works properly with sandboxing 580 581 2014-03-24 Jiri Vanek <jvanek@redhat.com> 582 583 Client applications now log into new console. 584 * netx/net/sourceforge/jnlp/resources/Messages.properties: added keys (COPitw) 585 and (COPclientApp) for new checkboxes in console 586 * netx/net/sourceforge/jnlp/runtime/Boot.java: added brackets to headless if 587 * netx/net/sourceforge/jnlp/util/TeeOutputStream.java: moved to 588 * netx/net/sourceforge/jnlp/util/logging/TeeOutputStream.java: and improved to 589 log into new console. 590 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: added new 591 checkboxes to filter out/in custom app/itw logs. copyAll buttons do not include 592 custom app's logs in case of first click. 593 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPaneModel.java: Added 594 testing data with custom app. (HTMLCOLOR_PURPLE) and (HTMLCOLOR_GREEN) as 595 new colors for custom app. (filter) now handle client app. 596 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: (init) redirect 597 stdout/err over teeOutputStream 598 * /netx/net/sourceforge/jnlp/util/logging/OutputController.java: (consume) 599 do not reprint if header is marked by isClientApp 600 * netx/net/sourceforge/jnlp/util/logging/headers/Header.java: added field 601 (isClientApp) 602 603 2014-03-24 Jiri Vanek <jvanek@redhat.com> 604 605 * netx/net/sourceforge/jnlp/controlpanel/CachePane.java: (visualCleanCache) 606 consider exception in cache operation as not-scuess. 607 * netx/net/sourceforge/jnlp/resources/Messages.properties: (CCannotClearCache) 608 (CFakedCache) (CVCPCleanCacheTip) improved by fix it tips. 609 610 2014-03-24 Andrew Azores <aazores@redhat.com> 611 612 * NEWS: added mention of Trusted-only manifest attribute 613 614 2014-03-24 Andrew Azores <aazores@redhat.com> 615 616 Added ability to launch PolicyEditor from security prompts, with the 617 current applet's codebase pre-selected in the editor. 618 * netx/net/sourceforge/jnlp/resources/Messages.properties: 619 (CertWarnPolicyTip, CertWarnPolicyEditor): new messages 620 * netx/net/sourceforge/jnlp/security/dialogs/CertWarningPane.java: can 621 launch PolicyEditor from new options overflow button 622 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/PartiallySignedAppTrustWarningPanel.java: 623 same 624 625 2014-03-24 Andrew Azores <aazores@redhat.com> 626 627 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: pass 628 SecurityDelegate to ManifestsAttributesValidator 629 * netx/net/sourceforge/jnlp/runtime/ManifestsAttributesValidator.java: 630 (securityDelegate) new field, added to constructor. 631 (checkTrustedOnlyAttribute, checkPermissionsAttribute) works with 632 RunInSandbox. 633 634 2014-03-20 Andrew Azores <aazores@redhat.com> 635 636 Trusted-only manifest attribute implementation 637 * netx/net/sourceforge/jnlp/resources/Messages.properties: 638 (STrustedOnlyAttributeFailure) new message 639 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: added 640 ManifestsAttributesValidator#checkTrustedOnlyAttribute() to constructor 641 * netx/net/sourceforge/jnlp/runtime/ManifestsAttributesValidator.java: 642 (checkTrustedOnlyAttribute) new method 643 * tests/reproducers/custom/TrustedOnlyAttribute/resources/TrustedOnlyAttribute-signed-nosecurity.jnlp: 644 new tests for Trusted-only attribute 645 * tests/reproducers/custom/TrustedOnlyAttribute/resources/TrustedOnlyAttribute-signed-security.jnlp 646 * tests/reproducers/custom/TrustedOnlyAttribute/resources/TrustedOnlyAttribute-signed.html 647 * tests/reproducers/custom/TrustedOnlyAttribute/resources/TrustedOnlyAttribute-unsigned-nosecurity.jnlp 648 * tests/reproducers/custom/TrustedOnlyAttribute/resources/TrustedOnlyAttribute-unsigned-security.jnlp 649 * tests/reproducers/custom/TrustedOnlyAttribute/resources/TrustedOnlyAttribute-unsigned.html 650 * tests/reproducers/custom/TrustedOnlyAttribute/srcs/MANIFEST.MF 651 * tests/reproducers/custom/TrustedOnlyAttribute/srcs/Makefile 652 * tests/reproducers/custom/TrustedOnlyAttribute/srcs/TrustedOnlyAttribute.java 653 * tests/reproducers/custom/TrustedOnlyAttribute/testcases/TrustedOnlyAttributeTest.java 654 655 2014-03-20 Andrew Azores <aazores@redhat.com> 656 657 Passing a reference to SecurityDelegate to CertWarningPane, so that UI 658 elements can be added later to allow the applet to be run Sandboxed + some 659 temporary permissions 660 * netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java: (checkTrustWithUser) 661 pass SecurityDelegate reference to SecurityDialogs.showCertWarningDialog 662 * netx/net/sourceforge/jnlp/security/PluginAppVerifier.java: same 663 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: pass SecurityDelegate 664 reference from extras into CertWarningPane constructor 665 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: (showCertWarningDialog) 666 added SecurityDelegate parameter, add to extras array. 667 * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java: (askUser) 668 pass null for SecurityDelegate reference 669 * netx/net/sourceforge/jnlp/security/dialogs/CertWarningPane.java: (CertWarningPane) 670 added SecurityDelegate constructor parameter and (securityDelegate) field 671 672 2014-03-20 Andrew Azores <aazores@redhat.com> 673 674 SecurityDelegate can be used to add permissions to JNLPClassLoader during 675 run. This is useful for adding temporary extra permissions to an applet. 676 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (SecurityDelegate 677 addPermission, addPermissions) new methods. (SecurityDelegateImpl addPermission, 678 addPermissions) implement previous. 679 680 2014-03-20 Jiri Vanek <jvanek@redhat.com> 681 682 Clear cache function made more visible. 683 * netx/net/sourceforge/jnlp/cache/CacheUtil.java: (okToClearCache) released 684 never released lock. (clearCache) now recriated directory after cleaning. 685 * netx/net/sourceforge/jnlp/controlpanel/CachePane.java: Added delete 686 all button. (restoreDisabled) and (disableButtons) are containing duplicated 687 code. (invokeLaterDeleteAll) and (visualCleanCache) utility methods accessing 688 CacheUtil.clearCache. 689 * netx/net/sourceforge/jnlp/resources/Messages.properties: added (CVCPCleanCache) 690 and (CVCPCleanCacheTip) keys 691 * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java: 692 added (cacheButton) 693 * netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java: also added (cacheButton) 694 but also included some layout refactoring to have buttons in row. 695 696 2014-03-20 Jiri Vanek <jvanek@redhat.com> 697 698 Methods validating manifests' attributes moved to separate class. 699 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Cleaned imports. 700 At (init) methods (checkCodebaseAttribute), (checkPermissionsAttribute) and 701 (checkApplicationLibraryAllowableCodebaseAttribute) moved to 702 ManifestsAttributesValidator. (guessCodeBase) generalized in UrlUtils. 703 * netx/net/sourceforge/jnlp/runtime/ManifestsAttributesValidator.java: 704 new class. Contains logic to validate manifests'attributes. 705 * netx/net/sourceforge/jnlp/util/UrlUtils.java: added method (guessCodeBase) 706 as generalization of JNLPClassLoader's guessCodeBase method. 707 708 2014-03-14 Andrew Azores <aazores@redhat.com> 709 710 Added new PartiallySigned Dialog to replace NotAllSignedWarningPane. 711 Also includes a Sandbox button. 712 * netx/net/sourceforge/jnlp/resources/Messages.properties: 713 (APPEXTSecunsignedAppletActionSandbox, LPartiallySignedApplet, 714 LPartiallySignedAppletUserDenied) new messages. (SNotAllSignedSummary, 715 SNotAllSignedDetail, SNotAllSignedQuestion) keys renamed to SPartially* 716 * netx/net/sourceforge/jnlp/resources/Messages_cs.properties: (SNotAllSignedSummary, 717 SNotAllSignedDetail, SNotAllSignedQuestion) keys renamed to SPartially* 718 * netx/net/sourceforge/jnlp/resources/Messages_de.properties: same 719 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties: same 720 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 721 Logic added for displaying new PartiallySigned dialog. 722 (showNotAllSignedDialog) removed. (getSigningState) new method. 723 (promptUserOnPartialSigning, userPromptedForPartialSigning) new methods for 724 SecurityDelegate. 725 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/AppTrustWarningDialog.java: 726 (partiallySigned) new method 727 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/AppTrustWarningPanel.java: 728 (chosenActionSetter) refactored to allow Sandbox action. (setupInfoPanel) applet 729 title made overrideable by subclasses 730 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: (NOTALLSIGNED_WARNING) 731 renamed PARTIALLYSIGNED_WARNING, display new dialog rather than old 732 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: (NOTALLSIGNED_WARNING) 733 renamed PARTIALLYSIGNED_WARNING. (showNotAllSignedWarningDialog) removed. 734 (showPartiallySignedWarningDialog) new method 735 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExecuteAppletAction.java: 736 Added Sandbox action 737 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: 738 (checkPartiallySignedWithUserIfRequired) new method 739 * tests/reproducers/custom/SignedAppletCodebaseLoading/testcases/SignedAppletCodebaseLoadingTests.java: 740 test now passes since dialog will not appear if applet security is set to Low. 741 KnownToFail removed. 742 * tests/reproducers/custom/SignedAppletExternalMainClass/testcases/SignedAppletExternalMainClassTest.java: 743 same 744 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/PartiallySignedAppTrustWarningPanel.java: 745 new class 746 * netx/net/sourceforge/jnlp/security/dialogs/NotAllSignedWarningPane.java: deleted 747 in favour of PartiallySignedAppTrustWarningPanel 748 749 2014-03-14 Andrew Azores <aazores@redhat.com> 750 751 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 752 (addNewCodebase) ensure that checkboxes update. (removeCodebase, 753 updateCheckboxes) ensure UI updates are done on EDT. 754 755 2014-03-14 Jiri Vanek <jvanek@redhat.com> 756 757 Base implementation of Application-Library-Allowable-Codebase. Remember 758 button not yet working. 759 * netx/net/sourceforge/jnlp/JNLPFile.java: (ClasspathMatchers) 760 (getApplicationLibraryAllowableCodebase) (getCodebase) (getCodeBaseMatchersAttribute) 761 (getCodeBaseMatchersAttribute) (getCodeBaseMatchersAttribute) changed signature 762 to include/not include path in returned matcher. 763 * netx/net/sourceforge/jnlp/resources/Messages.properties: Added keys 764 (ALACAMissingMainTitle) (ALACAMissingInfo) (ALACAMatchingMainTitle) 765 (ALACAMatchingInfo) for new dialogs. 766 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Implemented 767 (checkApplicationLibraryAllowableCodebaseAttribute). Used in (init) 768 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: made aware of 769 new constants (MISSING_ALACA) and (MATCHING_ALACA) 770 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: new constants 771 (MISSING_ALACA) and (MATCHING_ALACA). Implemented (showMissingALACAttributePanel) 772 and (showMatchingALACAttributePanel) 773 * netx/net/sourceforge/jnlp/security/dialogs/MatchingALACAttributePanel.java 774 new dialog for Matching attribute 775 * netx/net/sourceforge/jnlp/security/dialogs/MissingALACAttributePanel.java: 776 new dialog for Missing attribute. 777 * netx/net/sourceforge/jnlp/util/ClasspathMatcher.java: allowing user to 778 choose whether to include paths in matching or not. 779 * netx/net/sourceforge/jnlp/util/UrlUtils.java: new util methods (removeFileName) 780 (setOfUrlsToHtmlList) (sanitizeLastSlash) and (equalsIgnoreLastSlash) to 781 strip filename from url, toString for iterable of urls to string, and 782 for operations with URLs independently on last slash 783 * tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java: added 784 tests for paths 785 * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java: added tests 786 for new methods 787 788 2014-03-13 Andrew Azores <aazores@redhat.com> 789 790 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 791 (savePolicyFile, updateMd5WithDialog) avoid NPE when saving to a new file 792 793 2014-03-13 Jiri Vanek <jvanek@redhat.com> 794 795 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: adapted 796 to permissions attribute 797 798 2014-03-13 Jiri Vanek <jvanek@redhat.com> 799 800 Fixing rear deadlock issue 801 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: removed 802 (probably) unnecessary synchronization of (refreshPaneBody). 803 804 2014-03-13 Jiri Vanek <jvanek@redhat.com> 805 806 Fixed appearance of download indicator 807 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (init) attributes 808 are allowed to access jars only once all resources are downloaded 809 810 2014-03-12 Jiri Vanek <jvanek@redhat.com> 811 812 * configure.ac: added check for /bin/bash 813 814 2014-03-12 Andrew Azores <aazores@redhat.com> 815 816 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 817 (initializeMapForCodebase) returns boolean indicating if the given 818 codebase already existed. (addNewCodebase) do not add codebases if they 819 already exist 820 821 2014-03-12 Andrew Azores <aazores@redhat.com> 822 823 * netx/net/sourceforge/jnlp/resources/Messages.properties: 824 (PEFileModified, PEFileModifiedDetail) new messages 825 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 826 (fileWatcher, openAndParsePolicyFile, savePolicyFile) update to use 827 MD5SumWatcher to check if the file has changed externally since being 828 opened 829 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorTest.java: 830 URLs changed to example.com 831 832 2014-03-12 Andrew Azores <aazores@redhat.com> 833 834 * netx/net/sourceforge/jnlp/resources/Messages.properties: 835 (PECodebaseFlag) new message for policyeditor -help 836 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 837 (HELP_MESSAGE) added -codebase flag 838 * netx/policyeditor.1: updated -file and added -codebase and -help 839 840 2014-03-11 Andrew Azores <aazores@redhat.com> 841 842 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionTarget.java: 843 (TMPDIR) is java.io.tmpdir, not io.tmpdir 844 845 2014-03-11 Jiri Vanek <jvanek@redhat.com> 846 847 New java console made localizable. 848 *netx/net/sourceforge/jnlp/resources/Messages.properties: added new family of 849 keys (COP) for new console 850 *netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: where reasonable, 851 strings replaced by records in properties. 852 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: (rawData) and 853 (outputs) made final. 854 855 2014-03-11 Jiri Vanek <jvanek@redhat.com> 856 857 * netx/net/sourceforge/jnlp/resources/Messages.properties: added (CONSOLEClean) 858 key for new button 859 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: (update) 860 method enhanced for possibility to force refresh 861 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: added ButClean 862 button. (updateModel) overlaoded with force attribute. 863 864 2014-03-11 Jiri Vanek <jvanek@redhat.com> 865 866 * netx/policyeditor.1: Mentioned that it is more GUI then commandline tool 867 868 2014-03-11 Jiri Vanek <jvanek@redhat.com> 869 870 Implemented Permissions manifest entry handling. 871 * NEWS: mentioned Permissions attribute 872 * netx/net/sourceforge/jnlp/JNLPFile.java: new enum (ManifestBoolean) introduced 873 to replace true/false/null by TRUE/FALSE/UNDEFFINED. (isTrustedOnly), 874 (isTrustedLibrary), (isSandboxForced) and (processBooleanAttribute) moved 875 to use ManifestBoolean. 876 * netx/net/sourceforge/jnlp/resources/Messages.properties: Added (ButYes) (ButNo) 877 (MissingPermissionsMainTitle) and (MissingPermissionsInfo) keys 878 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: is now checking 879 (checkPermissionsAttribute) in (init). Implemented new (checkPermissionsAttribute) 880 method to handle Permissions attribute 881 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: can handle 882 (UNSIGNED_EAS_NO_PERMISSIONS_WARNING) 883 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: defined 884 (UNSIGNED_EAS_NO_PERMISSIONS_WARNING ) and (showMissingPermissionsAttributeDialogue) 885 * netx/net/sourceforge/jnlp/security/dialogs/MissingPermissionsAttributePanel.java: 886 new class, implementation of missing permissions attribute panel. 887 * netx/net/sourceforge/jnlp/security/dialogs/SecurityDialogPanel.java: changed 888 (initialFocusComponent) from package private to descendant visible 889 * tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: and 890 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: adapted to 891 (ManifestBoolean) and to Permissions attribute handling at all. 892 893 2014-03-10 Omair Majid <omajid@redhat.com> 894 895 * netx/javaws.1, 896 * netx/itweb-settings.1: Change "SYNOPSYS" to "SYNOPSIS". 897 * NEWS: Add itweb-setings man page. 898 899 2014-03-10 Andrew Azores <aazores@redhat.com> 900 901 Added MD5SumWatcher utility class to detect when a file's contents have been 902 changed on disk. 903 * netx/net/sourceforge/jnlp/util/FileUtils.java: (getFileMD5Sum) new 904 function 905 * netx/net/sourceforge/jnlp/util/MD5SumWatcher.java: new class 906 * tests/netx/unit/net/sourceforge/jnlp/util/MD5SumWatcherTest.java: new 907 tests for MD5SumWatcher 908 909 2014-03-10 Andrew Azores <aazores@redhat.com> 910 911 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissionsTest.java: 912 (testActionsRegex, testTargetRegex, testRegexesAgainstBadPermissionNames): 913 update after moving regexes from PolicyEditorPermissions into 914 CustomPermission 915 916 2014-03-10 Andrew Azores <aazores@redhat.com> 917 918 PolicyEditor parsing enhancements, new tests, and bugfixes 919 * NEWS: added entry for PolicyEditor 920 * netx/net/sourceforge/jnlp/resources/Messages.properties: 921 (PESaveAsMenuItemMnemonic, PEExitMenuItemMnemonic) changed mnemonic keys 922 due to masking with ctrl rather than alt 923 * netx/net/sourceforge/jnlp/security/policyeditor/CustomPermission.java: 924 (ACTIONS_PERMISSION, TARGET_PERMISSION, fromString) use regexes to parse 925 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: 926 (file) keep reference to File rather than String filePath. (getPermissions) 927 returns empty map rather than null. (setComponentMnemonic) new method. 928 (getCustomPermissions) new function. (openAndParsePolicyFile) check for 929 OpenFileResult FAILURE and NOT_FILE rather than null. (setupLayout) File, 930 Save, SaveAs, and Exit items modifier mask changed to Ctrl rather than Alt 931 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java: 932 (fromString) use regexes to parse, using CustomPermission as intermediate 933 representation 934 * netx/net/sourceforge/jnlp/util/FileUtils.java: 935 (testDirectoryPermissions) add check for getCanonicalFile and null 936 safeguarding. (testFilePermissions) add check for getCanonicalFile and 937 return FAILURE rather than null 938 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/CustomPermissionTest.java: 939 (testMissingQuotationMarks) new test 940 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorTest.java: 941 (testReturnedCustomPermissionsSetIsCopy, 942 testCodebaseTrailingSlashesDoNotMatch) new tests 943 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorParsingTest.java: 944 new tests 945 946 2014-03-10 Omair Majid <omajid@redhat.com> 947 948 * Makefile.am (install-data-local): Install itweb-settings.1. 949 * netx/itweb-settings.1: New file. 950 951 2014-03-10 Jiri Vanek <jvanek@redhat.com> 952 953 Added getter for java-abrt-connector on demand whitelist of fields. 954 * netx/net/sourceforge/jnlp/Launcher.java: (launch) saving (location.toExternalForm()) 955 via JNLPRuntime.saveHistory 956 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: (history) new static field 957 with getter (getHistory) and "setter" (saveHistory) 958 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: (handleInitializationMessage) 959 saving (documentBase) via JNLPRuntime.saveHistory 960 961 2014-03-10 Jiri Vanek <jvanek@redhat.com> 962 963 Actualized man page for javaws 964 * netx/javaws.1: made sync with current state 965 966 2014-03-10 Jiri Vanek <jvanek@redhat.com> 967 968 Fixed rhbz#1072013 969 * netx/net/sourceforge/jnlp/PluginBridge.java: The (fileLocation) of 970 JNLPFile is now properly set in constructor if not existing. 971 972 2014-03-06 Andrew Azores <aazores@redhat.com> 973 974 * NEWS: added -version flag entry 975 * netx/net/sourceforge/jnlp/resources/Messages.properties: (BOVersion) 976 new message for command line -version flag 977 * netx/net/sourceforge/jnlp/runtime/Boot.java: (main) added "-version" 978 flag 979 980 2014-03-05 Jiri Vanek <jvanek@redhat.com> 981 982 All security dialogs moved to appropriate package 983 * netx/net/sourceforge/jnlp/security/AccessWarningPane.java: to 984 * netx/net/sourceforge/jnlp/security/dialogs/AccessWarningPane.java: 985 * netx/net/sourceforge/jnlp/security/AppletWarningPane.java: to 986 * netx/net/sourceforge/jnlp/security/dialogs/AppletWarningPane.java: 987 * netx/net/sourceforge/jnlp/security/CertWarningPane.java: to 988 * netx/net/sourceforge/jnlp/security/dialogs/CertWarningPane.java 989 * netx/net/sourceforge/jnlp/security/CertsInfoPane.java: to 990 * netx/net/sourceforge/jnlp/security/dialogs/CertsInfoPane.java: 991 * netx/net/sourceforge/jnlp/security/MoreInfoPane.java: to 992 * netx/net/sourceforge/jnlp/security/dialogs/MoreInfoPane.java: 993 * netx/net/sourceforge/jnlp/security/NotAllSignedWarningPane.java: to 994 * netx/net/sourceforge/jnlp/security/dialogs/NotAllSignedWarningPane.java: 995 * netx/net/sourceforge/jnlp/security/PasswordAuthenticationPane.java: to 996 * netx/net/sourceforge/jnlp/security/dialogs/PasswordAuthenticationPane.java: 997 * netx/net/sourceforge/jnlp/security/SecurityDialogPanel.java: to 998 * netx/net/sourceforge/jnlp/security/dialogs/SecurityDialogPanel.java: 999 * netx/net/sourceforge/jnlp/security/SingleCertInfoPane.java: to 1000 * netx/net/sourceforge/jnlp/security/dialogs/SingleCertInfoPane.java: 1001 * netx/net/sourceforge/jnlp/security/AppTrustWarningDialog.java: to 1002 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/AppTrustWarningDialog.java: 1003 * netx/net/sourceforge/jnlp/security/AppTrustWarningPanel.java: to 1004 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/AppTrustWarningPanel.java: 1005 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningDialog.java: to 1006 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/UnsignedAppletTrustWarningDialog.java: 1007 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningPanel.java: to 1008 * netx/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/UnsignedAppletTrustWarningPanel.java: 1009 * tests/netx/unit/net/sourceforge/jnlp/security/AppTrustWarningPanelTest.java: to 1010 * tests/netx/unit/net/sourceforge/jnlp/security/dialogs/apptrustwarningpanel/AppTrustWarningPanelTest.java: 1011 * tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java: necessary changes 1012 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: necessary changes 1013 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: necessary changes 1014 * netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java: necessary changes 1015 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: necessary changes 1016 * netx/net/sourceforge/jnlp/security/KeyStores.java: necessary changes 1017 * netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java: necessary changes 1018 * netx/net/sourceforge/jnlp/security/CertificateUtils.java: necessary changes 1019 1020 2014-03-05 Jiri Vanek <jvanek@redhat.com> 1021 1022 * netx/net/sourceforge/jnlp/security/AppTrustWarningPanel.java: fixed 1023 layout so buttons do not disappear under radioboxes. 1024 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningPanel.java: 1025 added testable main method. 1026 1027 2014-03-05 Jiri Vanek <jvanek@redhat.com> 1028 1029 * tests/netx/unit/net/sourceforge/jnlp/security/AppTrustWarningPanelTest.java: 1030 removed unused imports 1031 * tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java: 1032 added test for plain * in ClasspathMatcher.ClasspathMatchers.compile() 1033 1034 2014-03-05 Matthias Klose <doko@ubuntu.com> 1035 1036 * launcher/launchers.in: Use bash as shebang. 1037 1038 2014-03-04 Andrew Azores <aazores@redhat.com> 1039 1040 * netx/net/sourceforge/jnlp/resources/Messages.properties: 1041 (SAppletTitle) new message 1042 * netx/net/sourceforge/jnlp/security/AppTrustWarningPanel.java: 1043 (buttons) new list of UI buttons. (getAllowButton, getRejectButton, 1044 addComponents) made final. 1045 (createButtonPanel) uses list of buttons rather than hardcoded. 1046 (helpButton) action made configurable. 1047 1048 2014-03-03 Omair Majid <omajid@redhat.com> 1049 1050 PR857 1051 * netx/net/sourceforge/jnlp/about/AboutDialog.java 1052 (run): Do not set look and feel. 1053 * netx/net/sourceforge/jnlp/runtime/Boot.java 1054 (main) <about>: Set look and feel before displaying dialog. 1055 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java 1056 (initialize): Set look and feel before any UI is created. 1057 * netx/net/sourceforge/jnlp/security/SecurityDialog.java 1058 (init): Do not set look and feel. 1059 (setSystemLookAndFeel): Removed. 1060 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java 1061 (createInstance): Do not set look and feel. 1062 * netx/net/sourceforge/jnlp/security/viewer/CertificateViewer.java 1063 (showCertificateViewer): Do not set look and feel. 1064 (setSystemLookAndFeel): Removed. 1065 1066 2014-03-03 Omair Majid <omajid@redhat.com> 1067 1068 PR1676 1069 * netx/net/sourceforge/jnlp/SecurityDesc.java: Add permission to 1070 read/write useLegacyMergeSort. 1071 1072 2014-03-03 Andrew Azores <aazores@redhat.com> 1073 1074 UnsignedAppletTrustWarningPanel logic moved into new abstract parent class 1075 AppTrustWarningPanel for reusability. 1076 * netx/net/sourceforge/jnlp/security/AppTrustWarningDialog.java: new class 1077 * netx/net/sourceforge/jnlp/security/AppTrustWarningPanel.java: new class 1078 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningPanel.java: 1079 major refactor into subclass of AppTrustWarningPanel 1080 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: 1081 (UnsignedWarningAction) references changed to AppSigningWarningAction 1082 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningDialog.java: same 1083 * tests/netx/unit/net/sourceforge/jnlp/security/AppTrustWarningPanelTest.java: 1084 new tests for AppTrustWarningPanel 1085 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExecuteUnsignedApplet.java: 1086 renamed, changed all references 1087 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExecuteAppletAction.java: 1088 (ExecuteUnsignedApplet) renamed to this 1089 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletActionTableModel.java: 1090 (ExecuteAppletAction) changed references 1091 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java: 1092 (ExecuteAppletAction) changed references 1093 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletActionEntry.java: 1094 (ExecuteAppletAction) changed references 1095 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: 1096 (ExecuteAppletAction) changed references 1097 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageExtendedImpl.java: 1098 (ExecuteAppletAction) changed references 1099 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageImpl.java: 1100 (ExecuteAppletAction) changed references 1101 1102 2014-02-28 Andrew Azores <aazores@redhat.com> 1103 1104 Added "Sandbox" button to CertWarning dialogs, allowing signed applets 1105 to be run with restricted permissions 1106 * netx/net/sourceforge/jnlp/resources/Messages.properties: (ButSandbox, 1107 LRunInSandboxError, LRunInSandboxErrorInfo, CertWarnRunTip, 1108 CertWarnSandboxTip, CertWarnCancelTip): new messages 1109 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (createInstance) 1110 added check to not display unsigned warning dialog if the cert warning 1111 dialog has been presented and the applet is sandboxed. 1112 (checkTrustWithUser) updated for Run In Sandbox functionality. 1113 (setRunInSandbox, userPromptedForSandbox) new functions 1114 * netx/net/sourceforge/jnlp/security/AppVerifier.java: 1115 (checkTrustWithUser) added SecurityDelegate param 1116 * netx/net/sourceforge/jnlp/security/CertWarningPane.java: added Sandbox 1117 button 1118 * netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java: 1119 (checkTrustWithUser) uses AppletAction enum type, calls 1120 JNLPClassLoader#setRunInSandbox if AppletAction is SANDBOX 1121 * netx/net/sourceforge/jnlp/security/PluginAppVerifier.java: same 1122 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: added 1123 (AppletAction) enum type. (showCertWarning) returns AppletAction 1124 rather than boolean 1125 * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java: 1126 (askUser) refactor to use AppletAction rather than boolean 1127 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: 1128 (checkTrustWithUser) added SecurityDelegate param 1129 * tests/netx/unit/net/sourceforge/jnlp/security/SecurityDialogsTest.java: 1130 (testGetIntegerResponseAsAppletAction) new tests for converting Object 1131 references into AppletActions 1132 1133 2014-02-28 Andrew Azores <aazores@redhat.com> 1134 1135 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 1136 (SecurityDelegate, SecurityDelegateImpl) new interface and implementation. 1137 Includes logic for Run In Sandbox, which is not yet used 1138 (initializeResources, setSecurity, activateJars, addNewJar) refactored to 1139 use SecurityDelegate 1140 1141 2014-02-27 Andrew Azores <aazores@redhat.com> 1142 1143 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: treat signed 1144 applets which load from the codebase as partially signed, and fix 1145 regression with signed applets loading main-classes from codebase 1146 * tests/reproducers/custom/SignedAppletCodebaseLoading/resources/SignedAppletCodebaseLoading.html: 1147 new test to ensure that signed applets with codebase loading can run 1148 * tests/reproducers/custom/SignedAppletCodebaseLoading/srcs/Makefile 1149 * tests/reproducers/custom/SignedAppletCodebaseLoading/srcs/SignedAppletCodebaseLoading.java 1150 * tests/reproducers/custom/SignedAppletCodebaseLoading/srcs/SignedAppletCodebaseLoadingHelper.java 1151 * tests/reproducers/custom/SignedAppletCodebaseLoading/testcases/SignedAppletCodebaseLoadingTests.java 1152 * tests/reproducers/custom/SignedAppletExternalMainClass/resources/SignedAppletExternalMainClass.html: 1153 new test to ensure that signed applets with codebase-loaded main-classes 1154 can run 1155 * tests/reproducers/custom/SignedAppletExternalMainClass/srcs/Makefile 1156 * tests/reproducers/custom/SignedAppletExternalMainClass/srcs/SignedAppletExternalMainClass.java 1157 * tests/reproducers/custom/SignedAppletExternalMainClass/srcs/SignedAppletExternalMainClassHelper.java 1158 * tests/reproducers/custom/SignedAppletExternalMainClass/testcases/SignedAppletExternalMainClassTest.java 1159 1160 2014-02-21 Jiri Vanek <jvanek@redhat.com> 1161 1162 * acinclude.m4: added (IT_CHECK_XULRUNNER_API_VERSION_CONSTCHAR) macro, 1163 Added (IT_CHECK_XULRUNNER_API_VERSION_C11) 1164 * configure.ac: added call of IT_CHECK_XULRUNNER_API_CONSTCHAR and 1165 IT_CHECK_XULRUNNER_API_VERSION_C11 1166 * plugin/icedteanp/IcedTeaNPPlugin.cc: (NP_GetMIMEDescription) 1167 return type set-up by dependency on defined LEGACY_XULRUNNERAPI. 1168 This one is set by IT_CHECK_XULRUNNER_API_VERSION during configure. 1169 if defined, then old char* is used. New const char* is used otherwise. 1170 1171 2014-02-20 Andrew Azores <aazores@redhat.com> 1172 1173 New simplified PolicyEditor for editing Java policy files, particularly 1174 user-level JNLP policies. 1175 * Makefile.am: added policyeditor launcher targets 1176 * netx/net/sourceforge/jnlp/controlpanel/PolicyPanel.java: 1177 (OpenFileResult, canOpenPolicyFile, testPolicyFileDirectory, 1178 showCouldNotOpenFileDialog, showReadOnlyDialog) moved into FileUtils. 1179 (PolicyPanel) added button for PolicyEditor. (launchSimplePolicyEditor) 1180 new function. (LaunchSimplePolicyEditorAction) new class, action for new 1181 button. 1182 * netx/net/sourceforge/jnlp/resources/Messages.properties: new messages 1183 for PolicyEditor 1184 * netx/net/sourceforge/jnlp/util/FileUtils.java: (OpenFileResult, 1185 testDirectoryPermissions, testFilePermissions, showReadOnlyDialog, 1186 showCouldNotOpenFileDialog) new functions 1187 * netx/net/sourceforge/jnlp/security/policyeditor/CustomPermission.java: 1188 new class 1189 * netx/net/sourceforge/jnlp/security/policyeditor/CustomPolicyViewer.java: 1190 new class 1191 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionActions.java: 1192 new class 1193 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionTarget.java: 1194 new class 1195 * netx/net/sourceforge/jnlp/security/policyeditor/PermissionType.java: new 1196 class 1197 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java: new 1198 class 1199 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java: 1200 new class 1201 * netx/net/sourceforge/jnlp/security/policyeditor/PolicyEntry.java: new 1202 class 1203 * policyeditor.desktop.in: new launcher desktop file 1204 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/CustomPermissionTest.java: 1205 new class 1206 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PermissionActionsTest.java: 1207 new class 1208 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PermissionTargetTest.java: 1209 new class 1210 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PermissionTypeTest.java: 1211 new class 1212 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissionsTest.java: 1213 new class 1214 * tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/PolicyEditorTest.java: 1215 new class 1216 1217 2014-02-19 Michal Vyskocil <mvyskocil@suse.com> 1218 1219 Put link flags to the end of gcc command line to prevent link failures 1220 Make sure that path to PUBLIC_KEYSTORE exists to prevent keytool fail 1221 * tests/softkiller/Makefile: put -lX11 to the end of command line 1222 * Makefile.am: if path to PUBLIC_KEYSTORE does not exists, make it 1223 1224 2014-02-13 Jiri Vanek <jvanek@redhat.com> 1225 1226 Get rid of ConcurrentModificationException in Console output. 1227 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPaneModel.java: (importList) 1228 now synchronise over original data, instead of (somtimes by) copy as, wrongly, before. 1229 1230 2014-02-13 Jiri Vanek <jvanek@redhat.com> 1231 1232 Added possibility to follow redirects for javaws in demand by 1233 -allowredirect switch. 1234 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java: added inner class 1235 (CodeWithRedirect), which stores server result and possible redirection target 1236 (getUrlResponseCode) is only wrapper around new (getUrlResponseCodeWithRedirectonResult) 1237 which returns (CodeWithRedirect). It fills url form Location header field if 1238 any. (findBestUrl) now follow 301,302,303,307,308 redirects if enabled 1239 and valid - otherwise new (RedirectionException) is thrown. 1240 * netx/net/sourceforge/jnlp/resources/Messages.properties: described 1241 -allowredirect by (BOredirect) key. 1242 * netx/net/sourceforge/jnlp/runtime/Boot.java: and 1243 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: added handling of 1244 -allowredirect. New (allowRedirect) field. 1245 1246 2014-02-12 Jiri Vanek <jvanek@redhat.com> 1247 1248 Fixed behaviour of href in jnlp file to correctly download another it if it is remote 1249 * netx/net/sourceforge/jnlp/Launcher.java: (fromUrl) if file is not local, and 1250 have href and href point elsewhere, then it is used as future jnlpfile 1251 * tests/reproducers/simple/GeneratedId/testcases/GeneratedIdTest.java: 1252 (launchRemoteChangedFileWithHref) adapted to new behaviour 1253 1254 2014-02-12 Jiri Vanek <jvanek@redhat.com> 1255 1256 Implemented Codebase manifest entry handling. 1257 * netx/net/sourceforge/jnlp/JNLPFile.java: manifests names constants moved into 1258 ManifestsAttributes inner class.(getCallerAllowableCodebase) (getApplicationLibraryAllowableCodebase) 1259 (getCodebase) (getCodeBaseMatchersAttribute) (getCodeBaseMatchersAttribute) are 1260 now returning (ClasspathMatcher.ClasspathMatchers). added boolean access to (isTrustedOnly) 1261 (isTrustedLibrary). 1262 * netx/net/sourceforge/jnlp/resources/Messages.properties: added (CBCheckFile) 1263 (CBCheckNoEntry) (CBCheckUnsignedPass) (CBCheckUnsignedPass) (CBCheckOkSignedOk) 1264 (CBCheckOkSignedOk) (CBCheckOkSignedOk) keys to inform about Classpath validation 1265 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: in Init call new method 1266 (checkCodebaseAttribute) which check the codebase manifest entry. 1267 * netx/net/sourceforge/jnlp/util/ClasspathMatcher.java: New class, responsible 1268 for matching Classpath like pattern with URL 1269 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: added tests to 1270 cover all newly accessible attributes from JNLPFile.ManifestsAttributes 1271 * tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java: mostly 1272 corner and must-fullfill cases tests. 1273 * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: (assertNoFileLeak) 1274 have timeout before actual countings. JVM needs time to propagate cleanup. 1275 * tests/reproducers/signed/CodeBaseManifestEntrySignedMatching/: 1276 * tests/reproducers/signed/CodeBaseManifestEntrySignedNotMatching/: 1277 * tests/reproducers/simple/CodeBaseManifestEntryUnsignedMatching/: 1278 *tests/reproducers/simple/CodeBaseManifestEntryUnsignedNotMatching/: 1279 New set of reproducers to test Codebases processing. All testcas are in 1280 (CodeBaseManifestEntrySignedMatching) so they can share code. 1281 1282 2014-02-11 Andrew Azores <aazores@redhat.com> 1283 1284 Partial revert of 7933143a1286, refactoring to move 1285 codebase-loading-enabling logic out of Launcher and into JNLPClassLoader. 1286 * netx/net/sourceforge/jnlp/Launcher.java: (createApplet, 1287 createAppletObject): handle enableCodebase again 1288 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (enableCodebase): 1289 re-added, codebase enabling logic moved back out into Launcher 1290 1291 2014-02-05 Jiri Vanek <jvanek@redhat.com> 1292 1293 Added salt to plugin-java pipes' directory (fixing RH1010958) 1294 * plugin/icedteanp/IcedTeaNPPlugin.cc: (cleanUpDir) new utility method 1295 to clean up pipes directory. (start_jvm_if_needed) is now returning 1296 error status and creating salt in directory name. (initialize_data_directory) 1297 now add salt to the name. 1298 * plugin/icedteanp/IcedTeaNPPlugin.h: changed declaration of (start_jvm_if_needed) 1299 1300 2014-02-04 Jacob Wisor <gitne@gmx.de> 1301 1302 Added missing PL localized messages 1303 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties: added 1304 RCantOpenFile RCantWriteFile RFileReadOnly RExpectedFile CPPolicyDetail 1305 CPPolicyTooltip CPPolicyEditorNotFound CPButPolicy CPHeadPolicy 1306 CPTabPolicy. Modified SSigUnverified SSigVerified SSignatureError 1307 1308 2014-02-04 Jacob Wisor <gitne@gmx.de> 1309 1310 Added missing DE localized messages 1311 * netx/net/sourceforge/jnlp/resources/Messages_de.properties: added 1312 RCantOpenFile RCantWriteFile RFileReadOnly RExpectedFile CPPolicyDetail 1313 CPPolicyTooltip CPPolicyEditorNotFound CPButPolicy CPHeadPolicy 1314 CPTabPolicy. Modified SSigUnverified SSigVerified SSignatureError 1315 1316 2014-01-31 Jacob Wisor <gitne@gmx.de> 1317 1318 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPaneModel.java: 1319 (importList) Separate XHTML fix due to revision 884 1320 1321 2014-01-30 Jacob Wisor <gitne@gmx.de> 1322 1323 * Javadoc, XHTML conformance, and formatting cleanup 1324 1325 2014-01-30 Andrew Azores <aazores@redhat.com> 1326 1327 * NEWS: added entry for PolicyPanel 1328 * netx/net/sourceforge/jnlp/controlpanel/PolicyPanel.java: added 1329 class-level Javadoc comment, made some local variables final, added 1330 reflective fallback case for JRE 6 PolicyTool location 1331 1332 2014-01-29 Andrew Azores <aazores@redhat.com> 1333 1334 Fix for regression due to PR1513 fix. ClassLoader was too optimistic about 1335 finding codebase main-classes and so the not-all-signed dialog would 1336 appear even for applets that were entirely broken and could not be loaded 1337 at all. 1338 * netx/net/sourceforge/jnlp/Launcher.java: (createApplet, 1339 createAppletObject) pass enableCodeBase to JNLPClassLoader 1340 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (enableCodeBase) 1341 removed, now done by constructor argument. (checkNotAllSignedWithUser) 1342 minor refactor. (initializeResources) actually check if main-class is 1343 loadable from codebase when this is suspected, rather than assuming it 1344 will be there 1345 1346 2014-01-27 Andrew Azores <aazores@redhat.com> 1347 1348 MixedSigningApplet reproducer (PR1592) moved into custom reproducer. JNLP 1349 files generated per-test rather than premade. Many new tests added. 1350 * tests/reproducers/custom/MixedSigningApplet/resources/MixedSigningApplet.html: 1351 moved to custom reproducer 1352 * tests/reproducers/custom/MixedSigningApplet/resources/MixedSigningApplet.jnlp: 1353 moved to custom reproducer and now used as template by testcases file 1354 * tests/reproducers/custom/MixedSigningApplet/srcs/Makefile: new Makefile 1355 for custom reproducer 1356 * tests/reproducers/custom/MixedSigningApplet/srcs/MixedSigningAppletHelper.java 1357 * tests/reproducers/custom/MixedSigningApplet/srcs/MixedSigningAppletSigned.java 1358 * 1359 tests/reproducers/custom/MixedSigningApplet/testcases/MixedSigningAppletSignedTests.java: 1360 new tests added, JNLP files generated per-test rather than all prepackaged 1361 * tests/reproducers/signed/MixedSigningAppletSigned/srcs/MixedSigningAppletSigned.java: 1362 moved to custom reproducer 1363 * tests/reproducers/signed/MixedSigningAppletSigned/testcases/MixedSigningAppletSignedTests.java 1364 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-1.jnlp 1365 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-2.jnlp 1366 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-3.jnlp 1367 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-4.jnlp 1368 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-5.jnlp 1369 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-6.jnlp 1370 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet.html 1371 * tests/reproducers/simple/MixedSigningApplet/srcs/MixedSigningAppletHelper.java 1372 1373 2014-01-27 Jiri Vanek <jvanek@redhat.com> 1374 1375 Tuning of properties loading. 1376 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: added 1377 (resetToDefaults) methods to set default values to map. 1378 (loadSystemConfiguration) now throws ConfigurationException. Added more 1379 verbose error messages. The ioexception is now also cause of ConfigurationException 1380 if mandatory is on. 1381 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: now correctly fails to 1382 initiate if ConfigurationException appeared. 1383 Init of (configuration) now catch general exception, and fall back to default 1384 (instead of die fatally with NoClassDefFoundError). User is warned. 1385 * netx/net/sourceforge/jnlp/resources/Messages.properties: new key of 1386 (RFailingToDefault) added. 1387 1388 2014-01-24 Andrew Azores <aazores@redhat.com> 1389 1390 http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2014-January/025971.html 1391 * netx/net/sourceforge/jnlp/controlpanel/PolicyPanel.java: added license 1392 header and javadocs. Launch PolicyTool by ProcessBuilder rather than 1393 calling PolicyTool.main directly, with reflective launch fallback method. 1394 * netx/net/sourceforge/jnlp/resources/Messages.properties: added message 1395 (CPPolicyEditorNotFound) 1396 1397 2014-01-23 Omair Majid <omajid@redhat.com> 1398 1399 * Makefile.am [ENABLE_DOCS] [JAVADOC_SUPPORTS_J_OPTIONS]: 1400 Don't specify perm gen size. 1401 1402 2014-01-23 Omair Majid <omajid@redhat.com> 1403 1404 * netx/net/sourceforge/jnlp/JNLPFile.java, 1405 * netx/net/sourceforge/jnlp/NetxPanel.java, 1406 * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java, 1407 * netx/net/sourceforge/jnlp/cache/CacheUtil.java, 1408 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java, 1409 * netx/net/sourceforge/jnlp/config/DirectoryValidator.java, 1410 * netx/net/sourceforge/jnlp/config/Setting.java, 1411 * netx/net/sourceforge/jnlp/controlpanel/AdvancedProxySettingsDialog.java, 1412 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java, 1413 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java, 1414 * netx/net/sourceforge/jnlp/runtime/RhinoBasedPacEvaluator.java, 1415 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java, 1416 * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java, 1417 * netx/net/sourceforge/jnlp/services/XSingleInstanceService.java, 1418 * netx/net/sourceforge/jnlp/util/FileUtils.java, 1419 * netx/net/sourceforge/jnlp/util/JarFile.java, 1420 * netx/net/sourceforge/nanoxml/XMLElement.java, 1421 * netx/net/sourceforge/nanoxml/XMLParseException.java, 1422 * plugin/icedteanp/java/sun/applet/PluginStreamHandler.java: Fix incorrect 1423 parameter names, throws declerations and malformed html in javadocs. 1424 1425 2014-01-20 Jiri Vanek <jvanek@redhat.com> 1426 1427 Added Christmas splashscreen extension. 1428 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java: 1429 base colors are derived from active extension. And extension is painted (if any) 1430 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/ErrorPainter.java: 1431 same 1432 * netx/net/sourceforge/jnlp/splashscreen/parts/extensions/ChristmasExtension.java: 1433 extension valid in Christmas time, painting falling stars and dimming colors. 1434 * netx/net/sourceforge/jnlp/splashscreen/parts/extensions/ExtensionManager.java 1435 provider of extension. Know only the Christmas one right now. 1436 * netx/net/sourceforge/jnlp/splashscreen/parts/extensions/NoExtension.java: 1437 no op extension for no extension times 1438 * netx/net/sourceforge/jnlp/splashscreen/parts/extensions/SplashExtension.java: 1439 unfinished extension interface 1440 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashScreenTest.java: 1441 and 1442 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java: 1443 adapted to current purposes 1444 1445 2014-01-20 Jiri Vanek <jvanek@redhat.com> 1446 1447 Added support for system level linux logging 1448 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: exclusive 1449 handling for system critical *java* messages when system logging is on. 1450 * netx/net/sourceforge/jnlp/util/logging/UnixSystemLog.java: implemented 1451 call to logger 1452 * plugin/icedteanp/IcedTeaPluginUtils.h: error messages logged to syslog 1453 * plugin/icedteanp/java/sun/applet/PluginDebug.java: default messages 1454 are now MESSAGE_DEBUG instead of ERROR_ALL 1455 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.c: adapted to system logging 1456 1457 2014-01-17 Andrew Azores <aazores@redhat.com> 1458 1459 Added itweb-settings panel to explain custom policy files and allow 1460 launching a policy editor for user's policy file. 1461 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: 1462 (createMainSettingsPanel, createPolicySettingsPanel) added PolicyPanel 1463 * netx/net/sourceforge/jnlp/resources/Messages.properties: new messages 1464 for PolicyPanel 1465 * netx/net/sourceforge/jnlp/controlpanel/PolicyPanel.java: new panel to 1466 allow launching of external policy editor 1467 * tests/reproducers/simple/CustomPolicies/resources/CustomPolicies.html: 1468 new test to ensure custom user policy files work correctly 1469 * tests/reproducers/simple/CustomPolicies/resources/CustomPoliciesApplet.jnlp 1470 * tests/reproducers/simple/CustomPolicies/resources/CustomPoliciesApplication.jnlp 1471 * tests/reproducers/simple/CustomPolicies/resources/CustomPoliciesJnlpHref.html 1472 * tests/reproducers/simple/CustomPolicies/srcs/CustomPolicies.java 1473 * tests/reproducers/simple/CustomPolicies/testcases/CustomPoliciesTest.java 1474 1475 2014-01-17 Andrew Azores <aazores@redhat.com> 1476 1477 Fixes JS reproducer regression. 1478 http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2014-January/025764.html 1479 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: (hasMethod) fixed 1480 regression from rev 757:ee92f55c69a3 1481 1482 2014-01-16 Jiri Vanek <jvanek@redhat.com> 1483 1484 Reproducers stabilization by removing check for not presented general Exception 1485 or error. 1486 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: removed 1487 legacy debug call 1488 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: as in subject, 1489 and same in others 1490 * tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java: 1491 * tests/reproducers/signed/ClasspathManifestTest/testcases/ClasspathManifestTest.java: 1492 * tests/reproducers/signed/ClipboardContentSigned/testcases/ClipboardContentSignedTests.java: 1493 * tests/reproducers/signed/InternalClassloaderWithDownloadedResource/testcases/InternalClassloaderWithDownloadedResourceTest.java: 1494 * tests/reproducers/signed/Spaces can be everywhere signed/testcases/SpacesCanBeEverywhereTestsSigned.java: 1495 * tests/reproducers/signed2/MultipleSignaturesTest/testcases/MultipleSignaturesTestTests.java: 1496 * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: 1497 * tests/reproducers/simple/JSToJSet/testcases/JSToJSetTest.java: 1498 * tests/reproducers/simple/LocalisedInformationElement/testcases/LocalisedInformationElementTest.java: 1499 * tests/reproducers/simple/ParametrizedJarUrl/testcases/ParametrizedJarUrlTests.java: 1500 * tests/reproducers/simple/Spaces can be everywhere/testcases/SpacesCanBeEverywhereTests.java: 1501 * tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java: 1502 * tests/reproducers/simple/encodingTestsÄÅ ÄÅÅœÃÃÃÃÄÃÅÅ€ÃÃÅ®ÃÃÃÅ ÄŜŹÅ/testcases/EncodingTestTest.java: 1503 * tests/reproducers/simple/simpletest1/testcases/SimpleTest1Test.java: 1504 1505 2014-01-15 Jiri Vanek <jvanek@redhat.com> 1506 1507 Fixed memory leak detector to correctly handle pre_init_messages queue. 1508 * plugin/icedteanp/IcedTeaPluginUtils.cc: implemented (reset_pre_init_messages) 1509 method. 1510 * plugin/icedteanp/IcedTeaPluginUtils.h: declared (reset_pre_init_messages). 1511 * tests/cpp-unit-tests/MemoryLeakDetector.h: (reset_global_state) called 1512 (reset_pre_init_messages). 1513 1514 2014-01-09 Andrew Azores <aazores@redhat.com> 1515 1516 * html-gen.sh: made more idiomatic and removed some bashisms 1517 1518 2014-01-06 Jiri Vanek <jvanek@redhat.com> 1519 1520 Copy all button in console controls sorts by date by default. 1521 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: added 1522 (sortCopyAll) checkbox. Logic from (copyPlainActionPerformed) and 1523 (copyRichActionPerformed) extracted to new (fillClipBoard) which also 1524 used correct call of ConsoleOutputPaneModel.importList based on 1525 (sortCopyAll) value. 1526 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPaneModel.java: 1527 added abstraction for (importList) to allow sorting via parameter 1528 1529 2014-01-06 Jiri Vanek <jvanek@redhat.com> 1530 1531 Removed dependence on sun.misc.BASE64Decoder 1532 * configure.ac: removed check for sun.misc.BASE64Decoder 1533 * netx/net/sourceforge/jnlp/PluginBridge.java : sun.misc.BASE64Decoder 1534 import replaced by net.sourceforge.jnlp.util.replacements.BASE64Decoder 1535 * netx/net/sourceforge/jnlp/util/replacements/BASE64Decoder.java: new 1536 file, in-tree copy from jdk7 1537 * netx/net/sourceforge/jnlp/util/replacements/CharacterDecoder.java: likewise 1538 * tests/netx/unit/net/sourceforge/jnlp/util/replacements/BASE64DecoderTest.java: 1539 new tests for new files 1540 * tests/netx/unit/net/sourceforge/jnlp/util/replacements/BASE64EncoderTest.java: 1541 (getAndInvokeMethod), (encoded) and (sSrc) made public final. Corrected 1542 usage of (encoded2), added new test (testEmbededBase64EncoderAgainstEbededDecoder) 1543 to test with internal decoder. 1544 1545 2014-01-02 Andrew Azores <aazores@redhat.com> 1546 1547 Added ChangeLog revision hyperlinking to html-gen.sh 1548 * html-gen.sh: ChangeLog dates made hyperlinks to corresponding commits 1549 1550 2013-12-27 Andrew Azores <aazores@redhat.com> 1551 1552 Resolve deadlock issue in JNLPClassLoader. See 1553 http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-December/025546.html 1554 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) 1555 removed. (available, jarIndexes, classpaths, jarEntries, jarLocationSecurityMap) 1556 fields wrapped in Collections.synchronized*() to provide atomic read/write. 1557 Synchronized on while iterating over these collections. (loadClass) no longer 1558 uses implicit JNLPClassLoader instance lock nor dedicated loadClassLock object. 1559 1560 2013-12-20 Jiri Vanek <jvanek@redhat.com> 1561 1562 Rewritten java console 1563 * netx/net/sourceforge/jnlp/Launcher.java: fatal error from lunch can reach console 1564 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: new console, 1565 controls 1566 * netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPaneModel.java: data 1567 manager of new console. 1568 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: removed old gui, 1569 now using multiple 1-n instances of ConsoleOutputPane with theirs models. 1570 (addMessage) now receive MessageWithHeader object instead body and header. 1571 * netx/net/sourceforge/jnlp/util/logging/headers/Header.java: have not null 1572 defaults 1573 * netx/net/sourceforge/jnlp/util/logging/headers/ObservableMessagesProvider.java: 1574 abstraction of datasource for new console 1575 * tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java: 1576 adapted. 1577 1578 2013-12-20 Jiri Vanek <jvanek@redhat.com> 1579 1580 fixed CacheLRUWrapperTest 1581 * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java: (cacheDir) and 1582 (cacheOrder) made package private for testing purposes. 1583 * tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java: 1584 True testing cache file is now prepared, tested, and removed. 1585 the CacheLRUWrapper is using this testing repo. 1586 1587 2013-12-20 Jiri Vanek <jvanek@redhat.com> 1588 1589 finished removal of legacy xulrunner api 1590 * acinclude.m4: (IT_CHECK_XULRUNNER_API_VERSION) removed 1591 * configure.ac: likewise 1592 1593 2013-12-20 Jiri Vanek <jvanek@redhat.com> 1594 1595 singletons logic, logs and test cleanup/fixes 1596 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: 1597 config singleton made properly synchronized via Holder pattern 1598 (DeploymentConfigurationHolder). 1599 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: same, 1600 (JavaConsoleHolder). Console gui initialized on show, not on creation. 1601 Removed look and feel. (addMessage) gui update adapted. 1602 * netx/net/sourceforge/jnlp/util/logging/LogConfig.java: made private, 1603 singleton handled via LogConfigHolder. 1604 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: mentioned 1605 issue with (getConfiguration), removed obsoleted (MessageWithLevel), 1606 (messageQue) retyped to <MessageWithHeader>, (consume) adapted. 1607 (consumerThread) made global variable, ist start moved to (startConsumer) 1608 which is called after initialisation of config singleton. Logs queing 1609 moved to (log) of (MessageWithHeader) signature. (FileLogHolder) and 1610 (SystemLogHolder) created for holder pattern synchronization. 1611 * netx/net/sourceforge/jnlp/util/logging/headers/Header.java: constructor 1612 and (getCaller) adaptation. 1613 * netx/net/sourceforge/jnlp/util/logging/headers/PluginHeader.java: fixed 1614 (toString) for preinit messages. 1615 * tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java: 1616 removed erroneous stdout. 1617 * tests/test-extensions/net/sourceforge/jnlp/util/logging/NoStdOutErrTest.java: 1618 is no longer throwing exceptions (was causing errors in junit) and synchronized. 1619 1620 2013-12-17 Jiri Vanek <jvanek@redhat.com> 1621 1622 JNLPRuntime.config changed to proper singleton. 1623 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: added 1624 field with getter rand setter to save loading exception. 1625 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: (config) field is no 1626 longer initialized in static block, but on demand in (getConfig). 1627 (initialize) no longer load (config) nor exit on loading exception, but 1628 warn in case that it have loading exception. (initialize) call to 1629 KeyStores.setConfiguration is using (getConfig) instead (config). 1630 (initialize) call to BrowserAwareProxySelector constructor likewise. 1631 (getConfig) is initializing and loading (config), marking exception and sterr 1632 it in case of debug on. Made synchronized. 1633 * netx/net/sourceforge/jnlp/resources/Messages.properties: (RConfigurationError) 1634 enhanced to fit. 1635 * netx/net/sourceforge/jnlp/util/logging/LogConfig.java: no longer use own 1636 copy of (config) but using (JNLPRuntime.getConfig). 1637 1638 2013-12-15 Jiri Vanek <jvanek@redhat.com> 1639 1640 Console made aware of plugin messages 1641 * NEWS : mentioned 1642 * netx/net/sourceforge/jnlp/util/logging/FileLog.java: call to log adapted 1643 to new Header. 1644 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: (logOutput) and 1645 (logError) replaced by (addMessage). Added (createPluginReader) to process 1646 plugin debug pipe 1647 * netx/net/sourceforge/jnlp/util/logging/LogConfig.java: (getConfig) do 1648 config available untill JNLPRuntime config is proper singleton 1649 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: (Level) 1650 static methods converted to members and enhanced. (getHeader) and 1651 (getCallerClass) moved to Headers. 1652 * netx/net/sourceforge/jnlp/util/logging/headers/Header.java: Structure 1653 to keep header as object instead of string. 1654 * netx/net/sourceforge/jnlp/util/logging/headers/JavaMessage.java: Structure 1655 to hold message and its header. 1656 * netx/net/sourceforge/jnlp/util/logging/headers/MessageWithHeader.java: 1657 Interface for JavaMessage and PluginMessage 1658 * netx/net/sourceforge/jnlp/util/logging/headers/PluginHeader.java: extended 1659 header to handle plugin's preinit and threads. 1660 * netx/net/sourceforge/jnlp/util/logging/headers/PluginMessage.java: 1661 implementation of MessageWithHeader which parse from String from plugin 1662 debug pipe. 1663 * plugin/icedteanp/IcedTeaNPPlugin.cc: added debug pipe (debug_pipe_name), 1664 synced via (debug_pipe_lock), controlled by (debug_to_appletviewer) and used 1665 by method (plugin_send_message_to_appletviewer_console). 1666 * plugin/icedteanp/IcedTeaNPPlugin.h: (debug_pipe_name) and (jvvm_up) declared 1667 extern. Utility methods (plugin_send_message_to_appletviewer_console) and 1668 (flush_plugin_send_message_to_appletviewer_console) declared and impelmented 1669 * plugin/icedteanp/IcedTeaPluginUtils.cc: print debug info enhanced for 1670 debug pipe 1671 * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_MESSAGE) and (PLIGIN_ERROR) 1672 now log to debug pipe if enabled. 1673 * plugin/icedteanp/java/sun/applet/PluginMain.java: args reprinted, checked 1674 third parameter debug pipe if should. Started debug_pipe reader if should 1675 * tests/netx/unit/net/sourceforge/jnlp/util/logging/JavaConsoleTest.java: 1676 added tests for parsing the plugin message. 1677 1678 2013-12-13 Jiri Vanek <jvanek@redhat.com> 1679 1680 Made again compatible with JDK6.All JLists, JComboBoxs, and DefaultComboBoxModels 1681 moved back to be not generics-like 1682 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java 1683 * netx/net/sourceforge/jnlp/controlpanel/DebuggingPanel.java 1684 * netx/net/sourceforge/jnlp/controlpanel/DesktopShortcutPanel.java 1685 * netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java 1686 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java 1687 * netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java 1688 1689 2013-12-13 Jiri Vanek <jvanek@redhat.com> 1690 1691 itw itself warning cleanup: fixed rawtypes and unchecks, added braces and Override 1692 * netx/net/sourceforge/jnlp/JREDesc.java 1693 * netx/net/sourceforge/jnlp/Launcher.java 1694 * netx/net/sourceforge/jnlp/Node.java 1695 * netx/net/sourceforge/jnlp/Parser.java 1696 * netx/net/sourceforge/jnlp/PluginBridge.java 1697 * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java 1698 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java 1699 * netx/net/sourceforge/jnlp/controlpanel/CachePane.java 1700 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java 1701 * netx/net/sourceforge/jnlp/controlpanel/DebuggingPanel.java 1702 * netx/net/sourceforge/jnlp/controlpanel/DesktopShortcutPanel.java 1703 * netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java 1704 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java 1705 * netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java 1706 * netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java 1707 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java 1708 * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java 1709 * netx/net/sourceforge/jnlp/security/CertWarningPane.java 1710 * netx/net/sourceforge/jnlp/security/CertsInfoPane.java 1711 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageImpl.java 1712 * netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java 1713 * netx/net/sourceforge/jnlp/services/ServiceUtil.java 1714 * netx/net/sourceforge/jnlp/splashscreen/impls/DefaultErrorSplashScreen2012.java 1715 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/NatCubic.java 1716 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/SplinesDefs.java 1717 * netx/net/sourceforge/jnlp/util/Reflect.java 1718 * netx/net/sourceforge/jnlp/util/ui/NonEditableTableModel.java 1719 * netx/net/sourceforge/nanoxml/XMLElement.java 1720 * plugin/icedteanp/java/sun/applet/MethodOverloadResolver.java 1721 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java 1722 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 1723 * tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java 1724 1725 2013-12-13 Jiri Vanek <jvanek@redhat.com> 1726 1727 unittests warning cleanup: fixed typechecks, rawtypes, redundant casts... 1728 * tests/junit-runner/CommandLine.java 1729 * tests/junit-runner/JunitLikeXmlOutputListener.java 1730 * tests/junit-runner/LessVerboseTextListener.java 1731 * tests/netx/unit/net/sourceforge/jnlp/PluginBridgeTest.java 1732 * tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java 1733 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashUtilsTest.java 1734 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashUtilsTest.java 1735 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/DescriptionInfoItemTest.java 1736 * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java 1737 * tests/netx/unit/net/sourceforge/jnlp/util/XDesktopEntryTest.java 1738 * tests/netx/unit/net/sourceforge/jnlp/util/replacements/BASE64EncoderTest.java 1739 * tests/netx/unit/sun/applet/PluginAppletViewerTest.java 1740 * tests/test-extensions/net/sourceforge/jnlp/LoggingBottleneck.java 1741 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java 1742 * tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java 1743 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java 1744 * tests/test-extensions/net/sourceforge/jnlp/awt/awtactions/KeyboardActions.java 1745 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/RulesFolowingClosingListener.java 1746 * netx/net/sourceforge/jnlp/util/ScreenFinder.java: centering of screen 1747 fixed to work also in headless mode by returrning some defaults 1748 1749 2013-12-09 Jiri Vanek <jvanek@redhat.com> 1750 1751 * Messages.properties: added "It will be granted unrestricted access to your computer." 1752 to (SSigUnverified) (SSigVerified) (SSignatureError) messages. 1753 1754 2013-12-05 Andrew Azores <aazores@redhat.com> 1755 1756 * netx/net/sourceforge/jnlp/resources/Messages.properties: add units to 1757 (TIFPCacheSize) 1758 1759 2013-12-03 Andrew Azores <aazores@redhat.com> 1760 1761 Tests for PR1592. 1762 * tests/reproducers/signed/MixedSigningAppletSigned/srcs/MixedSigningAppletSigned.java: 1763 new tests for per-JAR applet security 1764 * tests/reproducers/signed/MixedSigningAppletSigned/testcases/MixedSigningAppletSignedTests.java: 1765 same 1766 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-1.jnlp: 1767 same 1768 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-2.jnlp: 1769 same 1770 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-3.jnlp: 1771 same 1772 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-4.jnlp: 1773 same 1774 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-5.jnlp: 1775 same 1776 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet-6.jnlp: 1777 same 1778 * tests/reproducers/simple/MixedSigningApplet/resources/MixedSigningApplet.html: 1779 same 1780 * tests/reproducers/simple/MixedSigningApplet/srcs/MixedSigningAppletHelper.java: 1781 same 1782 1783 2013-12-03 Andrew Azores <aazores@redhat.com> 1784 1785 Fix/new feature for PR1592. Each JAR in partially signed applets is 1786 assigned its own security level, rather than forcing the entire applet to 1787 run sandboxed. 1788 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 1789 (initializeResources) 1790 each JAR in partially signed applets is assigned its own security 1791 descriptor. 1792 (signing) changed to three-valued enum. (checkNotAllSignedWithUser) new 1793 method 1794 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: (isJarSigned) new 1795 method 1796 1797 2013-11-29 Jiri Vanek <jvanek@redhat.com> 1798 1799 Better validation of crytical dirs with proper message on startup 1800 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: small 1801 refactoring to match the new directory validator pattern. 1802 * netx/net/sourceforge/jnlp/config/DirectoryValidator.java: new class to verify 1803 if directory have necessary permissions (like creating subdirectories, 1804 read and write files created in). 1805 * netx/net/sourceforge/jnlp/resources/Messages.properties: patterns for 1806 validation results 1807 * netx/net/sourceforge/jnlp/runtime/Boot.java: headless determination moved 1808 as up as possible in (main) 1809 * tests/netx/unit/net/sourceforge/jnlp/config/DeploymentConfigurationTest.java: 1810 Few test testing what DirtectoryValidator should validate. 1811 1812 2013-11-29 Jiri Vanek <jvanek@redhat.com> 1813 1814 Pipes moved into XDG_RUNTIME_DIR 1815 * plugin/icedteanp/IcedTeaNPPlugin.cc: (initialize_data_directory) logic 1816 responsible for tmp dir path moved into (getTmpPath) and (data_directory) 1817 initialized from (getRuntimePath) rather. 1818 * plugin/icedteanp/IcedTeaPluginUtils.cc: (getTmpPath) new function, 1819 provides path to tmp dir. (getRuntimePath) new function resolving 1820 XDG_RUNTIME_DIR value, returning (getTmpPath) as fallback. 1821 * plugin/icedteanp/IcedTeaPluginUtils.h: declared new two methods. 1822 1823 2013-11-29 Jiri Vanek <jvanek@redhat.com> 1824 1825 Enabled file logging in plugin, user enabled to choose logs dir. 1826 * netx/net/sourceforge/jnlp/controlpanel/DebuggingPanel.java: added 1827 text-field to show/edit logs' destination. Added reset to default button. 1828 * netx/net/sourceforge/jnlp/resources/Messages.propertie: added proper 1829 keys for new controls (CPFilesLogsDestDir) and (CPFilesLogsDestDirResert). 1830 (DPEnableLogging) changed to "Enable debugging", as it is better. 1831 * netx/net/sourceforge/jnlp/util/logging/FileLog.java: Filename of logs 1832 changed to be human readable and to distinguish between c/java 1833 * plugin/icedteanp/IcedTeaNPPlugin.cc: made aware of console (plugin_debug_to_console) 1834 added stream to log into file (plugin_file_log) and holder of name (plugin_file_log_name) 1835 Added various new lines to end of erorr/debug messages. Stream flushed, 1836 not closed on plugin shutdown. 1837 * plugin/icedteanp/IcedTeaNPPlugin.h: extern above three fields. 1838 * plugin/icedteanp/IcedTeaParseProperties.cc: added functionality to provide 1839 set or default log dir (get_log_dir), added (is_java_console_enabled) 1840 to determine logging to console 1841 * plugin/icedteanp/IcedTeaParseProperties.h: used glib.h, declared above functions 1842 * plugin/icedteanp/IcedTeaPluginUtils.cc: added (initFileLog) function to open 1843 correctly named, in proper palce and with correct permissions file for logging 1844 (generateLogFileName) generate human readable file name, as java do. 1845 (printDebugStatus) to debug status of logging 1846 * plugin/icedteanp/IcedTeaPluginUtils.h: headers generated once, and reused 1847 declared above functions. 1848 * plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java: 1849 commented out useless "woken" debug message 1850 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: made plugin_debug_to_console 1851 aware. 1852 1853 2013-11-27 Andrew Azores <aazores@redhat.com> 1854 1855 Made JNLPClassLoaderDeadlock reproducer more reliable 1856 * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_1.java: 1857 Removed "AutoOkClosingListener" magic string 1858 * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_2.java: 1859 same 1860 * tests/reproducers/custom/JNLPClassLoaderDeadlock/testcases/JNLPClassLoaderDeadlockTest.java: 1861 Changed AutoOkClosingListener to RulesFolowingClosingListener 1862 1863 2013-11-26 Jiri Vanek <jvanek@redhat.com> 1864 1865 Reverted "fix to ManifestedJar1Test cases", better manifestedjar tests, 1866 added srtict test 1867 * netx/net/sourceforge/jnlp/Parser.java: added indentation, fixes 1868 condition in strict base check 1869 * netx/net/sourceforge/jnlp/ResourcesDesc.java: revertedt recently added throw 1870 * tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java: 1871 (manifestedJar1main2mainNoAppDesc) adapted and 1872 (manifestedJar1main2mainNoAppDescStrict) added 1873 1874 2013-11-26 Jiri Vanek <jvanek@redhat.com> 1875 1876 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getManifestAttribute) 1877 added check for null manifest to prevent npe. 1878 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: 1879 added test for npe from getManifestAttribute 1880 * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: 1881 (createJarWithContents) enhanced to be able to create jar without manifest. 1882 1883 2013-11-25 Jiri Vanek <jvanek@redhat.com> 1884 1885 * netx/net/sourceforge/jnlp/JNLPFile.java: (TITLE_NOT_FOUND) new constant 1886 holding the no title found string to be reused. (getTitleFromManifest) 1887 Now using that constant. 1888 * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java: adding window 1889 erro message moved to be debug only. 1890 * ests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java: 1891 Added (clean) mechanism to filter out TITLE_NOT_FOUND 1892 * tests/reproducers/signed/ReadPropertiesBySignedHack/testcases/ReadPropertiesBySignedHackTest.java: 1893 * tests/reproducers/signed/ReadPropertiesSigned/testcases/ReadPropertiesSignedTest.java: 1894 * tests/reproducers/simple/AddShutdownHook/testcases/AddShutdownHookTest.java: 1895 * tests/reproducers/simple/AllStackTraces/testcases/AllStackTracesTest.java 1896 * tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java 1897 * tests/reproducers/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java 1898 * tests/reproducers/simple/ReadProperties/testcases/ReadPropertiesTest.java 1899 * tests/reproducers/simple/RedirectStreams/testcases/RedirectStreamsTest.java 1900 * tests/reproducers/simple/ReplaceSecurityManager/testcases/ReplaceSecurityManagerTest.java 1901 * tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java 1902 * tests/reproducers/simple/simpletest2/testcases/SimpleTest2Test.java 1903 Removed checks for emty outputs 1904 1905 2013-11-25 Jiri Vanek <jvanek@redhat.com> 1906 1907 * netx/net/sourceforge/jnlp/ResourcesDesc.java: (getMainJAR) throw an 1908 RuntimeException when more then one main jar is specified. Preventing 1909 app to start. 1910 * tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java: 1911 (manifestedJar1main2mainNoAppDesc), (manifestedJar1nothing2nothingAppDesc) 1912 fixed and adapted to change. 1913 1914 2013-11-22 Jiri Vanek <jvanek@redhat.com> 1915 1916 * tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java: (init) 1917 enable logging to streams if disabled. 1918 1919 2013-11-13 Andrew Azores <aazores@redhat.com> 1920 1921 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: add 1922 parameterized type information to several return types and local 1923 variables. Refactor for-loops and Enumeration iterations into 1924 for-each-loops. 1925 1926 2013-11-13 Andrew Azores <aazores@redhat.com> 1927 1928 * netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java: centers 1929 on-screen before appearing 1930 1931 2013-11-13 Jiri Vanek <jvanek@redhat.com> 1932 1933 Added test-extension to silence stdout/err of itw when run from junit 1934 * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java: now extends NoStdOutErrTest 1935 * tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java: same 1936 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: same 1937 * tests/test-extensions/net/sourceforge/jnlp/util/logging/NoStdOutErrTest.java: 1938 new class with (disableStds) BeforeClass method and (restoreStds) AfterClass 1939 method which are responsible for silence all itw messages from extending test. 1940 1941 2013-11-13 Jiri Vanek <jvanek@redhat.com> 1942 1943 Enabled access to manifests' attributes from JNLPFile class 1944 Implemented http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name 1945 * netx/net/sourceforge/jnlp/JNLPFile.java: Added (manifestsAttributes) field. 1946 Added (ManifestsAttributes) inner class, to encapsulate access to attributes. 1947 (getTitle) can handle manifests too. 1948 * netx/net/sourceforge/jnlp/PluginBridge.java: is following app_name recommendations. 1949 * netx/net/sourceforge/jnlp/ResourcesDesc.java: (getMainJAR) made more granular 1950 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (init) inject itself 1951 to file's ManifestsAttributes. (checkForAttributeInJars) renamed field 1952 mainClassInThisJar to attributeInThisJar. Added getter for mainClass. 1953 * netx/net/sourceforge/jnlp/security/CertWarningPane.java: bracketing cleanup. 1954 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: new test to 1955 check new functionalites 1956 * tests/netx/unit/net/sourceforge/jnlp/runtime/ResourcesDescTest.java: same 1957 * tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java: 1958 can set info 1959 * NEWS: mentioned first u45 attribute 1960 1961 2013-11-10 Jiri Vanek <jvanek@redhat.com> 1962 1963 Fixed lock in awt threads. JavaConsole window is now disposed instead of hidden. 1964 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: (lastSize) new 1965 global variable to remember last size of window.(contentPanel) moved from 1966 local to global scope. (initializeWindow) extracted from (initialize), is 1967 handling creation and filling of window. (showConsole) is now initializing 1968 window, and (hideConsole) is disposing it. Added override annotations and 1969 removed duplicate code. 1970 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: messageQueConsumer 1971 thread is now named, and its wait, have timeout. 1972 1973 2013-11-10 Jiri Vanek <jvanek@redhat.com> 1974 1975 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 1976 removed suspicious return when (searchForMain) had null launchDesc 1977 1978 2013-11-07 Andrew Azores <aazores@redhat.com> 1979 1980 Reproducer test cleanup. Replaced ServerAccess.ProcessResult in favour of 1981 ProcessResult, and junit.framework.Assert in favour of org.junit.Assert. 1982 Other notable changes below. 1983 * tests/reproducers/simple/simpletest1/testcases/XDGspecificationTests.java: 1984 (removeXdgValues, setXdgValues) list 'rr' uses parameterized type. 1985 (getContentOfDirectory) list 'result' uses parameterized type 1986 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: 1987 (ProcessResult) inner class removed. (getBrowserParams) list 'l' uses 1988 parameterized type 1989 * tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java: 1990 (getChangedLocalesForSubproces) list 'rr' uses parameterized type 1991 * tests/reproducers/simple/LocalisedInformationElement/testcases/LocalisedInformationElementTest.java: 1992 same 1993 * tests/test-extensions/net/sourceforge/jnlp/ProcessWrapper.java: 1994 constructor for (String, List<String>, String) lists 'urledArgs' and 1995 'otherArgs' use parameterized type. (stdoutl, stderrl) use parameterized 1996 type. 1997 * tests/test-extensions/net/sourceforge/jnlp/ContentReader.java: 1998 (listeners) use parameterized type 1999 2000 2013-11-05 Jiri Vanek <jvanek@redhat.com> 2001 2002 Java console resurrected and connected to new logging. 2003 * NEWS: mentioned console for plugin and javaws 2004 * Changelog: removed one wrong tab 2005 * netx/net/sourceforge/jnlp/config/Defaults.java: added 2006 DeploymentConfiguration.CONSOLE_SHOW_PLUGIN, 2007 and DeploymentConfiguration.CONSOLE_SHOW_JAVAWS. 2008 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: 2009 added and javadoc-ed CONSOLE_SHOW_PLUGIN,CONSOLE_SHOW_JAVAWS, DISABLE, 2010 SHOW, HIDE, KEY_CONSOLE_STARTUP_MODE. 2011 * netx/net/sourceforge/jnlp/resources/Messages.properties: localized console 2012 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java : removed legacy STD*_FILE 2013 * netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java: Added button 2014 to show console on demand. Added (getShowButton) method to share code with 2015 * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java: 2016 Added button to show console on demand and explaining line. 2017 * netx/net/sourceforge/jnlp/util/logging/JavaConsole.java: moved from 2018 plugin, and reworked. Especially get rid of perpetual loading of file. 2019 Made singleton. 2020 * netx/net/sourceforge/jnlp/util/logging/LogConfig.java: added (isLogToConsole) 2021 returning (JavaConsole.isEnabled) status. 2022 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: added (Level.isError) 2023 and (Level.isOutput) methods to determine original channel, and can log to console. 2024 * plugin/icedteanp/java/sun/applet/JavaConsole.java: moved to netx 2025 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java: 2026 (streamhandler) made private with setter 2027 * plugin/icedteanp/java/sun/applet/PluginMain.java : removed legacy STD*_FILE, 2028 added set of classloaders information provider to console. (handlePluginMessage) 2029 show and hide of console is checking it's status. (showConsole) and (hideConsole) 2030 moved to JavaConsole. 2031 2032 2013-11-05 Andrew Azores <aazores@redhat.com> 2033 2034 * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java: 2035 (addPermission) avoid NPE in JNLPClassLoader#getPermissions with debug 2036 enabled 2037 2038 2013-11-01 Jiri Vanek <jvanek@redhat.com> 2039 2040 Synced headers between PLUGIN_DEBUG, PLUGIN_ERROR and javaside 2041 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: (getHeader) 2042 added thread id and name to log header. 2043 * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_DEBUG) (PLUGIN_ERROR) 2044 headers generation code moved to macro (CREATE_HEADER0). Both 2045 headers now contains pthread_self and g_thread_self. Fixed indentation. 2046 2047 2013-11-01 Jiri Vanek <jvanek@redhat.com> 2048 2049 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: 2050 added tests for custom attributes (getCustomAtributes), (getCustomAtributesEmpty) and test to ensure order during searching for 2051 attributes in manifests (checkOrderWhenReadingAttributes). 2052 * tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java: 2053 can now handle multiple source jars, and set main jar (new constructors), 2054 (jarFiles) and (jarDescs) redeclared to arrays. 2055 2056 2013-10-30 Jiri Vanek <jvanek@redhat.com> 2057 2058 * netx/net/sourceforge/jnlp/JARDesc.java: made immutable 2059 (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final 2060 2061 2013-10-29 Andrew Azores <aazores@redhat.com> 2062 2063 Fix PR1513, signed applets with external main-class support 2064 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 2065 (initializeResources) ask for user approval rather than throwing 2066 LaunchException for signed applets with external main-class 2067 2068 2013-10-25 Jiri Vanek <jvanek@redhat.com> 2069 2070 Plugin debug can now be controlled from itw_settings, in same way java side. 2071 For now ICEDTEAPLUGIN_DEBUG on the debug in same way as deployment.log 2072 itw-settings property. Individual logging streams are controlled by 2073 deployment.log.{headers,file,stdstreams,system} System and file are not yet 2074 fully done (same as java side in this moment). Streams are true, all others 2075 false by default. 2076 * plugin/icedteanp/IcedTeaNPPlugin.cc: initialized variables new bool 2077 variables (debug_initiated), (plugin_debug_headers), (plugin_debug_to_file), 2078 (plugin_debug_to_system) as false and (plugin_debug_to_streams) as true. 2079 * plugin/icedteanp/IcedTeaNPPlugin.h: above variables declared as extern 2080 * plugin/icedteanp/IcedTeaParseProperties.cc: initialization of 2081 (default_file_ITW_deploy_props_name) and (custom_jre_key) moved here from 2082 IcedTeaNPPlugin.h. New method (read_bool_property) and its more concrete 2083 shortcuts (is_debug_on) (is_debug_header_on) (is_logging_to_file) 2084 (is_logging_to_stds) (is_logging_to_system) implemented to access properties. 2085 * plugin/icedteanp/IcedTeaParseProperties.h: above methods declared. 2086 * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_{ERROR,DEBUG}) methods 2087 adapted headers/debug/streams logic as described in title. Headers made more 2088 informative (like java side) 2089 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: 2090 TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_on) extended to 2091 TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_on_headers_off). 2092 TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_off) extended to 2093 TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_off_headers_off), and new tests 2094 TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_on_headers_on) 2095 TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_off_headers_on) (100x slower then 2096 without headers) 2097 2098 2013-10-25 Jiri Vanek <jvanek@redhat.com> 2099 2100 all output messages redirected to PLUGIN_{DEBUG,ERROR} macros 2101 * plugin/icedteanp/IcedTeaJavaRequestProcessor.cc: affected 2102 * plugin/icedteanp/IcedTeaNPPlugin.cc: affected 2103 * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: affected 2104 * plugin/icedteanp/IcedTeaPluginUtils.cc: affected 2105 * plugin/icedteanp/IcedTeaPluginUtils.h: affected 2106 * plugin/icedteanp/IcedTeaRunnable.cc: affected 2107 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: affected 2108 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: added 2109 (TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_on)) and 2110 (TEST(PLUGIN_DEBUG_ERROR_PROFILING_debug_off)) which call new 2111 (doDebugErrorRun) and are measuring refactoring impacts. 2112 2113 2013-10-25 Jiri Vanek <jvanek@redhat.com> 2114 2115 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: 2116 (getCallerClass) now gets out also from sun.applet.PluginDebug class. 2117 2118 2013-10-24 Andrew Azores <aazores@redhat.com> 2119 2120 Fix array index out of bounds due to malformed plugin message (PR539) 2121 * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: (_getMember, 2122 _getString) append "null" to result when call is unsuccessful 2123 * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html: 2124 new test to ensure failed calls to getMember and getString on JSObject do 2125 not produce malformed results 2126 * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js: 2127 same 2128 * tests/reproducers/simple/JSObjectWithoutToString/srcs/JSObjectWithoutToString.java: 2129 same 2130 * tests/reproducers/simple/JSObjectWithoutToString/testcases/JSObjectWithoutToStringTest.java: 2131 same 2132 2133 2013-10-23 Jiri Vanek <jvanek@redhat.com> 2134 2135 C-part of plugin is now also trying to follow XDG 2136 * plugin/icedteanp/IcedTeaParseProperties.cc: (user_properties_file) is 2137 now using XDG cached dir or its default variant in case that old file do not 2138 (should not!) exists 2139 2140 2013-10-22 Omair Majid <omajid@redhat.com> 2141 2142 * netx/net/sourceforge/jnlp/util/logging/LogConfig.java 2143 (resetLogConfig): New method. 2144 * tests/netx/unit/net/sourceforge/jnlp/util/logging/OutputControllerTest.java 2145 (setUp, tearDown): New method. 2146 2147 2013-10-22 Jiri Vanek <jvanek@redhat.com> 2148 2149 More synchronized error/debug methods 2150 * plugin/icedteanp/IcedTeaNPPlugin.cc: all occurrences of PLUGIN_ERROR_TWO 2151 and PLUGIN_ERROR_THREE replaced by PLUGIN_ERROR. PLUGIN_ERROR itself moved 2152 to 2153 * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_ERROR) new fuction, 2154 now uses ... arguments and printf with __VA_ARGS__ instead of g_printerr 2155 (PLUGIN_DEBUG) now prints to stdout, instead of stderr which is used by 2156 (PLUGIN_ERROR). 2157 2158 2013-10-21 Jiri Vanek <jvanek@redhat.com> 2159 2160 Logic to extract main class attribute generalized to common methods. 2161 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 2162 (getMainClassName) is now calling (getManifestAttribute) 2163 (getManifestAttribute) new method, extract named attribute from url 2164 specified jar. Called by (checkForAttributeInJars) 2165 (checkForMain) is now calling (checkForAttributeInJars). Also logic of 2166 (checkForAttributeInJars) was taken from here. 2167 (checkForAttributeInJars) new method, read specific attribute from 2168 application jar(s) in specific order. 2169 2170 2013-10-20 Jiri Vanek <jvanek@redhat.com> 2171 2172 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: (isPluginDebug) 2173 made private to prevent confusion. 2174 * plugin/icedteanp/java/sun/applet/PluginDebug.java: (DEBUG) initialized 2175 from JNLPRuntime.isDebug instead of incorrect JNLPRuntime.isPluginDebug. 2176 2177 2013-10-17 Andrew Azores <aazores@redhat.com> 2178 2179 Back out changeset 420d72e5cee7 due to breaking LiveConnect feature. 2180 http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-October/024919.html 2181 * plugin/icedteanp/IcedTeaNPPlugin.cc: undo 420d72e5cee7 2182 * plugin/icedteanp/IcedTeaPluginUtils.cc: undo 420d72e5cee7 2183 * plugin/icedteanp/IcedTeaPluginUtils.h: undo 420d72e5cee7 2184 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: undo 420d72e5cee7 2185 * plugin/icedteanp/IcedTeaScriptablePluginObject.h: undo 420d72e5cee7 2186 * tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc: undo 420d72e5cee7 2187 2188 2013-10-16 Andrew Azores <aazores@redhat.com> 2189 2190 Resolve deadlock issue when multiple applets are loaded simultaneously 2191 (RH976833) 2192 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) 2193 private member for locking of loadClass method. (loadClass) synchronizes 2194 using new lock rather than instance intrinsic lock to avoid RH976833 2195 deadlock 2196 * tests/reproducers/custom/JNLPClassLoaderDeadlock/testcases/JNLPClassLoaderDeadlockTest.java: 2197 new test for multiple applet deadlock condition 2198 * tests/reproducers/custom/JNLPClassLoaderDeadlock/resources/JNLPClassLoaderDeadlock.html: 2199 same 2200 * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_1.java: 2201 same 2202 * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_2.java: 2203 same 2204 * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/Makefile: same 2205 2206 2013-10-11 Andrew Azores <aazores@redhat.com> 2207 2208 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog) 2209 centerDialog called in init rather than on windowOpened event 2210 2211 2013-10-09 Omair Majid <oamjid@redhat.com> 2212 2213 * plugin/icedteanp/java/sun/applet/PluginProxySelector.java 2214 (computeKey): New method. 2215 (getFromBrowser, checkCache): Call computeKey. 2216 2217 2013-10-09 Omair Majid <omajid@redhat.com> 2218 2219 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 2220 (requestPluginProxyInfo): Accept a String instead of URI. 2221 (convertUriSchemeForProxyQuery): Move to ... 2222 * plugin/icedteanp/java/sun/applet/PluginProxySelector.java 2223 (convertUriSchemeForProxyQuery): Here. 2224 (getFromBrowser): Call convertUriSchemeForProxyQuery. 2225 * tests/netx/unit/sun/applet/PluginAppletViewerTest.java 2226 (testConvertUriSchemeForProxyQuery), 2227 (assertQueryForBrowserProxyUsesHttpFallback), 2228 (assertQueryForBrowserProxyContainsNoDoubleSlashes), 2229 (assertQueryForBrowserProxyDoesNotChangeQuery): Move to ... 2230 * tests/netx/unit/sun/applet/PluginProxySelectorTest.java: Here. 2231 2232 2013-10-07 Andrew Azores <aazores@redhat.com> 2233 2234 DeploymentConfiguration properties reproducer fix 2235 * tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java: 2236 update test to reflect changed log directory 2237 2238 2013-10-03 Andrew Azores <aazores@redhat.com> 2239 2240 PR1204 patch regression fix 2241 * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: 2242 (getVersionedUrl) fix regression in previous PR1204 patch. Refactor 2243 to not take Resource parameter, use instance's field instead. 2244 (uriPartToString) new method 2245 * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: 2246 new tests for ResourceUrlCreator.getVersionedUrl 2247 2248 2013-10-03 Jacob Wisor <gitne@gmx.de> 2249 2250 * netx/net/sourceforge/jnlp/controlpanel/CachePane.java: 2251 Moved JButtons to members. 2252 (addComponents): Modified to make use of new NonEditableTableModel. 2253 Added ListSelectionListener to propertly handle enabling and disabling of 2254 operational JButtons when selecting a resource from the cache table. 2255 Moved inital populating of the cache table to CacheViewer's constructor 2256 until after the CachePane has been instatiated. 2257 Added a general purpose Comparator for all non-String columns in the table 2258 model. 2259 Added a TableCellRenderer with proper localized rendering of "Size" and 2260 "Last Modified" columns as well as the content of "Name" and "Path" 2261 columns. 2262 (createButtonPanel): Moved delete operation into new method 2263 invokeDeleteLater(), added mouse cursor busy indicator, and proper handling 2264 of enabling and disabling of operational JButtons when pushing the delete 2265 button. 2266 Moved refresh operation when pushing the refresh button into new method 2267 invokePopulateLater() and added proper handling of enabling and disabling 2268 of operational JButtons while refreshing. 2269 Replaced closing the cache viewer dialog via JDialog.dispose() when pushing 2270 the delete button by a post of the WindowEvent.WINDOW_CLOSING event to 2271 the CacheViewer dialog in order to effectively remove the newly introduced 2272 KeyEventDispatcher. 2273 (invokeDeleteLater): New method: Posts an event to the event queue deleting 2274 the currently selected resource. 2275 (invokePopulateLater): New method: Posts an event to the event queue 2276 repopulating the cache table. 2277 (populateTable): 2278 Added mouse cursor busy indicator. 2279 (generateData): Modified cache table's per row data model for proper 2280 rendering and sorting to: DirectoryNode, File, String, String, Long, Date. 2281 * netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java: 2282 (CacheViewer): Added null parameter check. 2283 Added a KeyEventDispatcher to enable closing the CacheViewer dialog on a 2284 KeyEvent.VK_ESCAPE key event. 2285 Replaced closing the cache viewer dialog via JDialog.dispose() by a post 2286 of the WindowEvent.WINDOW_CLOSING event to the CacheViewer dialog in order 2287 to effectively remove the newly introduced KeyEventDispatcher. 2288 * netx/net/sourceforge/jnlp/util/ui/NonEditableTableModel.java: 2289 Added a new table model that in effect is a 2290 javax.swing.table.DefaultTableModel except for no cell being editable. 2291 * netx/net/sourceforge/jnlp/util/ui/package-info.java: 2292 Added new package for UI common and recurrung UI tasks with documentation 2293 2294 2013-10-01 Omair Majid <omajid@redhat.com> 2295 2296 * netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java 2297 (BrowserAwareProxySelector): Split off browser-specific work into .. 2298 (initialize): New method. 2299 (initFromBrowserConfig): Delegate reading browser preferences to .. 2300 (parseBrowserPreferences): New method. 2301 (getFromBrowserConfiguration): Delegate to 2302 JNLPProxySelector.getFromArguments. 2303 * netx/net/sourceforge/jnlp/runtime/JNLPProxySelector.java 2304 (getFromConfiguration): Move logic into getFromArguments; delegate to it. 2305 (getFromArguments): Renamed from getFromConfiguration. Handle optionally 2306 using the http host/port for socket addresses. 2307 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java 2308 (initialize): Call BrowserAwareProxySelector.initialize. 2309 * tests/netx/unit/net/sourceforge/jnlp/browser/BrowserAwareProxySelectorTest.java: 2310 New file. 2311 2312 2013-10-01 Omair Majid <omajid@redhat.com> 2313 2314 * plugin/icedteanp/java/sun/applet/PluginProxySelector.java 2315 (getFromBrowser): Move call to 2316 PluginAppletViewer.requestPluginProxyInfo into new method. 2317 (getProxyFromRemoteCallToBrowser): New method. 2318 * tests/netx/unit/sun/applet/PluginProxySelectorTest.java: New file. 2319 2320 2013-09-26 Andrew Azores <aazores@redhat.com> 2321 2322 Fix for PR1204. Absolute paths in resource URLs are correctly handled when 2323 appended to host URLs and URL query strings are not removed. 2324 * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: 2325 (getVersionedUrlUsingQuery) renamed to getVersionedUrl, refactored 2326 construction of URL 2327 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: 2328 (requestPluginProxyInfo) extracted proxy URI logic. 2329 (processProxyUri) new method for finding proxy URIs, handles absolute 2330 resource paths correctly 2331 * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: 2332 added tests for ResourceUrlCreator#getVersionedUrl 2333 * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: added tests for 2334 PluginAppletViewer.processProxyUri 2335 * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.html: 2336 new reproducer checks that absolute paths and query strings in resource 2337 URLs are properly handled, and caching still works 2338 * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.jnlp: 2339 same 2340 * tests/reproducers/simple/AbsolutePathsAndQueryStrings/testcases/AbsolutePathsAndQueryStrings.java: 2341 same 2342 2343 2013-09-25 Andrew Azores <aazores@redhat.com> 2344 2345 * Makefile.am: clean up summary_unit.txt and summary_reproducers.txt for 2346 "clean" goal 2347 2348 2013-09-25 Jiri Vanek <jvanek@redhat.com> 2349 2350 Added logging bottleneck 2351 * netx/net/sourceforge/jnlp/AbstractLaunchHandler.java: extracted system.out/err 2352 and printStackTrace in favour of outputController.log methods. Same all below 2353 * netx/net/sourceforge/jnlp/DefaultLaunchHandler.java 2354 * netx/net/sourceforge/jnlp/ExtensionDesc.java 2355 * netx/net/sourceforge/jnlp/GuiLaunchHandler.java 2356 * netx/net/sourceforge/jnlp/JNLPFile.java 2357 * netx/net/sourceforge/jnlp/JNLPMatcher.java 2358 * netx/net/sourceforge/jnlp/JNLPSplashScreen.java 2359 * netx/net/sourceforge/jnlp/Launcher.java 2360 * netx/net/sourceforge/jnlp/MalformedXMLParser.java 2361 * netx/net/sourceforge/jnlp/NetxPanel.java 2362 * netx/net/sourceforge/jnlp/Parser.java 2363 * netx/net/sourceforge/jnlp/PluginBridge.java 2364 * netx/net/sourceforge/jnlp/SecurityDesc.java 2365 * netx/net/sourceforge/jnlp/StreamEater.java 2366 * netx/net/sourceforge/jnlp/XmlParser.java 2367 * netx/net/sourceforge/jnlp/about/HTMLPanel.java 2368 * netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java 2369 * netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java 2370 * netx/net/sourceforge/jnlp/browser/FirefoxPreferencesParser.java 2371 * netx/net/sourceforge/jnlp/cache/CacheDirectory.java 2372 * netx/net/sourceforge/jnlp/cache/CacheEntry.java 2373 * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java 2374 * netx/net/sourceforge/jnlp/cache/CacheUtil.java 2375 * netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java 2376 * netx/net/sourceforge/jnlp/cache/Resource.java 2377 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java 2378 * netx/net/sourceforge/jnlp/config/Defaults.java 2379 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java 2380 * netx/net/sourceforge/jnlp/controlpanel/CachePane.java 2381 * netx/net/sourceforge/jnlp/controlpanel/CommandLine.java 2382 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java 2383 * netx/net/sourceforge/jnlp/controlpanel/DebuggingPanel.java 2384 * netx/net/sourceforge/jnlp/controlpanel/DocumentAdapter.java 2385 * netx/net/sourceforge/jnlp/controlpanel/JVMPanel.java 2386 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java 2387 * netx/net/sourceforge/jnlp/resources/Messages.properties 2388 * netx/net/sourceforge/jnlp/resources/Messages_cs.properties 2389 * netx/net/sourceforge/jnlp/resources/Messages_de.properties 2390 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties 2391 * netx/net/sourceforge/jnlp/runtime/AppletAudioClip.java 2392 * netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java 2393 * netx/net/sourceforge/jnlp/runtime/AppletInstance.java 2394 * netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java 2395 * netx/net/sourceforge/jnlp/runtime/Boot.java 2396 * netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java 2397 * netx/net/sourceforge/jnlp/runtime/FakePacEvaluator.java 2398 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 2399 * netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java 2400 * netx/net/sourceforge/jnlp/runtime/JNLPProxySelector.java 2401 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java 2402 * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java 2403 * netx/net/sourceforge/jnlp/runtime/PacEvaluatorFactory.java 2404 * netx/net/sourceforge/jnlp/runtime/RhinoBasedPacEvaluator.java 2405 * netx/net/sourceforge/jnlp/security/CertWarningPane.java 2406 * netx/net/sourceforge/jnlp/security/CertificateUtils.java 2407 * netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java 2408 * netx/net/sourceforge/jnlp/security/KeyStores.java 2409 * netx/net/sourceforge/jnlp/security/SecurityDialog.java 2410 * netx/net/sourceforge/jnlp/security/SecurityDialogMessageHandler.java 2411 * netx/net/sourceforge/jnlp/security/SecurityUtil.java 2412 * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java 2413 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java 2414 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java 2415 * netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java 2416 * netx/net/sourceforge/jnlp/services/ServiceUtil.java 2417 * netx/net/sourceforge/jnlp/services/XBasicService.java 2418 * netx/net/sourceforge/jnlp/services/XPersistenceService.java 2419 * netx/net/sourceforge/jnlp/services/XPrintService.java 2420 * netx/net/sourceforge/jnlp/services/XSingleInstanceService.java 2421 * netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java 2422 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java 2423 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/ErrorPainter.java 2424 * netx/net/sourceforge/jnlp/splashscreen/parts/InformationElement.java 2425 * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java 2426 * netx/net/sourceforge/jnlp/tools/CertInformation.java 2427 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java 2428 * netx/net/sourceforge/jnlp/util/BasicExceptionDialog.java 2429 * netx/net/sourceforge/jnlp/util/FileUtils.java 2430 * netx/net/sourceforge/jnlp/util/HttpUtils.java 2431 * netx/net/sourceforge/jnlp/util/ImageResources.java 2432 * netx/net/sourceforge/jnlp/util/PropertiesFile.java 2433 * netx/net/sourceforge/jnlp/util/Reflect.java 2434 * netx/net/sourceforge/jnlp/util/StreamUtils.java 2435 * netx/net/sourceforge/jnlp/util/TimedHashMap.java 2436 * netx/net/sourceforge/jnlp/util/UrlUtils.java 2437 * netx/net/sourceforge/jnlp/util/XDesktopEntry.java 2438 * netx/net/sourceforge/nanoxml/XMLElement.java 2439 * plugin/icedteanp/java/netscape/javascript/JSRunnable.java 2440 * plugin/icedteanp/java/sun/applet/JavaConsole.java 2441 * plugin/icedteanp/java/sun/applet/PluginAppletPanelFactory.java 2442 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java 2443 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 2444 * plugin/icedteanp/java/sun/applet/PluginDebug.java 2445 * plugin/icedteanp/java/sun/applet/PluginException.java 2446 * plugin/icedteanp/java/sun/applet/PluginMain.java 2447 * plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java 2448 * plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java 2449 * plugin/icedteanp/java/sun/applet/PluginProxyInfoRequest.java 2450 * plugin/icedteanp/java/sun/applet/PluginProxySelector.java 2451 * plugin/icedteanp/java/sun/applet/PluginStreamHandler.java 2452 * tests/netx/unit/net/sourceforge/jnlp/DefaultLaunchHandlerTest.java 2453 * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java 2454 * tests/netx/unit/net/sourceforge/jnlp/util/HttpUtilsTest.java 2455 * tests/netx/unit/net/sourceforge/jnlp/util/XDesktopEntryTest.java 2456 * tests/reproducers/simple/simpletest1/testcases/XDGspecificationTests.java 2457 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java 2458 * netx/net/sourceforge/jnlp/util/logging/FileLog.java: new file, derived from 2459 AppletLog. Now have responsibility to log to custom file. 2460 * netx/net/sourceforge/jnlp/util/logging/LogConfig.java: new file derived from Log 2461 * netx/net/sourceforge/jnlp/util/logging/OutputController.java: new bottleneck for logging 2462 * netx/net/sourceforge/jnlp/util/logging/PrintStreamLogger.java: logger to std.streams 2463 * netx/net/sourceforge/jnlp/util/logging/SingleStreamLogger.java: interface common to all new loggers 2464 * netx/net/sourceforge/jnlp/util/logging/UnixSystemLog.java: not yet implemented susytem log 2465 * netx/net/sourceforge/jnlp/util/logging/WinSystemLog.java: not yet implemented susytem log 2466 * tests/netx/unit/net/sourceforge/jnlp/util/logging/FileLogTest.java: new set of tests 2467 * tests/netx/unit/net/sourceforge/jnlp/util/logging/OutputControllerTest.java: new set of tests 2468 * tests/netx/unit/net/sourceforge/jnlp/util/logging/PrintStreamLoggerTest.java: new set of tests 2469 * netx/net/sourceforge/jnlp/AppletLog.java: removed 2470 * netx/net/sourceforge/jnlp/Log.java: rmeoved 2471 2472 2473 2013-09-24 Omair Majid <omajid@redhat.com> 2474 2475 PR1474 2476 * NEWS: Update with bug. 2477 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: Document 2478 KEY_PROXY_SAME. 2479 * netx/net/sourceforge/jnlp/runtime/JNLPProxySelector.java 2480 (getFromConfiguration): Same proxy is not applicable to SOCKS. Always 2481 include SOCKS proxy if available. 2482 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPProxySelectorTest.java 2483 (testHttpFallsBackToManualSocksProxy): New method. 2484 (testManualSameProxy): Remove test for socket protocol. 2485 2486 2013-09-23 Omair Majid <omajid@rehdat.com> 2487 2488 * netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java 2489 (BrowserAwareProxySelector): Rename to... 2490 (BrowserAwareProxySelector(DeploymentConfiguration)): New method. 2491 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: Clarify 2492 possible values for KEY_PROXY_TYPE. 2493 * netx/net/sourceforge/jnlp/runtime/JNLPProxySelector.java 2494 (JNLPProxySelector): Rename to... 2495 (JNLPProxySelector(DeploymentConfiguration)): New method. 2496 (parseConfiguration): Rename to... 2497 (parseConfiguration(DeploymentConfiguration)): New method. 2498 (inBypassList): Get host from URI instead of manual hacks. 2499 (getProxiesFromPacResult): Clarify return value. 2500 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java 2501 (initialize): Adjust for new BrowserAwareProxySelector constructor. 2502 * plugin/icedteanp/java/sun/applet/PluginMain.java 2503 (init): Adjust for new PluginProxySelector constructor. 2504 * plugin/icedteanp/java/sun/applet/PluginProxySelector.java 2505 (PluginProxySelector): New constructor. 2506 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPProxySelectorTest.java: 2507 New file. 2508 2509 2013-09-20 Omair Majid <omajid@redhat.com> 2510 2511 * netx/net/sourceforge/jnlp/InformationDesc.java 2512 (InformationDesc): Remove JNLPFile argument. 2513 (getJNLPFile): Remove. 2514 * netx/net/sourceforge/jnlp/JNLPFile.java 2515 (getInformation): Adjust to new InformationDesc constructor. 2516 * netx/net/sourceforge/jnlp/Parser.java 2517 (getInformation): Likewise. 2518 * tests/netx/unit/net/sourceforge/jnlp/InformationDescTest.java: New file. 2519 2520 2013-09-19 Jana Fabrikova <jfabriko@redhat.com> 2521 2522 Added text only reports from reproducers and unit tests run 2523 * tests/report-styles/textreport.xls: 2524 style for generating summary output in summary_reproducers.txt 2525 and summary_unit.txt 2526 * Makefile.am: 2527 added generating the text reports in run-netx-dist-tests goal 2528 2529 2013-09-18 Jiri Vanek <jvanek@redhat.com> 2530 2531 Removed java 1.3 comaptible (redundant) code from ParseException 2532 * netx/net/sourceforge/jnlp/ParseException.java: (ParseException) 2533 modified to support super call only, (getCause) and both (printStackTrace) 2534 removed 2535 2536 2013-09-16 Andrew Azores <aazores@redhat.com> 2537 2538 Fix ResourcesTest reproducer. 2539 * tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java: 2540 fixed formatting, removed commented lines. 2541 (testBrowser): assertion that ~/.mozilla/plugins directory exists removed. 2542 Renamed (userPluginDir, defaultPluginDir, userPlugins, defaultPlugins) 2543 2544 2013-09-16 Omair Majid <omajid@redhat.com> 2545 2546 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java 2547 (toList): Remove. 2548 (checkForMainFileLeakTest): Use Arrays.asList. 2549 * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmationTest.java 2550 (toList): Remove. 2551 (testToRelativePaths): Use Arrays.asList. 2552 2553 2013-09-16 Jiri Vanek <jvanek@redhat.com> 2554 2555 * Makefile.am: returned modified (EXTRA_DIST) variable. It is enriched for 2556 netx-dist-tests-whitelist and NEW_LINE_IFS to enable reproducers tests 2557 in dist tarball. 2558 2559 2013-09-16 Deepak Bhole <dbhole@redhat.com> 2560 2561 CVE-2012-4540, RH869040: Heap-based buffer overflow after triggering event 2562 attached to applet 2563 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: Removed unnecessary 2564 heap allocations. 2565 2566 2013-09-13 Andrew Azores <aazores@redhat.com> 2567 2568 * tests/test-extensions/net/sourceforge/jnlp/tools/MessageProperties.java: 2569 new utility class to handle retrieving localized messages for reproducers 2570 * tests/reproducers/signed/CacheReproducer/testcases/CacheReproducerTest.java: 2571 refactored to use new MessageProperties class 2572 * tests/test-extensions-tests/net/sourceforge/jnlp/MessagePropertiesTest.java: 2573 tests for new MessageProperties class 2574 2575 2013-09-11 Jacob Wisor <gitne@gmx.de> 2576 2577 * netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java 2578 Made temporary files location JFileChooser open at the currently specified location 2579 Made temporary files location JFileChooser display a helpful title 2580 Removed misleading "All Files" file filter from JFileChooser 2581 * netx/net/sourceforge/jnlp/resources/Messages.properties 2582 Added new message to resources for JFileChooser's choose button 2583 * netx/net/sourceforge/jnlp/resources/Messages_cs.properties 2584 Added new message to resources for JFileChooser's choose button 2585 Fixed a few inconsistent messages in resource files 2586 * netx/net/sourceforge/jnlp/resources/Messages_de.properties 2587 Added new message to resources for JFileChooser's choose button 2588 Fixed a few inconsistent messages in resource files 2589 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties 2590 Added new message to resources for JFileChooser's choose button 2591 Fixed a few inconsistent messages in resource files 2592 2593 2013-09-09 Omair Majid <omajid@redhat.com> 2594 2595 * netx/net/sourceforge/jnlp/JNLPFile.java 2596 (getDownloadOptionsForJar): Rename to ... 2597 (getDownloadOptions): New method. Look up jnlp.packEnabled and 2598 jnlp.versionEnabled in any resources element. 2599 * netx/net/sourceforge/jnlp/PluginBridge.java 2600 (getDownloadOptionsForJar): Rename to ... 2601 (getDownloadOptions): New method. 2602 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 2603 (initializeResources): Invoke file.getDownloadResources. 2604 (getDownloadOptionsForJar): Remove. 2605 * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java 2606 (testDownloadOptionsAppliedEverywhere): New method. 2607 (testDownloadOptionsFilteredOut): New method. 2608 2609 2013-09-04 Andrew Azores <aazores@redhat.com> 2610 2611 * netx/net/sourceforge/jnlp/config/Defaults.java: (USER_CACHE_HOME) made 2612 public for use in CacheReproducer 2613 * tests/reproducers/signed/CacheReproducer/testcases/CacheReproducerTest: 2614 updated "could not clear cache" message and cache location. Other minor 2615 cleanup 2616 2617 2013-09-04 Andrew Azores <aazores@redhat.com> 2618 2619 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java: 2620 (getIntegerResponseAsBoolean) extracted integer response casting/handling 2621 logic into new method 2622 * tests/netx/unit/net/sourceforge/jnlp/security/SecurityDialogsTest.java: 2623 new unit test for SecurityDialogs#getIntegerReponseAsBoolean() 2624 2625 2013-09-04 Adam Domurad <adomurad@redhat.com> 2626 2627 * netx/net/sourceforge/jnlp/Launcher.java: 2628 Fix applet context being null during applet init & start. 2629 2630 2013-08-29 Omair Majid <omajid@redhat.com> 2631 2632 * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java 2633 (testPropertyRestrictions): New method. Check that properties in 2634 resources are are combined and filtered as appropriate. 2635 2636 2013-08-29 Omair Majid <omajid@redhat.com> 2637 2638 PR1058 2639 * netx/net/sourceforge/jnlp/services/XFileOpenService.java 2640 (openMultiFileDialog): Create a privileged proxy for each FileContents 2641 instance and return an array of them. 2642 2643 2013-08-27 Adam Domurad <adomurad@redhat.com> 2644 2645 Do not wait for applet initialization when binding Java applets for NPAPI. 2646 * plugin/icedteanp/IcedTeaNPPlugin.cc: Refactor to use 2647 lazy-initialized javascript applet binding. 2648 * plugin/icedteanp/IcedTeaPluginUtils.cc: Make use of new helper 2649 class, introduce (stringPrintf), introduce NPObjectRef. 2650 * plugin/icedteanp/IcedTeaPluginUtils.h: Same. 2651 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: Allow 2652 IcedTeaScriptableJavaObject to be lazy-initialized, introduce 2653 lazy-initializing (get_scriptable_applet_object). 2654 * plugin/icedteanp/IcedTeaScriptablePluginObject.h: Same. 2655 * tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc: Adapt 2656 test to new helper class. 2657 2658 2013-08-23 Adam Domurad <adomurad@redhat.com> 2659 2660 Spawn Java side during C++ unit tests. Many new tests. 2661 * plugin/icedteanp/IcedTeaJavaRequestProcessor.cc 2662 (hasPackage): Minor cleanup. 2663 * plugin/icedteanp/IcedTeaNPPlugin.cc 2664 (initialize_data_directory): New, extracted function. 2665 (NP_Initialize): Calls extracted function. 2666 * plugin/icedteanp/IcedTeaNPPlugin.h: Expose more functions for 2667 testing purposes. 2668 * tests/cpp-unit-tests/IcedTeaNPPluginTest.cc 2669 (get_scriptable_package_object): Test binding of java package 2670 (get_scriptable_java_object): Test binding of java object 2671 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc 2672 (NPIdentifierAsString): Update to create npidentifier properly. 2673 * tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc 2674 (getProperty): Test loading java.lang.Integer.MAX_VALUE from C++. 2675 * tests/cpp-unit-tests/MemoryLeakDetector.h 2676 (reset_global_state): Made public 2677 * tests/cpp-unit-tests/checked_allocations.h 2678 (SafeAllocator): New, typedef for allocator that avoids leak detection. 2679 * tests/cpp-unit-tests/browser_mock.cc 2680 (browsermock_setup_functions): Renamed to (browsermock_create_table). 2681 (browsermock_create_table): Now returns browser table, additional 2682 object release and identifier methods added. 2683 * tests/cpp-unit-tests/browser_mock.h: Update for rename. 2684 * tests/cpp-unit-tests/main.cc: Now clears state via 2685 (reset_global_state) 2686 * tests/cpp-unit-tests/IcedTeaJavaRequestProcessorTest.cc: New, 2687 contains unit tests that cover all of JavaRequestProcessor's methods. 2688 * tests/cpp-unit-tests/browser_mock_npidentifier.cc: Allocation-safe 2689 npidentifier mocking, adheres to NPAPI spec. 2690 * tests/cpp-unit-tests/browser_mock_npidentifier.h: Same. 2691 2692 2013-08-23 Adam Domurad <adomurad@redhat.com> 2693 2694 * plugin/icedteanp/IcedTeaNPPlugin.cc: Refactor plugin data creation. 2695 * plugin/icedteanp/IcedTeaNPPlugin.h: Same. 2696 2697 2013-08-19 Adam Domurad <adomurad@redhat.com> 2698 2699 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: Evaluate 2700 javascript when it shows up in a 'showDocument' call. 2701 * plugin/icedteanp/java/sun/applet/PluginMain.java: Install arbitrary 2702 'javascript:' protocol handler. 2703 * tests/rproducers/simple/JavascriptURLProtocol/resources/JavascriptProtocol.html: 2704 Tests if javascript is run from a test applet using showDocument. 2705 * tests/reproducers/simple/JavascriptURLProtocol/resources/JavascriptProtocol.js: 2706 Same. 2707 * tests/reproducers/simple/JavascriptURLProtocol/srcs/JavascriptProtocol.java: 2708 Same. 2709 * tests/reproducers/simple/JavascriptURLProtocol/testcases/JavascriptProtocolTest.java: 2710 Same. 2711 2712 2013-08-15 Andrew Azores <aazores@redhat.com> 2713 2714 * netx/net/sourceforge/jnlp/ParserSettings.java: (globalParserSettings) 2715 static ParserSettings instance to store settings. 2716 (setGlobalParserSettingsFromArgs) Determine, store, and return 2717 globalParserSettings. (getGlobalParserSettings) return stored 2718 ParserSettings 2719 * netx/net/sourceforge/jnlp/PluginBridge.java: (extensionJars) stores list 2720 of JNLP extensions. (getResources) returns this list 2721 * netx/net/sourceforge/jnlp/runtime/Boot.java: minor refactor to use 2722 ParserSettings.setGlobalParserSettingsFromArgs() 2723 2724 * tests/netx/unit/net/sourceforge/jnlp/ParserSettingsTest.java: ensure 2725 that ParserSettings.setGlobalParserSettingsFromArgs() works as intended 2726 2727 * tests/reproducers/custom/ExtensionJnlpsInApplet/testcases/ExtensionJnlpsInAppletTest.java: 2728 tests browser launch of HTML file with embedded JNLP applet referencing 2729 extension JNLP 2730 * tests/reproducers/custom/ExtensionJnlpsInApplet/resources/ExtensionJnlpHelper.jnlp: 2731 same 2732 * tests/reproducers/custom/ExtensionJnlpsInApplet/resources/ExtensionJnlpTest.html: 2733 same 2734 * tests/reproducers/custom/ExtensionJnlpsInApplet/resources/ExtensionJnlpTestApplet.jnlp: 2735 same 2736 * tests/reproducers/custom/ExtensionJnlpsInApplet/srcs/ExtensionJnlpHelper.java: 2737 same 2738 * tests/reproducers/custom/ExtensionJnlpsInApplet/srcs/ExtensionJnlpTestApplet.java: 2739 same 2740 * tests/reproducers/custom/ExtensionJnlpsInApplet/srcs/Makefile: same 2741 2742 2013-08-13 Andrew Azores <aazores@redhat.com> 2743 2744 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: no longer 2745 sends HTTP 400 BAD REQUEST messages 2746 * test/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java: 2747 removed "bad request" test 2748 2749 2013-08-12 Andrew Azores <aazores@redhat.com> 2750 2751 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: refactored 2752 * tests/test-extensions/net/sourceforge/jnlp/ServerLauncher.java: 2753 TinyHttpdImpl constructor changed, reflecting this here 2754 * tests/test-extensions-tests/net/sourceforge/jnlp/ServerAccessTest.java: 2755 removed TinyHttpdImpl tests 2756 * tests/test-extensions-tests/net/sourceforge/jnlp/TinyHttpdImplTest.java: 2757 new unit tests for TinyHttpdImpl and moved old tests out of 2758 ServerAccessTest 2759 2760 2013-08-01 Andrew Azores <aazores@redhat.com> 2761 2762 * .hgignore: ignore generated HTML files (from AboutDialog) 2763 2764 2013-07-30 Adam Domurad <adomurad@redhat.com> 2765 2766 * plugin/icedteanp/IcedTeaPluginUtils.cc 2767 (NPIdentifierAsString): Leak-free utf8fromidentifier wrapper. 2768 * plugin/icedteanp/IcedTeaPluginUtils.h: Same. 2769 * plugin/icedteanp/IcedTeaJavaRequestProcessor.cc: Update calls 2770 * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: Same. 2771 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: Same. 2772 * plugin/icedteanp/IcedTeaScriptablePluginObject.h: Same. 2773 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc 2774 (NPIdentifierAsString): New, tests utility function 2775 * tests/cpp-unit-tests/browser_mock.cc 2776 (mock_utf8fromidentifier): New, mocks NPAPI function 2777 2778 2013-07-30 Jiri Vanek <jvanek@redhat.com> 2779 2780 * tests/reproducers/simple/simpletest1/resources/favicon.ico: new file 2781 should be served by test server in reproducers run and so prevent FNF exception 2782 * ChangeLog: fixed few entries below (added emty line between author and body) 2783 2784 2013-07-25 Andrew Azores <aazores@redhat.com> 2785 2786 * netx/net/sourceforge/jnlp/about/AboutDialog.java (AboutDialog, display): 2787 removed "throws IOException" 2788 * netx/net/sourceforge/jnlp/about/HTMLPanel.java (HTMLPanel): removed 2789 "throws IOException" and changed try/catch to catch IOException rather 2790 than Exception 2791 * netx/net/sourceforge/jnlp/controlpanel/AboutPanel.java: removed 2792 try/catch around AboutDialog.display() call 2793 * netx/net/sourceforge/jnlp/runtime/Boot.java (main): same 2794 * netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java: 2795 same 2796 2797 2013-07-22 Andrew Azores <aazores@redhat.com> 2798 2799 * netx/net/sourceforge/jnlp/runtime/RhinoBasedPacEvaluator.java: 2800 (getProxiesWithoutCaching) added java.vm.name read permission to fix 2801 Rhino parsing and PAC proxy configuration 2802 2803 2013-07-18 Jiri Vanek <jvanek@redhat.com> 2804 2805 IcedTea-Web is now following XDG .config and .cache specification(RH947647) 2806 * tests/reproducers/simple/simpletest1/testcases/XDGspecificationTests.java 2807 new file, test if XDG specification and trasnfer to it are followed correctly, 2808 * NEWS: mentioned new feature 2809 * Makefile.am: (PUBLIC_KEYSTORE) repalced by (PUBLIC_KEYSTORE_STUB) which 2810 is now holding only internal part of path.(exported-test-certs) 2811 (netx-dist-tests-import-cert-to-public) (netx-dist-tests-remove-cert-from-public) 2812 are now resolving XDG variable and setting real path of PUBLIC_KEYSTORE 2813 by resolved value and (PUBLIC_KEYSTORE) 2814 * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java: changed to be public 2815 and recently_used strign extracted to (CACHE_INDEX_FILE_NAME) constant 2816 * netx/net/sourceforge/jnlp/config/Defaults.java: is now resovling and 2817 propagating XDG_CONFIG/CACHE_HOME specification. (USER_HOME) repalced by 2818 (USER_CACHE_HOME) and (USER_CONFIG_HOME). 2819 (move14AndOlderFilesTo15Structure) new method responsible for moving 2820 of old data to new locations. (move14AndOlderFilesTo15StructureCatched) 2821 the same but with catch block 2822 * netx/net/sourceforge/jnlp/controlpanel/CachePane.java: 2823 * tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java: 2824 * tests/netx/unit/net/sourceforge/jnlp/util/PropertiesFileTest.java: 2825 are now using (CACHE_INDEX_FILE_NAME) 2826 * netx/net/sourceforge/jnlp/controlpanel/CommandLine.java: (main) 2827 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: (main) 2828 * netx/net/sourceforge/jnlp/runtime/Boot.java: (main) 2829 * plugin/icedteanp/java/sun/applet/PluginMain.java: (main) 2830 are now calling DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched 2831 asap. 2832 * netx/net/sourceforge/jnlp/util/FileUtils.java: various file manipulation 2833 methods moved inside here from test-extensions - (saveFile) (getContentOfStream) 2834 (loadFileAsString) - to avoid duplications 2835 * tests/test-extensions/net/sourceforge/jnlp/ProcessWrapper.java: for puposes of 2836 new test added constructor with string instead of URL 2837 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: see FileUtils.java 2838 2839 2013-07-17 Jiri Vanek <jvanek@redhat.com> 2840 2841 About dialogue made accessible from plugin 2842 * netx/net/sourceforge/jnlp/about/AboutDialog.java: (frame) re-declared 2843 to be Dialogue instead of JFrame and allowed to be modal if necessary. 2844 Caption internationalized. 2845 * netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java: 2846 Added listener for upper right caption to show AboutDialog 2847 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java: 2848 (drawBase) if enough space, adding about "button" 2849 * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java: 2850 added about button 2851 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java: 2852 minor modifications related to this change 2853 2854 2013-07-17 Jiri Vanek <jvanek@redhat.com> 2855 2856 about dialogue now available from itw-settings 2857 * netx/net/sourceforge/jnlp/controlpanel/AboutPanel.java: 2858 added button to launch about dialogue 2859 * netx/net/sourceforge/jnlp/resources/Messages.propertie: (CPAboutInfo) 2860 Adapted to be more accurate to select-able JVM 2861 2862 2013-07-17 Jiri Vanek <jvanek@redhat.com> 2863 Jacob Wisor <gitne@excite.co.jp> 2864 2865 added some missing de and pl strings 2866 * netx/net/sourceforge/jnlp/resources/Messages.properties: 2867 fixed about dialogue comment 2868 * netx/net/sourceforge/jnlp/resources/Messages_cs.properties: 2869 removed keystore comment 2870 * netx/net/sourceforge/jnlp/resources/Messages_de.properties: 2871 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties: 2872 added AboutDialogueTabAbout AboutDialogueTabAuthors 2873 AboutDialogueTabChangelog AboutDialogueTabNews AboutDialogueTabGPLv2 2874 localizations 2875 2876 2013-07-11 Andrew Azores <aazores@redhat.com> 2877 2878 * NEWS: added entry regarding new About Dialogue 2879 * netx/net/sourceforge/jnlp/about/AboutDialog.java: fixed localization of 2880 label on News tab 2881 2882 2013-07-11 Andrew Azores <aazores@redhat.com> 2883 2884 * Makefile.am (stamps/html-gen): moved plaintext-to-HTML logic into new 2885 shell script 2886 * html-gen.sh: contains plaintext-to-HTML logic previously found in 2887 Makefile.am. Added a sed expression to cause ChangeLog file listing 2888 entries to be underlined. 2889 2890 2013-07-06 Jiri Vanek <jvanek@redhat.com> 2891 Andrew Azores <aazores@redhat.com> 2892 2893 New about dialogue 2894 * Makefile.am (stamps/netx-html-gen): removed logic for extras.jar, added 2895 new stamp to create HTML for AboutDialog 2896 * netx/net/sourceforge/jnlp/about/AboutDialog.java: Moved out of extras into 2897 netx and renamed from Main. New Swing layout and uses HTML files 2898 generated in Makefile. 2899 * netx/net/sourceforge/jnlp/about/HTMLPanel.java: Moved out of 2900 extras into netx. Added ability to click hyperlinks. 2901 * netx/net/sourceforge/jnlp/runtime/Boot.java 2902 (main, getAboutFile, getJNLPFile, itwInfoMessage): changed way of launching 2903 About dialog to using new static display method rather than JNLP launch. 2904 Removed methods relating to JNLP launch. More informative and nicely 2905 formatted -headless information. 2906 * netx/net/sourceforge/jnlp/resources/Messages.properties 2907 (BAboutITW, BFileInfoAuthors, BFileInfoCopying, BFileInfoNews): added new 2908 messages for javaws -about -headless launch 2909 * netx/net/sourceforge/jnlp/resources/about.html: moved out of extras 2910 into netx. Added more content, changed formatting. 2911 * netx/net/sourceforge/jnlp/resources/about.jnlp: removed, no longer needed 2912 * netx/net/sourceforge/jnlp/resources/itw_logo.png: new image for About 2913 dialog. Modified version of javaws_splash.png 2914 * netx/net/sourceforge/jnlp/resources/jamIcon.jpg: moved out of extras 2915 into netx 2916 * extra/net/sourceforge/javaws/about/HTMLPanel.java: moved into netx 2917 * extra/net/sourceforge/javaws/about/Main.java: same 2918 * extra/net/sourceforge/javaws/about/resources/about.html: same 2919 * extra/net/sourceforge/javaws/about/resources/jamIcon.jpg: same 2920 * extra/net/sourceforge/javaws/about/resources/applications.html: removed 2921 * extra/net/sourceforge/javaws/about/resources/notes.html: removed 2922 2923 2013-06-28 Adam Domurad <adomurad@redhat.com> 2924 2925 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java 2926 (handleMessage): Fix potential NPE on 'GetValue' 2927 2928 2013-06-25 Jiri Vanek <jvanek@redhat.com> 2929 2930 * acinclude.m4: (IT_CHECK_FOR_TAGSOUP) is now correctly setting 2931 HAVE_TAGSOUP when it is not found 2932 2933 2013-06-24 Jiri Vanek <jvanek@redhat.com> 2934 2935 JNLP file is now re-downloading only if is local and have href 2936 * /netx/net/sourceforge/jnlp/Launcher.java: (launch) api cleared 2937 from (fromSource). (fromUrl) removed always re-downloading code and 2938 replaced by conditional. (launchBackground), (toFile), (BgRunner) 2939 removed. 2940 * netx/net/sourceforge/jnlp/runtime/Boot.java: following new (launch) 2941 * tests/reproducers/simple/GeneratedId/srcs/GeneratedId.java: just 2942 arguments reprinting application 2943 * tests/reproducers/simple/GeneratedId/testcases/GeneratedIdTest.java 2944 various tests based on href/no href x local/remote jnlp files 2945 * tests/reproducers/simple/GeneratedId/resources/GeneratedId.jnlp: base 2946 simple jnlp with someId argument 2947 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: reprinting 2948 the get/head correctly and with echo 2949 * NEWS: mentioned PR1473 2950 2951 2013-06-21 Adam Domurad <adomurad@redhat.com> 2952 2953 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: Simplify 2954 IcedTeaScriptableJavaObject 2955 * plugin/icedteanp/IcedTeaScriptablePluginObject.h: Same 2956 2957 2013-06-21 Adam Domurad <adomurad@redhat.com> 2958 2959 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc: 2960 Move 'get_scriptable_java_package_object' and 2961 'get_scriptable_java_object' into their correct respective classes. 2962 * plugin/icedteanp/IcedTeaScriptablePluginObject.h: Same. 2963 * plugin/icedteanp/IcedTeaNPPlugin.cc: Update references. 2964 * plugin/icedteanp/IcedTeaPluginUtils.cc: Same. 2965 * tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc: Same. 2966 2967 2013-06-21 Adam Domurad <adomurad@redhat.com> 2968 2969 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc 2970 (IcedTeaScriptablePluginObject::get_scriptable_java_package_object): Fix 2971 memory leak due to allocated NPClass. 2972 (IcedTeaScriptableJavaPackageObject::get_scriptable_java_object): 2973 Same. 2974 2975 2013-06-21 Adam Domurad <adomurad@redhat.com> 2976 2977 * plugin/icedteanp/IcedTeaPluginUtils.cc: Add global state clearing 2978 utility functions. 2979 * plugin/icedteanp/IcedTeaPluginUtils.h: Same. 2980 * tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc: Test 2981 scriptable object creation and destruction. 2982 * tests/cpp-unit-tests/browser_mock.cc 2983 (mock_createobject): New, mocks NPAPI 'createobject'. 2984 * tests/cpp-unit-tests/MemoryLeakDetector.h: New, memory leak detection 2985 utility class. 2986 * tests/cpp-unit-tests/main.cc 2987 (ReportTestFinish): Print which tests resulted in memory leaks. 2988 2989 2013-06-21 Jiri Vanek <jvanek@redhat.com> 2990 Adam Domurad <adomurad@redhat.com> 2991 Omair Majid <omajid@redhat.com> 2992 2993 Added tagsup (optional dependence) as sanitizer for (possibly) invalid xml files 2994 * Makefile.am: (LAUNCHER_BOOTCLASSPATH) (PLUGIN_BOOTCLASSPATH) (NETX_CLASSPATH_ARG) 2995 (PLUGIN_COVERAGE_BOOTCLASSPATH) enriched for TAGSOUP_JAR 2996 * acinclude.m4: (IT_CHECK_FOR_TAGSOUP) new macro 2997 * configure.ac: used this new macro 2998 * tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java: 2999 * netx/net/sourceforge/jnlp/JNLPCreator.java: (create) 3000 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 3001 * /netx/net/sourceforge/jnlp/JNLPFile.java: (JNLPFile) construcotrs 3002 * netx/net/sourceforge/jnlp/PluginBridge.java 3003 * netx/net/sourceforge/jnlp/Launcher.java: (main) 3004 all adapted to take ParserSettings instead of individual parameters 3005 * netx/net/sourceforge/jnlp/MalformedXMLParser.java: new file, bridge 3006 between tagsoup and our parser 3007 * netx/net/sourceforge/jnlp/XmlParser.java: new file, bridge to old parser 3008 * netx/net/sourceforge/jnlp/Parser.java: refactored to be able both with 3009 * netx/net/sourceforge/jnlp/ParserSettings.java: reworked to serve as 3010 gatherer for various individual parser flags 3011 * netx/net/sourceforge/jnlp/resources/Messages.propertie: (BOXml) 3012 new key describing -xml switch 3013 * tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java: 3014 * tests/netx/unit/net/sourceforge/jnlp/ParserMalformedXml.java: 3015 * tests/netx/unit/net/sourceforge/jnlp/ParserTest.java: 3016 Tests adapted to newest state (both for included/excluded tagsoup) and 3017 new (testTagNotClosedNoTagSoup) (testUnquotedAttributesNoTagSoup) 3018 3019 2013-06-20 Jiri Vanek <jvanek@redhat.com> 3020 3021 Removed out-of date support for jdk 1.5 and older 3022 * netx/net/sourceforge/jnlp/runtime/Boot.java: removed memories to Boot13 3023 * netx/net/sourceforge/jnlp/runtime/Boot13.java: removed 3024 3025 2013-06-20 Jiri Vanek <jvanek@redhat.com> 3026 3027 Made it work with OpenJDK build 25 3028 * netx/net/sourceforge/jnlp/runtime/Boot.java: (main) 3029 Application context created as soon as possible 3030 * plugin/icedteanp/java/sun/applet/PluginMain.java:(main) 3031 Application context created as soon as possible 3032 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: Do not consume 3033 exception after setLookAndFeel. 3034 3035 2013-06-18 Andrew Azores <aazores@redhat.com> 3036 3037 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: 3038 extracted some lines out of run() into new method urlToFilePath() 3039 * tests/test-extensions-tests/net/sourceforge/jnlp/ServerAccessTest.java: 3040 unit tests added for new urlToFilePath() 3041 3042 2013-06-06 Jiri Vanek <jvanek@redhat.com> 3043 Andrew Azores <aazores@redhat.com> 3044 3045 Handled semicolon in internal server 3046 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: 3047 added stripHttpPathParams method to remove semicolon-delimited "tags" 3048 from end of JAR URLs 3049 * tests/test-extensions-tests/net/sourceforge/jnlp/ServerAccessTest.java: 3050 added test case for new method in TinyHttpdImpl 3051 * tests/reproducers/simple/StripHttpPathParams/resources/StripHttpPathParams.html: 3052 browser-launched applet test case for reproducer 3053 * tests/reproducers/simple/StripHttpPathParams/resources/StripHttpPathParams.jnlp: 3054 JNLP test case for reproducer 3055 * tests/reproducers/simple/StripHttpPathParams/srcs/StripHttpPathParams.java: 3056 reproducer 3057 * tests/reproducers/simple/StripHttpPathParams/testcases/StripHttpPathParamsTest.java: 3058 Testcase to above reproducer 3059 3060 2013-06-06 Jiri Vanek <jvanek@redhat.com> 3061 3062 Made all tests running wit junit4.10 and higher 3063 * tests/junit-runner/CommandLine.java: (runMain) is no longer overriding 3064 and (runMainAndExit) is now calling System.exit rather then system.exit 3065 3066 2013-06-06 Jiri Vanek <jvanek@redhat.com> 3067 3068 Silenced deployment.properties and zero size applet exceptions with tests 3069 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: 3070 (findSystemConfigFile) and (loadProperties) now prints already cough exception 3071 only in debug mode 3072 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: (paint) 3073 now paints into 1 x 1 applet instead of 0 x 0 in case of 0 x 0 applet 3074 * tests/reproducers/simple/AppletTest/resources/appletZeroH.html: new file 3075 * tests/reproducers/simple/AppletTest/resources/appletZeroW.html: new file 3076 * tests/reproducers/simple/AppletTest/resources/appletZeroWH.html: new file 3077 - testing launchers with zero as width, height or both 3078 * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: 3079 added launchers and evaluations for three new htmls - (appletZeroWH) 3080 (appletZeroW) (appletZeroH) 3081 3082 2013-06-06 Jiri Vanek <jvanek@redhat.com> 3083 Jacob Wisor <gitne@excite.co.jp> 3084 3085 Enhanced manifest 3086 * netx.manifest.in: added Implementation-URL, Implementation-Vendor, 3087 Specification-Title, Specification-URL, Specification-Vendor and 3088 Specification-Version entries 3089 3090 2013-06-05 Adam Domurad <adomurad@redhat.com> 3091 3092 Fix PR1465 3093 * NEWS: Bug fix note 3094 * netx/net/sourceforge/jnlp/util/UrlUtils.java 3095 (isValidRFC2396Url): New, tests if valid URL by RFC2396 rules 3096 (normalizeUrl): Don't normalize if valid by RFC2396 3097 * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java: 3098 Adapt which URLs we expect to change when normalizing URLs 3099 * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java: 3100 (testIsValidRFC2396Url): New, tests isValidRFC2396Url 3101 (testNormalizeUrl): Add new test with valid RFC2396 URL 3102 3103 2013-06-04 Jiri Vanek <jvanek@redhat.com> 3104 3105 * netx/net/sourceforge/jnlp/resources/Messages.properties: 3106 more detailed hint for CCannotClearCache 3107 3108 2013-06-04 Adam Domurad <adomurad@redhat.com> 3109 3110 Remove unused files. 3111 * plugin/icedteanp/IcedTeaRunnable.cc: Removed. 3112 * plugin/icedteanp/IcedTeaRunnable.h: Removed. 3113 3114 2013-06-03 Adam Domurad <adomurad@redhat.com> 3115 3116 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: 3117 Handle resizing more robustly by not blocking worker thread 3118 3119 2013-06-03 Adam Domurad <adomurad@redhat.com> 3120 3121 * netx/net/sourceforge/jnlp/util/StreamUtils.java 3122 (copyStream): New, copies input stream to output stream 3123 * tests/netx/unit/net/sourceforge/jnlp/cache/NativeLibraryStorageTest.java: 3124 New, tests lookup of native libraries from folders and jars. 3125 * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: 3126 New, contains utilities for testing open file descriptors, creating temporary 3127 directories, and creating jars. 3128 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: 3129 Replace jar creation methods with ones from FileTestUtils. 3130 3131 2013-06-03 Adam Domurad <adomurad@redhat.com> 3132 3133 * netx/net/sourceforge/jnlp/cache/NativeLibraryStorage.java: New, 3134 stores and searches for native library files that are loaded from jars. 3135 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Move code 3136 that handled native jar caching to NativeLibraryStorage. 3137 3138 2013-05-29 Adam Domurad <adomurad@redhat.com> 3139 3140 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: 3141 Moved & renamed inner MockedOneJarJNLPFile to top-level 3142 DummyJNLPFileWithJar class. 3143 * tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java: 3144 Moved & renamed from JNLPClassLoaderTest.MockedOneJarJNLPFile. 3145 3146 2013-05-29 Adam Domurad <adomurad@redhat.com> 3147 3148 * netx/net/sourceforge/jnlp/resources/Messages.properties: 3149 "A serious exception occurred" -> "An exception occurred" 3150 3151 2013-05-20 Jiri Vanek <jvanek@redhat.com> 3152 3153 Synchronized launchers to be from one source 3154 * Makefile.am: (edit_launcher_script) is now accepting variables 3155 (launcher.build/$(javaws)) no depends on launcher/launchers.in instead of 3156 launcher/javaws.in and is filling the variables for javaws 3157 (launcher.build/$(itweb_settings)) no depends on launcher/launchers.in instead of 3158 launcher/itweb_settings.in and is filling the variables for itweb_settings 3159 * launcher/itweb-settings.in: removed 3160 * launcher/javaws.in: removed 3161 * launcher/launchers.in: new file, substitution of removed (itweb-settings.in) 3162 and javaws.in. Mostly based on javaws.in, just (CLASSNAME) and (PROGRAM_NAME) 3163 and (BINARY_LOCATION) were made more general. 3164 3165 2013-05-20 Jiri Vanek <jvanek@redhat.com> 3166 3167 Fixed possible deadlock for applet->js->applet call 3168 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: 3169 (REQUEST_TIMEOUT) new constant, 60s, to define timeout of applet->js call 3170 (waitForRequestCompletion) new method waiting to request to be done with 3171 timeout of REQUEST_TIMEOUT. 3172 (javascriptToString) using the waitForRequestCompletion instead of plain 3173 wait() 3174 * tests/reproducers/simple/AppletJsAppletDeadlock/resources/AppletJsAppletDeadlock.html 3175 and 3176 * tests/reproducers/simple/AppletJsAppletDeadlock/srcs/AppletJsAppletDeadlock.java 3177 reproducer 3178 * tests/reproducers/simple/AppletJsAppletDeadlock/testcases/AppletJsAppletDeadlockTest.java 3179 testcase 3180 3181 2013-05-17 Adam Domurad <adomurad@redhat.com> 3182 3183 Fix PR854: Resizing an applet several times causes 100% CPU load 3184 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 3185 (handleMessage): Replace buggy initialization wait. 3186 3187 2013-05-14 Jiri Vanek <jvanek@redhat.com> 3188 Jacob Wisor <gitne@excite.co.jp> 3189 3190 * netx/net/sourceforge/jnlp/resources/Messages.properties: (CPJVMitwExec) 3191 fixed invalid unicode character 3192 3193 2013-05-02 Jana Fabrikova <jfabriko@redhat.com> 3194 3195 * tests/reproducers/simple/JavawsAWTRobotUsageSample/resources/AppletAWTRobotUsageSample.html: 3196 new resource, html page for displaying the applet in browser 3197 * tests/reproducers/simple/JavawsAWTRobotUsageSample/testcases/AppletAWTRobotUsageSampleTest.java: 3198 new testcase with 6 browser tests 3199 3200 2013-05-02 Jana Fabrikova <jfabriko@redhat.com> 3201 3202 * Makefile.am: 3203 Change in processing the goal 3204 (stamps/compile-reproducers-testcases.stamp) 3205 All .java files from reproducers testcases directory are 3206 compiled, all non-java files are copied into the 3207 TEST_EXTENSIONS_TESTS_DIR, i.e. 3208 tests.build/test-extensions-tests directory 3209 * tests/reproducers/simple/JavawsAWTRobotFindsButton/resources/javaws-awtrobot-finds-button.jnlp: 3210 jnlp file for displaying the applet 3211 * tests/reproducers/simple/JavawsAWTRobotFindsButton/srcs/JavawsAWTRobotFindsButton.java: 3212 the applet used in the reproducer 3213 * tests/reproducers/simple/JavawsAWTRobotFindsButton/testcases/JavawsAWTRobotFindsButtonTest.java: 3214 adding 2 tests: that an icon is loaded, and that the button is 3215 identified from the given icon and clicked by awt robot 3216 * tests/reproducers/simple/JavawsAWTRobotFindsButton/testcases/buttonA.png: 3217 the icon of the wanted button 3218 3219 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3220 Jacob Wisor <gitne@excite.co.jp> 3221 3222 Added default, DE and PL localization's tweeks 3223 * netx/net/sourceforge/jnlp/resources/Messages.properties: 3224 * netx/net/sourceforge/jnlp/resources/Messages_de.properties: 3225 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties 3226 3227 2013-05-02 Adam Domurad <adomurad@redhat.com> 3228 3229 Ensure that PluginAppletviewer is resized in case of error. 3230 This fixes most of the cases of the error splash screen 3231 not appearing. 3232 * plugin/icedteanp/java/sun/applet/PluginAppletPanelFactory.java 3233 (createPanel): Resize earlier, before erroring out. 3234 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 3235 (PluginAppletViewer): Set size, remove fixme. 3236 3237 2013-05-02 Adam Domurad <adomurad@redhat.com> 3238 3239 * plugin/icedteanp/IcedTeaNPPlugin.cc: 3240 Remove only occurence of LEGACY_XULRUNNERAPI 3241 3242 2013-05-02 Adam Domurad <adomurad@redhat.com> 3243 3244 Introduce PluginPipeMock utility methods. 3245 * tests/test-extensions/sun/applet/PluginPipeMockUtil.java: New, 3246 enapsulates PluginPipeMock initialization, cleanup. As well, contains 3247 utility methods. 3248 * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: Use 3249 newly introduced utility methods. 3250 3251 2013-05-02 Adam Domurad <adomurad@redhat.com> 3252 3253 * plugin/icedteanp/java/sun/applet/MethodOverloadResolver.java 3254 (getBestOverloadMatch): Return null if a valid method was not found. 3255 * tests/netx/unit/sun/applet/MethodOverloadResolverTest.java 3256 (getResolvedMethod): New, gets ResolvedMethod from array of bundled class, 3257 string, and parameters 3258 (assertExpectedOverload): New variant that tests exact received values 3259 (testArrayToStringResolve): Tests array conversion to String 3260 (testArrayToArrayResolve): Tests array conversion to other arrays 3261 3262 2013-05-02 Adam Domurad <adomurad@redhat.com> 3263 3264 * plugin/icedteanp/java/sun/applet/MethodOverloadResolver.java 3265 (getCostAndCastedObject): Remove code that had no effect before refactoring. 3266 (getBestOverloadMatch): Move debug-only code to debug if-block. 3267 3268 2013-05-02 Jiri Vanek <jvanek@redhat.com> 3269 3270 Added various tests related to portalbank.no fixes 3271 * netx/net/sourceforge/jnlp/cache/Resource.java: added fixme to warn 3272 before wrong url comparator 3273 * netx/net/sourceforge/jnlp/Version.java: removed useless main. Its 3274 purpose moved to new 3275 * tests/netx/unit/net/sourceforge/jnlp/VersionTest: some small tests to 3276 version class 3277 * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java: 3278 added tests to (getUrlResponseCode) and (findBestUrl) 3279 * tests/netx/unit/net/sourceforge/jnlp/util/HttpUtilsTest.java: added tests for 3280 (consumeAndCloseConnectionSilently) and (consumeAndCloseConnection) 3281 * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest: added license header 3282 * tests/test-extensions/net/sourceforge/jnlp/ServerLauncher.java: and 3283 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: added 3284 support for simulation of not working HEAD request. 3285 3286 2013-05-02 Jiri Vanek <jvanek@redhat.com> 3287 3288 Fix for portalbank.no (trying get after failed head requests) 3289 * net/sourceforge/jnlp/cache/ResourceTracker : (findBestUrl) 3290 now trying GET after each error request of HEAD type. Changed and 3291 added debug messages. (getUrlResponseCode) closing of stream 3292 moved to separate method HttpUtils.consumeAndCloseConnectionSilently 3293 * net/sourceforge/jnlp/util/HttpUtils.java: new file designed for 3294 http utils. Now contains (consumeAndCloseConnection) and 3295 (consumeAndCloseConnectionSilently) which calls consumeAndCloseConnection 3296 but do not rethrow exception 3297 * netx/net/sourceforge/jnlp/util/StreamUtils.java: removed 3298 (consumeAndCloseInputStream) now improved and moved to HttpUtils 3299 3300 2013-05-02 Jana Fabrikova <jfabriko@redhat.com> 3301 3302 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java: 3303 refactoring - removing initStrGiven variable - now it only 3304 matters if the initStr is null or not. Modifying the following 3305 two methods: (charReaded) - if initStr is null the run method 3306 can not be started from charReaded and the presence of initStr 3307 is not checked in stdout. Method (getInitStrAsRule) returns rule 3308 that is always true if initStr is null. 3309 3310 2013-05-02 Jiri Vanek <jvanek@redhat.com> 3311 3312 Renamed cz locales to be more general 3313 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: renamed to 3314 * netx/net/sourceforge/jnlp/resources/Messages_cs.properties: new file 3315 * tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java: 3316 * tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java 3317 Adapted to new cz locales filename. 3318 3319 2013-05-02 Jana Fabrikova <jfabriko@redhat.com> 3320 3321 * Makefile.am: 3322 the directory $(TEST_EXTENSIONS_SRCDIR) (i.e. test/test-extensions) 3323 added on classpath for running reproducers, unit tests, and test code 3324 coverage for reproducers and unittests using emma and jacoco, that is 3325 for the following 6 targets: 3326 (stamps/run-netx-dist-tests.stamp) 3327 (stamps/run-netx-unit-tests.stamp) 3328 (stamps/run-unit-test-code-coverage.stamp) with EMMA 3329 (stamps/run-unit-test-code-coverage-jacoco.stamp) 3330 (stamps/run-reproducers-test-code-coverage.stamp) with EMMA 3331 (stamps/run-reproducers-test-code-coverage-jacoco.stamp) 3332 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java: 3333 modifying the constructor, the default icon is taken from 3334 ComponentFinder instead of loading from file 3335 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ComponentFinder.java: 3336 added a block of initialization code - the default icon 3337 * tests/netx/unit/net/sourceforge/jnlp/awt/imagesearch/ComponentFinderTest.java: 3338 unit test for the initialization code in ComponentFinder 3339 * tests/reproducers/simple/AWTCommonResourcesOnly/resources/marker.png: 3340 second copy of the default icon in a reproducer with resources only 3341 * tests/reproducers/simple/JavawsAWTRobotUsageSample/resources/javaws-awtrobot-usage-sample.jnlp: 3342 jnlp file for displaying the applet 3343 * tests/reproducers/simple/JavawsAWTRobotUsageSample/srcs/JavawsAWTRobotUsageSample.java: 3344 the applet 3345 * tests/reproducers/simple/JavawsAWTRobotUsageSample/testcases/JavawsAWTRobotUsageSampleTest.java: 3346 adding 6 testcases testing clicking with different mouse 3347 buttons on the applet 3348 * tests/test-extensions-tests/net/sourceforge/jnlp/awt/imagesearch/ComponentFinderTest.java: 3349 unit test for the initialization code in ComponentFinder 3350 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/marker.png: 3351 first copy of the default icon, will be on classpath 3352 3353 2013-04-30 Adam Domurad <adomurad@redhat.com> 3354 3355 * tests/netx/unit/sun/applet/MethodOverloadResolverTest.java: Add missing 3356 copyright header. 3357 * tests/netx/unit/sun/applet/PluginAppletSecurityContextTest.java: Same. 3358 * tests/netx/unit/sun/applet/PluginParameterParserTest.java: Same. 3359 3360 2013-04-29 Jiri Vanek <jvanek@redhat.com> 3361 3362 More granular initialization of AwtHelper 3363 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: added 3364 (executeBrowser) which can work upon fully constructed url 3365 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java: 3366 (captureScreenAndFindAppletByIconTryKTimes) split to three: 3367 (captureScreenAndFindAppletByIconTryKTimes) - unchanged, now using following 3368 (initialiseOnScreenshot) initialize from given buffered image, creating area 3369 (initialiseOnScreenshotAndArea) initialize from two given buffered images 3370 3371 2013-04-29 Jiri Vanek <jvanek@redhat.com> 3372 3373 Improved performance of scanning images, added masking of images 3374 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ImageSeeker.java: 3375 (findExactImage) now using masks and is iterating over rows 3376 (getMaskImage) new method to visualize mask 3377 (getMask) new method to create mask 3378 (getPixels) method to extract pixels from image to int array 3379 3380 2013-04-29 Jana Fabrikova <jfabriko@redhat.com> 3381 3382 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java: 3383 refactoring Point instead of Rectangle as icon position as 3384 markerPosition 3385 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ComponentFinder.java: 3386 refactoring Point instead of Rectangle as icon position in several 3387 search methods 3388 3389 2013-04-29 Jana Fabrikova <jfabriko@redhat.com> 3390 3391 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java: 3392 fixing method (captureScreenAndFindAppletByIconTryKTimes), 3393 which should not throw AWTFrameworkException 3394 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ComponentFinder.java: 3395 fixing the return values of several search methods 3396 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ImageSeeker.java: 3397 fixing the return values of several search methods 3398 3399 2013-04-26 Jana Fabrikova <jfabriko@redhat.com> 3400 3401 * /tests/test-extensions/net/sourceforge/jnlp/closinglisteners/RulesFolowingClosingListener.java: 3402 added a getter method getRules 3403 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTHelper.java: 3404 the most important class of AWTFramework, combines closing listener and 3405 possibility to use mouse and keyboard for input to tests 3406 * tests/test-extensions/net/sourceforge/jnlp/awt/AWTFrameworkException.java: 3407 exception that is raised in the framework whenever programmer did not 3408 provide enough information 3409 * tests/test-extensions/net/sourceforge/jnlp/awt/awtactions/KeyboardActions.java: 3410 class with utility keyboard methods 3411 * tests/test-extensions/net/sourceforge/jnlp/awt/awtactions/MouseActions.java: 3412 class with utility mouse methods 3413 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ComponentFinder.java: 3414 class for finding components in a screenshot 3415 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ComponentNotFoundException.java: 3416 exception that can be raised if an important component could not be found 3417 * tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ImageSeeker.java: 3418 class for general image searching 3419 * tests/reproducers/simple/AWTCommonResourcesOnly/resources/marker.png: 3420 reproducer with resources only, contains the default icon marking 3421 applets 3422 3423 2013-04-26 Adam Domurad <adomurad@redhat.com> 3424 3425 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java 3426 (getCacheFile): Use decodeUrlAsFile instead of toURI().getPath(). 3427 * netx/net/sourceforge/jnlp/util/UrlUtils.java 3428 (decodeUrlAsFile): New, tolerates ill-formed URLs. 3429 * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java: 3430 (testDecodeUrlAsFile): Test for (decodeUrlAsFile) 3431 3432 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3433 Jacob Wisor <gitne@excite.co.jp> 3434 3435 Added polish localisation 3436 * netx/net/sourceforge/jnlp/resources/Messages_de.properties 3437 * netx/net/sourceforge/jnlp/resources/Messages.properties: minor fixes 3438 * netx/net/sourceforge/jnlp/resources/Messages_pl.properties: new localization 3439 nearly complete list of PL values 3440 * tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java 3441 Added PL as known translation 3442 * tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java: 3443 Added tests to PL integration 3444 3445 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3446 Alexandr Kolouch <skolnag@gmail.com> 3447 3448 Improved and completed CZ localisation 3449 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: 3450 Added missing items, some fixes 3451 3452 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3453 Alexandr Kolouch <skolnag@gmail.com> 3454 3455 Added CZ localization of itw-settings Xdesktop configuration file 3456 * itweb-settings.desktop.in: added Name[cs] and Name[cs] keys with values. 3457 3458 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3459 Jacob Wisor <gitne@excite.co.jp> 3460 3461 Added DE and PL localization of itw-settings Xdesktop configuration file 3462 * itweb-settings.desktop.in: added Name[de], Name[pl], Comment[de], Comment[pl] 3463 keys with values. Added Keywords key with values. 3464 3465 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3466 3467 Silenced unittests 3468 * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageImplTest.java: and 3469 * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: 3470 System.out.println replaced by ServerAccess.logOutputReprint 3471 3472 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3473 3474 Fixed compilation under jdk6 3475 * netx/net/sourceforge/jnlp/util/JarFile.java: 3476 is now implementing Closeable 3477 3478 2013-04-26 Jiri Vanek <jvanek@redhat.com> 3479 3480 Fixed regressed unittest and "cause" 3481 * /netx/net/sourceforge/jnlp/NullJnlpFileException.java: 3482 fixed header 3483 * netx/net/sourceforge/jnlp/SecurityDesc.java: (SecurityDesc) is now 3484 throwing NullJnlpFileException in case of null jnlp file. 3485 * tests/netx/unit/net/sourceforge/jnlp/ParserBasic.java: is now using 3486 correct DummyJnlpFile 3487 * tests/netx/unit/net/sourceforge/jnlp/SecurityDescTest.java: new testfile. 3488 (testNotNullJnlpFile) (testNullJnlpFile) testing the behavior for null 3489 jnlp file and for existing jnlpfile. 3490 * tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: 3491 (DummyJnlpFile) extracted to test-extensions and have removed incorrect have security 3492 (testNullFileSecurityDescApplet) and (testNullFileSecurityDesc) is now expecting 3493 NullJnlpFileException instead of results 3494 * tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFile.java: new 3495 reusable dummy jnlp file 3496 3497 2013-04-25 Adam Domurad <adomurad@redhat.com> 3498 3499 Add accidentally not included files from "Tests & test extensions for 3500 mocking the plugin input & output pipes." 3501 3502 2013-04-25 Adam Domurad <adomurad@redhat.com> 3503 3504 Fix a dead-lock that can cause (namely) Firefox to hang. 3505 * netx/net/sourceforge/jnlp/NetxPanel.java 3506 (appletAlive): Remove flag. 3507 (isAlive): Remove getter. 3508 (initialized): New, explicit initialization flag. 3509 (isInitialized): New, getter. 3510 (runLoader): Set initialization flag when done (whether errored or not). 3511 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 3512 (waitForAppletInit): Wait on initialization flag from NetxPanel. 3513 (handleMessage): Remove redundant waiting for init. Respond properly to 3514 GetJavaObject in case of error/time-out. 3515 3516 2013-04-25 Adam Domurad <adomurad@redhat.com> 3517 3518 * tests/netx/unit/net/sourceforge/jnlp/AsyncCallTest.java: Unit tests for 3519 AsyncCall test extension. 3520 3521 2013-04-25 Adam Domurad <adomurad@redhat.com> 3522 3523 Tests & test extensions for mocking the plugin input & output pipes. 3524 * Makefile.am 3525 (stamps/test-extensions-compile.stamp): Make plugin classes available 3526 to test extensions 3527 * tests/test-extensions/net/sourceforge/jnlp/AsyncCall.java: New, helper 3528 for doing asynchronous calls with an optional timeout. 3529 * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: New, uses 3530 PluginPipeMock to test the javascript requests to the plugin. 3531 * tests/test-extensions/sun/applet/mock/PluginPipeMock.java: New, helper 3532 for getting the plugin requests and mocking the replies. 3533 3534 2013-04-25 Jiri Vanek <jvanek@redhat.com> 3535 3536 Locking disabled on windows machines 3537 * netx/net/sourceforge/jnlp/util/lockingfile/LockedFile.java: 3538 (lock) and (unlock) are no-op on windows. 3539 3540 2013-04-25 Jiri Vanek <jvanek@redhat.com> 3541 3542 Splashscreen now strip commit id from released versions 3543 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java: 3544 (stripCommitFromVersion) new method responsible for cutting 3545 (drawBase) now using stripCommitFromVersion before printing drawing version 3546 to splashscreen 3547 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainterTest.java: 3548 (stripCommitFromVersion) new test for 3549 3550 2013-04-24 Adam Domurad <adomurad@redhat.com> 3551 3552 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: 3553 Remove unnecessary line that can result in NPE 3554 3555 2013-04-23 Adam Domurad <adomurad@redhat.com> 3556 3557 * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java: 3558 Added tests for decodeUrlQuietly, normalizeUrl, normalizeUrlQuietly. 3559 3560 2013-04-23 Adam Domurad <adomurad@redhat.com> 3561 3562 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java: Remove no 3563 longer used constants. Remove (normalizeUrl). Update calls. 3564 * netx/net/sourceforge/jnlp/cache/CacheUtil.java: Expand imports. 3565 Update calls. 3566 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: 3567 Ensure file://-protocol URLs are encoded. 3568 * netx/net/sourceforge/jnlp/util/UrlUtils.java: Add (normalizeUrl), 3569 and related utility methods. Allow for optionally encoding file:// 3570 URLs. 3571 3572 2013-04-23 Adam Domurad <adomurad@redhat.com> 3573 3574 Ensure document-base is properly encoded. 3575 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java 3576 (getCacheFile): Use URL#toUri().getPath() instead of URL#getFile(). 3577 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 3578 (handleInitializationMessage): Don't decode document-base. 3579 3580 2013-04-23 Adam Domurad <adomurad@redhat.com> 3581 3582 Reproducer for URL parameters (eg ?a=b) in document-base. 3583 * tests/reproducers/simple/URLParametersInDocumentBase/resources/URLParametersInDocumentBase.html: 3584 Page that loads applet. 3585 * tests/reproducers/simple/URLParametersInDocumentBase/srcs/URLParametersInDocumentBase.java: 3586 Applet that prints code-base & document-base. 3587 * tests/reproducers/simple/URLParametersInDocumentBase/testcases/URLParametersInDocumentBaseTests.java: 3588 Test-driver. 3589 3590 2013-04-23 Adam Domurad <adomurad@redhat.com> 3591 3592 * netx/net/sourceforge/jnlp/NetxPanel.java 3593 (exitOnFailure): Remove always-false field. 3594 (NetxPanel): Remove overloaded constructor 3595 (runLoader): Do not swallow LaunchException's. Remove dead 3596 exitOnFailure code-path. Set applet status to APPLET_ERROR on 3597 exception. 3598 * plugin/icedteanp/java/sun/applet/PluginAppletPanelFactory.java 3599 (createPanel): Update call to NetxPanel constructor. 3600 3601 2013-04-23 Adam Domurad <adomurad@redhat.com> 3602 3603 * tests/reproducers/signed/AppContextHasJNLPClassLoader/resources/AppContextHasJNLPClassLoader.html: 3604 Test AppContext context classloader from HTML applet 3605 * tests/reproducers/signed/AppContextHasJNLPClassLoader/resources/AppContextHasJNLPClassLoader.jnlp: 3606 Test AppContext context classloader from JNLP application 3607 * tests/reproducers/signed/AppContextHasJNLPClassLoader/resources/AppContextHasJNLPClassLoaderForJNLPApplet.jnlp: 3608 Test AppContext context classloader from JNLP applet 3609 * tests/reproducers/signed/AppContextHasJNLPClassLoader/srcs/AppContextHasJNLPClassLoader.java: 3610 Print out context classloader for thread & AppContext, for 3611 current thread & Swing thread. 3612 * tests/reproducers/signed/AppContextHasJNLPClassLoader/testcases/AppContextHasJNLPClassLoaderTest.java: 3613 Test runner for AppContextHasJNLPClassLoader 3614 3615 2013-04-23 Adam Domurad <adomurad@redhat.com> 3616 3617 Ensure JarFile handles do not leak. 3618 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 3619 Ensure close is called for each JarFile. 3620 3621 2013-04-23 Adam Domurad <adomurad@redhat.com> 3622 3623 * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: 3624 New, JNLPClassLoader unit tests for (checkForMain), (getMainClassName), 3625 (activateNativeJar), and (isInvalidJar). Checks for file descriptor 3626 leaks. 3627 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 3628 (isInvalidJar): Change to default visibility for testing purposes. 3629 (checkForMain): Same. 3630 (getMainClassName): Same. 3631 3632 2013-04-23 Adam Domurad <adomurad@redhat.com> 3633 3634 Rewrite of MethodOverloadResolver with detailed unittests. 3635 * plugin/icedteanp/java/sun/applet/MethodOverloadResolver.java: 3636 Rewritten to reduce duplicated code, fix very subtle bugs in 3637 never-tested codepaths, obey spec properly. Introduced new helper types 3638 where Object[] arrays with special-meaning positions were passed 3639 around. 3640 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java: 3641 Updated to work with newly introduced types / refactored overload 3642 resolver. 3643 * tests/netx/unit/sun/applet/MethodOverloadResolverTest.java: In-depth 3644 unit tests of hairy details of method overloading in JS<->Java. 3645 3646 2013-04-23 Omair Majid <omajid@redhat.com> 3647 3648 PR1299 3649 * NEWS: Update with fix 3650 * netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java 3651 (initFromBrowserConfig): Fix typo in socks proxy setting key. 3652 3653 2013-04-19 Jiri Vanek <jvanek@redhat.com> 3654 3655 testing server allowed from makefile 3656 * Makefile.am: 3657 (stamps/netx-dist-tests-prepare-reproducers.stamp) added stamps/netx-dist.stamp stamps/plugin.stamp dependence 3658 (stamps/test-extensions-compile.stamp) added stamps/netx-dist.stamp stamps/plugin.stamp dependence 3659 (stamps/compile-reproducers-testcases.stamp) added stamps/plugin.stamp dependence 3660 (run-test-server-on-44321) new target, starts server in deploy dir, on port 44321 3661 (run-test-server-on-random-port) new target, starts server in deploy dir, on random port 3662 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: (main) 3663 added better access to random port 3664 3665 2013-04-17 Jiri Vanek <jvanek@redhat.com> 3666 3667 Added various self-describing tests for codebase 3668 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet-reader1-writer1.html 3669 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet-reader1-writer2.html 3670 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet-reader1.html 3671 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet-reader2.html 3672 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet-writer1.html 3673 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet-writer2.html 3674 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet2-reader1-writer1.html 3675 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet2-reader1-writer2.html 3676 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet2-reader1.html 3677 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet2-reader2.html 3678 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet2-writer1.html 3679 * tests/reproducers/simple/AppletSharedClassLoader/resources/LaunchSharedClassLoaderApplet2-writer2.html 3680 * tests/reproducers/simple/AppletSharedClassLoader/srcs/SharedClassLoaderApplet1.java 3681 * tests/reproducers/simple/AppletSharedClassLoader/srcs/SharedClassLoaderApplet2.java 3682 * tests/reproducers/simple/AppletSharedClassLoader/srcs/SharedSecret.java 3683 * tests/reproducers/simple/AppletSharedClassLoader/testcases/SharedClassLoaderApplet_WrittenCompleteCodeBaseTest.java 3684 * tests/reproducers/simple/AppletSharedClassLoader/testcases/SharedClassLoaderApplet_WrittenPartialStubCodeBaseTest.java 3685 * tests/reproducers/simple/AppletSharedClassLoader/testcases/SharedClassLoaderApplet_dotCodeBaseTest.java 3686 3687 2013-04-17 Adam Domurad <adomurad@redhat.com> 3688 Jiri Vanek <jvanek@redhat.com> 3689 3690 CVE-2013-1926, RH916774: Class-loader incorrectly shared for applets with 3691 same relative-path. 3692 * netx/net/sourceforge/jnlp/PluginParameters.java 3693 (getCodeBase): Removed 3694 (getUniqueKey): Now takes absolute codebase 3695 * netx/net/sourceforge/jnlp/NetxPanel.java: Pass absolute codebase in 3696 getUniqueKey calls. 3697 * netx/net/sourceforge/jnlp/PluginBridge.java: Same. 3698 3699 2013-04-17 Jiri Vanek <jvanek@redhat.com> 3700 3701 Fixed gifar vulnereability with automated testcase 3702 * netx/net/sourceforge/jnlp/util/JarFile.java: IcedTea-Web replacement for 3703 java.util.jar.JarFile.java with capability to verify if the jar starts as jar 3704 and not as something else (eg gif) 3705 * netx/net/sourceforge/jnlp/Launcher.java: migrated to new JarFile 3706 * netx/net/sourceforge/jnlp/resources/Messages.properties: added 3707 BXignoreheaders key with description to new -Xignoreheaders switch 3708 * netx/net/sourceforge/jnlp/runtime/Boot.java: added switch Xignoreheaders 3709 to allow to disable the header verification. 3710 * netx/net/sourceforge/jnlp/runtime/CachedJarFileCallback.java: 3711 migrated to new JarFile 3712 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: improved 3713 reporting of new JarFile exceptions 3714 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: new field 3715 ignoreHeaders, informing about new JarFile whether to verify or not verify 3716 headers. By default verifying, so have value of false. 3717 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: migrated to new JarFile 3718 * netx/net/sourceforge/jnlp/util/InvalidJarHeaderException.java: new 3719 not-checked exception to signify that jar is corrupted on headers level. 3720 * tests/reproducers/custom/GifarCreator/srcs/Makefile: makefile to 3721 join gif and jar to create gifar 3722 * tests/reproducers/signed/GifarBase/resources/gifarView_hacked.html: 3723 html with hacked gifar 3724 * tests/reproducers/signed/GifarBase/resources/gifarView_ok.html: 3725 html with valid gifs and jars 3726 * tests/reproducers/signed/GifarBase/resources/gifar_applet.jnlp: 3727 jnlp applet constructed from hacked gifar 3728 * tests/reproducers/signed/GifarBase/resources/gifar_application.jnlp: 3729 jnlp application constructed from hacked gifar 3730 * tests/reproducers/signed/GifarBase/srcs/GifarMain.java: 3731 Main method of reproducer 3732 * tests/reproducers/signed/GifarBase/testcases/GifarTestcases.java: 3733 Testing methods 3734 * tests/reproducers/signed/GifarBase/resources/happyNonAnimated.gif: 3735 binary file, image, gif, used to create hacked gifars 3736 3737 2013-04-17 Jiri Vanek <jvanek@redhat.com> 3738 3739 removed java call to obtain jvm args for plugin 3740 * /plugin/icedteanp/IcedTeaNPPlugin.cc: (get_jvm_args) 3741 Java call replaced by call to recently added read_deploy_property_value 3742 function. 3743 3744 2013-04-12 Adam Domurad <adomurad@redhat.com> 3745 3746 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java: 3747 Clean-up generated code. 3748 3749 2013-04-12 Adam Domurad <adomurad@redhat.com> 3750 3751 Present more information in unsigned applet confirmation. 3752 * netx/net/sourceforge/jnlp/resources/Messages.properties 3753 (SRememberCodebase): Add codebase parameter. 3754 (SUnsignedDetail): Change layout, add documentbase parameter. 3755 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningPanel.java 3756 (setupInfoPanel): Pass documentbase to SUnsignedDetail. 3757 (createCheckBoxPanel): Ensure left-alignment. 3758 (createButtonPanel): Less spacing above button. 3759 3760 2013-04-12 Jiri Vanek <jvanek@redhat.com> 3761 3762 Added help for extended applets security and settings 3763 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel: 3764 (helpButtonActionPerformed) added code to open dialogue with help 3765 * netx/net/sourceforge/jnlp/resources/Messages.propertie: 3766 Included html help message 3767 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningPanel.java: 3768 added help button and logic to open help dialogue 3769 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExtendedAppletSecurityHelp.java: 3770 Simple dialogue with JEditorPane with html help from properties and few 3771 navigation buttons 3772 * NEWS: mentioned extended appelts security 3773 3774 2013-04-12 Jiri Vanek <jvanek@redhat.com> 3775 3776 Added dialogue to allow setting of custom JRE 3777 * launcher/itweb-settings.in: and 3778 * launcher/javaws.in: check for custom jre less strict 3779 * netx/net/sourceforge/jnlp/config/Defaults.java:made aware of 3780 deployment.jre.dir constant 3781 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: added\ 3782 KEY_JRE_DIR= "deployment.jre.dir" constant, user file occurrences extracted 3783 to USER_DEPLOYMENT_PROPERTIES_FILE. 3784 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: used validation 3785 of jdk when saving properties 3786 * netx/net/sourceforge/jnlp/controlpanel/JVMPanel.java: added text-field 3787 to set JVM directory, friendly with logic and validation. 3788 * netx/net/sourceforge/jnlp/resources/Messages.properties: added messages 3789 to JVM selection and validation. 3790 * netx/net/sourceforge/jnlp/util/StreamUtils.java: (readStreamAsString) 3791 new utility method. 3792 * NEWS: mentioned select-able JVM 3793 3794 2013-04-11 Adam Domurad <adomurad@redhat.com> 3795 3796 Remove legacy support for the old version of NPAPI. 3797 * plugin/icedteanp/IcedTeaNPPlugin.cc: Remove if directives for old 3798 version of NPAPI. 3799 * plugin/icedteanp/IcedTeaNPPlugin.h: Same 3800 * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: Same 3801 * plugin/icedteanp/IcedTeaPluginRequestProcessor.h: Same 3802 * plugin/icedteanp/IcedTeaPluginUtils.cc: Same 3803 * plugin/icedteanp/IcedTeaPluginUtils.h: Same 3804 * plugin/icedteanp/IcedTeaRunnable.h: Same 3805 * plugin/icedteanp/IcedTeaScriptablePluginObject.h: Same 3806 3807 2013-04-11 Adam Domurad <adomurad@redhat.com> 3808 3809 Allow remembering applet confirmation for whole codebase. 3810 * netx/net/sourceforge/jnlp/resources/Messages.properties: 3811 Added SRememberAppletOnly, SRememberCodebase messages 3812 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java 3813 (showUnsignedWarningDialog): Use UnsignedWarningAction 3814 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningDialog.java 3815 (UnsignedAppletTrustWarningDialog): Use UnsignedWarningAction 3816 * net/sourceforge/jnlp/security/UnsignedAppletTrustWarningPanel.java: 3817 Introduce UnsignedWarningAction, add additional confirmation choices 3818 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: 3819 Support remembering action for entire codebase. 3820 3821 2013-04-10 Jana Fabrikova <jfabriko@redhat.com> 3822 3823 * /tests/reproducers/simple/JSToJFuncResol/testcases/JSToJFuncResolTest.java: 3824 adding 11 testcases based on the interactive Liveconnect JS->Java 3825 overloaded function resolution tests, tests with JSObject were already 3826 included 3827 * /tests/reproducers/simple/JSToJFuncResol/srcs/JSToJFuncResol.java: 3828 the applet whose methods are invoked from JS during the tests 3829 * /tests/reproducers/simple/JSToJFuncResol/resources/JSToJava_FuncResol.js: 3830 the JavaScript code for calling the applet methods from JS 3831 * /tests/reproducers/simple/JSToJFuncResol/resources/jstoj-funcresol.jnlp: 3832 java network launch protocol file for displaying applet in the html 3833 page 3834 * /tests/reproducers/simple/JSToJFuncResol/resources/JSToJFuncResol.html: 3835 the html page with java applet embedded, displayed in browser during 3836 the tests 3837 3838 2013-04-10 Jana Fabrikova <jfabriko@redhat.com> 3839 3840 * /tests/reproducers/simple/JToJSFuncReturn/testcases/JToJSFuncReturnTest.java: 3841 adding 5 testcases based on the interactive Liveconnect JS->Java 3842 function return type tests 3843 * /tests/reproducers/simple/JToJSFuncReturn/srcs/JToJSFuncReturn.java: 3844 the applet that calls JS functions 3845 * tests/reproducers/simple/JToJSFuncReturn/resources/JToJS_FuncReturn.js: 3846 auxiliary JavaScript code 3847 * /tests/reproducers/simple/JToJSFuncReturn/resources/jtojs-funcreturn.jnlp: 3848 jnlp file for displaying applet in the html page 3849 * /tests/reproducers/simple/JToJSFuncReturn/resources/JToJSFuncReturn.html: 3850 the html page where the applet calling JS functions is embedded 3851 3852 2013-04-08 Jiri Vanek <jvanek@redhat.com> 3853 3854 * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Epiphany.java: 3855 Removed good --sm-client-disable switch. No longer supported by epiphany 3856 3857 2013-04-04 Jiri Vanek <jvanek@redhat.com> 3858 3859 Plugin is now honoring the custom jre 3860 * launcher/itweb-settings.in : 3861 * launcher/javaws.in: 3862 In case that custom jre do not exists, complains, and use default rather 3863 * plugin/icedteanp/IcedTeaNPPlugin.cc: (get_plugin_executable) and 3864 (get_plugin_rt_jar) now tries to return custom values before returning the 3865 default one. 3866 3867 2013-04-03 Jana Fabrikova <jfabriko@redhat.com> 3868 3869 * /test/reproducers/simple/JavascriptFuncParam/testcases/JavascriptFuncParamTest.java: 3870 added annotation KnownToFail in googleChrome and chromiumBrowser to 3871 the method (AppletJToJSFuncParam_JSObject_Test) 3872 * /test/reproducers/simple/JavascriptGet/testcases/JavascriptGetTest.java: 3873 added annotation KnownToFail in midori, epiphany, googleChrome 3874 and chromiumBrowser to the methods (AppletJToJSGet_1DArray_Test) 3875 and (AppletJToJSGet_2DArray_Test) 3876 3877 2013-04-03 Jana Fabrikova <jfabriko@redhat.com> 3878 3879 * /tests/test-extensions/net/sourceforge/jnlp/annotations/KnownToFailInBrowsers.java: 3880 the implementation of new annotation, which has an array of 3881 browsers of type Browsers[] named failsIn 3882 * /tests/junit-runner/JunitLikeXmlOutputListener.java: 3883 in method (testDone) the testcases that are known to fail in 3884 current browser are detected in addition to the tests that are 3885 k2f in all browsers 3886 * /tests/junit-runner/LessVerboseTextListener.java: 3887 added method (getK2FinB) reading the annotation, 3888 in method (printK2F) the testcases that are known to fail in 3889 current browser are detected in addition to the tests that are 3890 k2f in all browsers 3891 3892 2013-03-28 Adam Domurad <adomurad@redhat.com> 3893 3894 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java 3895 (normalizeUrlAndStripParams): Moved. 3896 * netx/net/sourceforge/jnlp/util/UrlUtils.java 3897 (normalizeUrlAndStripParams): New, moved from 3898 UnsignedAppletTrustConfirmation. 3899 * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmationTest.java 3900 (testNormalizeUrlAndStripParams): Moved. 3901 * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java: 3902 New, has (testNormalizeUrlAndStripParams) from 3903 UnsignedAppletTrustConfirmationTest. 3904 3905 2013-03-22 Jiri Vanek <jvanek@redhat.com> 3906 3907 Added code to parse properties and to find correct configuration files 3908 from c++ part of plugin 3909 * Makefile.am: IcedTeaParseProperties.cc added to be compiled with rest 3910 of plugin 3911 * plugin/icedteanp/IcedTeaParseProperties.cc: new file, contains implementation 3912 for searching for config files and to read value from them 3913 * plugin/icedteanp/IcedTeaParseProperties.h: public api for "library" 3914 * plugin/icedteanp/IcedTeaPluginUtils.cc: 3915 * plugin/icedteanp/IcedTeaPluginUtils.h: added new methods (trim) and 3916 (file_exists) 3917 * tests/cpp-unit-tests/IcedTeaParsePropertiesTest.cc: tests for library methods 3918 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: added tests for new methods 3919 3920 2013-03-28 Adam Domurad <adomurad@redhat.com> 3921 3922 Don't interrupt worker/consumer threads (can prevent shutdown code from 3923 executing); instead use Object wait/notify methods. 3924 * plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java 3925 (notifyHasWork): Replacement for thread interruption 3926 (waitForWork): Replacement for thread sleeping 3927 (run): Use waitForWork instead of Thread.sleep 3928 (notifyWorkerIsFree): Removed -- misleading method. 3929 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 3930 (message): Make volatile, as it should have always been. 3931 (notifyHasWork): Replacement for thread interruption 3932 (waitForWork): Replacement for thread sleeping 3933 (run): Use waitForWork instead of Thread.sleep 3934 (getPermissions): avoid potential NPE if code source location is 3935 missing 3936 (free): Remove reference to notifyWorkerIsFree. 3937 3938 2013-03-26 Adam Domurad <adomurad@redhat.com> 3939 3940 Integration of unsigned applet confirmation dialogue. 3941 * netx/net/sourceforge/jnlp/PluginBridge.java 3942 (getArchiveJars): New, returns archive jars as list 3943 * netx/net/sourceforge/jnlp/resources/Messages.properties: 3944 Confirmation messages added to properties file 3945 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 3946 (getInstance): Initialization refactored into createInstance 3947 (createInstance): New, checks if unsigned applet is allowed, 3948 initializes classloader. 3949 (initializeResources): Don't consider no-jar applets signed. 3950 * netx/net/sourceforge/jnlp/security/SecurityDialogs.java 3951 (showUnsignedWarningDialog): Creates message with 3952 DialogType.UNSIGNED_WARNING 3953 * netx/net/sourceforge/jnlp/security/SecurityDialog.java 3954 (installPanel): Add case for DialogType.UNSIGNED_WARNING 3955 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletActionStorage.java: 3956 Expose locking members from interface 3957 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 3958 (handleInitializationMessage): Do nothing if applets have been 3959 disabled. 3960 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningDialog.java: 3961 New, security dialog that asks for unsigned applet confirmation. 3962 * netx/net/sourceforge/jnlp/security/UnsignedAppletTrustWarningPanel.java: 3963 Implements the dialog contents for unsigned applet confirmation. 3964 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmation.java: 3965 Updates and checks applet confirmation storage, creates warning dialog 3966 if required. 3967 * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmationTest.java: 3968 New, tests relative & normalized path creation helpers. 3969 3970 2013-03-26 Jiri Vanek <jvanek@redhat.com> 3971 3972 Path validator fixed to be correctly multiplatform 3973 * netx/net/sourceforge/jnlp/config/BasicValueValidators.java : 3974 (FilePathValidator) now check absolute file by File.isAbsolute() instead 3975 of by plain "/". 3976 * tests/netx/unit/net/sourceforge/jnlp/config/BasicValueValidatorsTests.java : 3977 New file to test new functionality. 3978 3979 2013-03-25 Jana Fabrikova <jfabriko@redhat.com> 3980 3981 * tests/reproducers/simple/JavascriptFuncReturn/testcases/JavascriptFuncReturnTest.java 3982 adding 5 testcases for testing calling javascript functions with 3983 various return types from java 3984 * tests/reproducers/simple/JavascriptFuncReturn/resources/JavascriptFuncReturn.html 3985 the html page for displaying browser tests 3986 * tests/reproducers/simple/JavascriptFuncReturn/resources/Javascript_FuncReturn.js 3987 auxiliary javascript functions 3988 * tests/reproducers/simple/JavascriptFuncReturn/resources/javascript-funcreturn.jnlp 3989 jnlp file for embedding applet in the html page 3990 * tests/reproducers/simple/JavascriptFuncReturn/srcs/JavascriptFuncReturn.java 3991 the applet that calls javascript functions 3992 3993 2013-03-25 Jana Fabrikova <jfabriko@redhat.com> 3994 3995 * tests/reproducers/simple/JavascriptSet/testcases/JavascriptSetTest.java 3996 adding 21 testcases for testing setting javascript variables from java 3997 * tests/reproducers/simple/JavascriptSet/resources/JavascriptSet.html 3998 the html page for displaying browser tests 3999 * tests/reproducers/simple/JavascriptSet/resources/Javascript_Set.js 4000 auxiliary javascript functions 4001 * tests/reproducers/simple/JavascriptSet/resources/javascript-set.jnlp 4002 jnlp file for embedding applet in the html page 4003 * tests/reproducers/simple/JavascriptSet/srcs/JavascriptSet.java 4004 the applet that sets javascript variables 4005 4006 2013-03-25 Jana Fabrikova <jfabriko@redhat.com> 4007 4008 * tests/reproducers/simple/JavascriptGet/testcases/JavascriptGetTest.java 4009 adding 7 new testcases for reading JS values from Java 4010 * tests/reproducers/simple/JavascriptGet/resources/JavascriptGet.html 4011 the html page for displaying browser tests 4012 * tests/reproducers/simple/JavascriptGet/resources/Javascript_Get.js 4013 auxiliary javascript functions 4014 * tests/reproducers/simple/JavascriptGet/resources/javascript-get.jnlp 4015 jnlp file for embedding the applet in the html page 4016 * tests/reproducers/simple/JavascriptGet/srcs/JavascriptGet.java 4017 the applet that reads values from javascript 4018 4019 2013-03-25 Jana Fabrikova <jfabriko@redhat.com> 4020 4021 * tests/reproducers/simple/JavascriptFuncParam/testcases/JavascriptFuncParamTest.java 4022 adding 19 testcases for calling javascript functions from java with 4023 parameters of various types 4024 * tests/reproducers/simple/JavascriptFuncParam/resources/JavascriptFuncParam.html 4025 the html page for displaying browser tests 4026 * tests/reproducers/simple/JavascriptFuncParam/resources/javascript-funcparam.jnlp 4027 jnlp file for embedding the applet in html page 4028 * tests/reproducers/simple/JavascriptFuncParam/srcs/JavascriptFuncParam.java 4029 the applet that calls functions from javascript 4030 4031 2013-03-22 Adam Domurad <adomurad@redhat.com> 4032 4033 * plugin/icedteanp/java/sun/applet/PluginParameterParser.java 4034 (isInt): Revert behaviour to catching NumberFormatException 4035 4036 2013-03-22 Adam Domurad <adomurad@redhat.com> 4037 4038 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 4039 (findClass): Print stacktrace for ClassFormatError 4040 4041 2013-03-22 Jiri Vanek <jvanek@redhat.com> 4042 4043 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageImpl.java: 4044 (isMatching) is now ignring archives if empty. 4045 * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageImplTest.java: 4046 tests adapted and enriched for new archives processing. 4047 4048 2013-03-21 Jiri Vanek <jvanek@redhat.com> 4049 4050 Launchers made aware of custom set JRE 4051 * launcher/itweb-settings.in: 4052 * launcher/javaws.in: 4053 are now scanning ~/.icedtea/deployment.properties and 4054 /etc/.java/.deploy/deployment.properties for deployment.jre.dir property. 4055 If found, then its java and rt.jar are used to launch applications. 4056 4057 2013-03-20 Jana Fabrikova <jfabriko@redhat.com> 4058 4059 * tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java: 4060 adding few lines for not running test in Opera 4061 * tests/reproducers/simple/JSToJSet/testcases/JSToJSetTest.java: 4062 adding few lines for not running test in Opera 4063 * tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java: 4064 adding few lines for not running test in Opera 4065 * tests/reproducers/simple/JSToJTypeConv/testcases/JSToJTypeConvTest.java: 4066 adding few lines for not running test in Opera 4067 4068 2013-03-20 Jiri Vanek <jvanek@redhat.com> 4069 4070 All occurences of hardcoded paths to java repalced by call of functions 4071 * plugin/icedteanp/IcedTeaNPPlugin.cc: (appletviewer_executable) renamed 4072 to (appletviewer_default_executable). (appletviewer_default_rtjar) new 4073 variable to keep default rt.jar path. 4074 (get_plugin_executable) and (string get_plugin_rt_jar) new functions, 4075 returniong the default variables for now. 4076 4077 2013-03-19 Adam Domurad <adomurad@redhat.com> 4078 4079 * Makefile.am 4080 (CPP_UNITTEST_EXECUTABLE): Add -lrt & -lpthread flags, which do not 4081 seem to be brought in on all systems. 4082 4083 2013-03-13 Jiri Vanek <jvanek@redhat.com> 4084 4085 * NEWS: mentioned de translation 4086 * AUTHORS: added Jacob Wisor 4087 4088 2013-03-13 Jiri Vanek <jvanek@redhat.com> 4089 Jacob Wisor <gitne@excite.co.jp> 4090 4091 Fixed strange sentences in default locales bundle. 4092 * netx/net/sourceforge/jnlp/resources/Messages.properties: 4093 4094 2013-03-13 Jiri Vanek <jvanek@redhat.com> 4095 4096 Added tests for German i18n 4097 * tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java: 4098 Enhanced to test also German localization . 4099 * tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java: 4100 Enhanced to handle de messages and be prepared for locales with one language 4101 but different nations. 4102 4103 2013-03-13 Jiri Vanek <jvanek@redhat.com> 4104 Jacob Wisor <gitne@excite.co.jp> 4105 4106 Added initial German localization 4107 * netx/net/sourceforge/jnlp/resources/Messages_de.properties: 4108 New file with German properties 4109 4110 2013-03-05 Adam Domurad <adomurad@redhat.com> 4111 4112 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 4113 (closeStream): Remove. 4114 (verifySignedJNLP): Make use of StreamUtils instead. 4115 * netx/net/sourceforge/jnlp/utils/StreamUtils.java 4116 (closeSilently): New method. 4117 4118 2013-02-28 Jiri Vanek <jvanek@redhat.com> 4119 4120 * netx/net/sourceforge/jnlp/config/SecurityValueValidator.java: modifed 4121 null check - no considered as correct value as being valid value in runtime. 4122 4123 2013-02-27 Jiri Vanek <jvanek@redhat.com> 4124 4125 Added backend and settings for extended applet security 4126 * netx/net/sourceforge/jnlp/config/Defaults.java: deployment.security.level 4127 added to defaults with its validator 4128 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: Added 4129 deployment.security.level (KEY_SECURITY_LEVEL)key and 4130 .appletTrustSettings (APPLET_TRUST_SETTINGS)filename with getters 4131 * netx/net/sourceforge/jnlp/config/SecurityValueValidator.java: 4132 Simple validator for value of deployment.security.level based on parsing 4133 in AppletSecurityLevel.fromString 4134 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: 4135 Incorporated UnsignedAppletsTrustingListPanel panel 4136 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletActionTableModel.java: 4137 Backend for main tables in UnsignedAppletsTrustingListPanel 4138 * netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java: 4139 GUI for manipulate the deployment.security.level values and content of 4140 .appletTrustSettings files 4141 * netx/net/sourceforge/jnlp/resources/Messages.properties: 4142 Added keys and values for new; user visible, strings 4143 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/AppletSecurityLevel.java: 4144 Object representation of deployment.security.level value 4145 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/AppletStartupSecuritySettings.java: 4146 Entrance singleton for current deployment.security.level policy and records. 4147 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/ExecuteUnsignedApplet.java: 4148 Object representation of action upon record in .appletTrustSettings 4149 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletActionEntry.java: 4150 Object representation of one item in .appletTrustSettings 4151 .appletTrustSettings by itw (except settings part) 4152 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletActionStorage.java 4153 Minimal set of functionality requested for accessing the 4154 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/UrlRegEx.java 4155 Simple class which should help to distinguish between plain String 4156 and String keeping UrlRegex 4157 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageExtendedImpl.java: 4158 Extended implementation of UnsignedAppletActionStorageImpl which have 4159 additional "for settings" functionality 4160 * netx/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageImpl.java: 4161 Object representation of.appletTrustSettings file. It Should be multi-thread/app safe and 4162 should be always actual. Based on LockingReaderWriter. 4163 * netx/net/sourceforge/jnlp/util/lockingfile/LockedFile.java: 4164 Utility class with functionality to lock file in muti-app/thread environment 4165 * netx/net/sourceforge/jnlp/util/lockingfile/LockingReaderWriter.java: 4166 Utility class with functionality to lock file during reading/writing 4167 in muti-app/thread environment 4168 * netx/net/sourceforge/jnlp/util/lockingfile/StorageIoException.java: 4169 Wrapper for common, but rare IOException extending RuntimeExceptionaround 4170 for LockingReaderWriter to avoid numerous declarations. 4171 * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/impl/UnsignedAppletActionStorageImplTest.java: 4172 Tests of main methods in UnsignedAppletActionStorageImplTest focused on matching 4173 * tests/netx/unit/net/sourceforge/jnlp/util/lockingfile/LockingReaderWriterTest.java: 4174 Tests of multithread read/write to LockingReaderWriter 4175 4176 2013-02-25 Adam Domurad <adomurad@redhat.com> 4177 4178 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 4179 (createInstance): Extract initialization logic from 'getInstance' into 4180 new 'createInstace' method. 4181 (getInstance): Call newly introduced createInstance method. 4182 4183 2013-02-25 Jiri Vanek <jvanek@redhat.com> 4184 4185 Removed unused legacy-launcher sources 4186 * launcher/java.c: 4187 * launcher/java.h: 4188 * launcher/java_md.c: 4189 * launcher/java_md.h: 4190 * launcher/jli_util.c: 4191 * launcher/jli_util.h: 4192 * launcher/jni.h: 4193 * launcher/jni_md.h: 4194 * launcher/jvm.h: 4195 * launcher/jvm_md.h: 4196 * launcher/manifest_info.h: 4197 * launcher/parse_manifest.c: 4198 * launcher/splashscreen.h: 4199 * launcher/splashscreen_stubs.c: 4200 * launcher/version_comp.c: 4201 * launcher/version_comp.h: 4202 * launcher/wildcard.c: 4203 * launcher/wildcard.h: 4204 Happily removed 4205 4206 2013-02-21 Adam Domurad <adomurad@redhat.com> 4207 4208 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 4209 (getPermissions): avoid potential NPE if code source location is 4210 missing 4211 4212 2013-02-14 Adam Domurad <adomurad@redhat.com> 4213 4214 PR835: javaws leaks connections 4215 Uses HEAD requests if possible for testing URLs. Adds name to download 4216 threads. 4217 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java: 4218 (startThread): Add name to download thread 4219 (getResourceUrlResponseCode): Get or fake an HTTP response code. 4220 (findBestUrl): Use getResourceUrlResponseCode to first try a HEAD 4221 request. Fall-back to GET rquest. 4222 * netx/net/sourceforge/jnlp/utils/StreamUtils.java: 4223 New file, contains utility for consuming input stream. 4224 4225 2013-02-14 Adam Domurad <adomurad@redhat.com> 4226 4227 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: 4228 Support HEAD requests. 4229 4230 2013-02-13 Adam Domurad <adomurad@redhat.com> 4231 4232 Fix PR580: http://www.horaoficial.cl/ loads improperly. Applets that 4233 must share a class-loader now load sequentially. 4234 * NEWS: 4235 Mention the fix. 4236 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 4237 (getUniqueKeyLock): New, atomically grabs or creates a lock for the 4238 unique key. 4239 (getInstance): Ensure classloader initialization is locked by unique 4240 key. 4241 (decrementLoaderUseCount): Ensure classloader deinitialization is 4242 locked by unique key, get rid of no-longer used locks. 4243 4244 2013-02-13 Jiri Vanek <jvanek@redhat.com> 4245 4246 Added test for hanging firefox by LaunchException and Improved AddShutdownHookTest 4247 * tests/reproducers/simple/AddShutdownHook/resources/AddShutdownHook.html: 4248 new file to launch applet with RuntimeException as result. 4249 * tests/reproducers/simple/AddShutdownHook/resources/AddShutdownHook_wrong.html: 4250 new file to launch applet with LaunchException as result. 4251 * tests/reproducers/simple/AddShutdownHook/srcs/AddShutdownHook.java: is 4252 now also applet. 4253 * tests/reproducers/simple/AddShutdownHook/testcases/AddShutdownHookTest.java: 4254 Added test (AddShutdownHookApplet)for applet, removed duplicate code by rules. 4255 * tests/reproducers/simple/AddShutdownHook/testcases/HangFirefoxTests.java: 4256 New test set which is launching exception throwing applet, and after exception 4257 is thrown then it tries jsut stdou-ing applet. Second applet have to be 4258 launched. 4259 4260 2013-02-12 Jana Fabrikova <jfabriko@redhat.com> 4261 4262 * /tests/reproducers/simple/JSToJFuncParam/testcases/JSToJFuncParamTest.java: 4263 adding 19 testcases - 18 based on the interactive Liveconnect JS->Java 4264 function parameter tests, 1 additional testcase for passing parameters 4265 of type JSObject (from JS to Java) 4266 * /tests/reproducers/simple/JSToJFuncParam/srcs/JSToJFuncParam.java: 4267 the applet whose methods are invoked from JS during the tests 4268 * /tests/reproducers/simple/JSToJFuncParam/resources/JSToJava_FuncParam.js: 4269 the JavaScript code for calling the applet methods from JS 4270 * /tests/reproducers/simple/JSToJFuncParam/resources/jstoj-funcparam.jnlp: 4271 JNLP file for displaying applet in the HTML page 4272 * /tests/reproducers/simple/JSToJFuncParam/resources/JSToJFuncParam.html: 4273 the html page with java applet embedded, displayed in browser during 4274 the tests 4275 4276 2013-02-12 Jana Fabrikova <jfabriko@redhat.com> 4277 4278 * /tests/reproducers/simple/JSToJTypeConv/testcases/JSToJTypeConvTest.java: 4279 adding 50 testcases based on the interactive Liveconnect 4280 JS->Java type conversion tests and 4 testcases for setting 4281 java boolean and Boolean variables to nonempty strings 4282 * /tests/reproducers/simple/JSToJTypeConv/srcs/JSToJTypeConv.java: 4283 the applet whose variables are set from JS during the tests 4284 * /tests/reproducers/simple/JSToJTypeConv/resources/JSToJava_TypeConv.js: 4285 the JavaScript code for setting the applet variables from JS 4286 * /tests/reproducers/simple/JSToJTypeConv/resources/jstoj-typeconv.jnlp: 4287 JNLP file for displaying applet in the html page 4288 * /tests/reproducers/simple/JSToJTypeConv/resources/JSToJTypeConv.html: 4289 the html page with java applet embedded, displayed in browser 4290 during the tests 4291 4292 2013-02-07 Adam Domurad <adomurad@redhat.com> 4293 4294 Ensure applet destruction cannot in the middle of initialization. 4295 * netx/net/sourceforge/jnlp/NetxPanel.java 4296 (destroyApplet): wait for applet initialization 4297 missing 4298 4299 2013-02-06 Jana Fabrikova <jfabriko@redhat.com> 4300 4301 * /tests/reproducers/simple/JSToJSet/testcases/JSToJSetTest.java: 4302 adding 1 testcase setting applets variable of type JSObject from JS, 4303 adding KnownToFail anotation and @Bug annotation with id=PR1298 to 4304 (AppletJSToJSet_intArrayElement_Test) and 4305 (AppletJSToJSet_DoubleArrayElement_Test) methods 4306 * /tests/reproducers/simple/JSToJSet/resources/JSToJava_Set.js: 4307 adding the JSObject case to (doSetTests) function 4308 * /tests/reproducers/simple/JSToJSet/srcs/JSToJSet.java: 4309 adding the JSObject variable to the applet and modifying 4310 (printNewValueAndFinish) method in order to output new values 4311 of JSObject variable 4312 4313 2013-02-06 Jana Fabrikova <jfabriko@redhat.com> 4314 4315 * /tests/reproducers/simple/JSToJGet/resources/JSToJGet.html: 4316 adding 1 testcase reading applets variable of type JSObject from JS 4317 * /tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java: 4318 adding 1 testcase reading applets variable of type JSObject from JS, 4319 small changes to evaluation of the applet's stdout methods, removing 4320 KnownToFail anotation from (AppletJSToJGet_DoubleFullArray_Test) method 4321 * /tests/reproducers/simple/JSToJGet/resources/JSToJ_auxiliary.js: 4322 removing parts of comment that are no longer true 4323 * /tests/reproducers/simple/JSToJGet/resources/JSToJava_Get.js: 4324 adding (test_get_JSObject) function also to the JS part of test 4325 * /tests/reproducers/simple/JSToJGet/srcs/JSToJGet.java: 4326 adding the JSObject variable to the applet 4327 4328 2013-02-06 Adam Domurad <adomurad@redhat.com> 4329 4330 Name threads for easier debugging/tooling. Remove 2 erroneous 4331 VoidPluginCallRequest header comments. 4332 * netx/net/sourceforge/jnlp/NetxPanel.java: 4333 Provide name for thread that calls (run). 4334 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: 4335 Provide name for shutdown hook thread. 4336 * plugin/icedteanp/java/sun/applet/PluginMessageConsumer.java: 4337 Remove erroneous VoidPluginCallRequest comment. Provide name for 4338 ConsumerThread thread. 4339 * plugin/icedteanp/java/sun/applet/PluginMessageHandlerWorker.java: 4340 Provide name for worker thread. 4341 * plugin/icedteanp/java/sun/applet/PluginStreamHandler.java: 4342 Remove erroneous VoidPluginCallRequest comment. Provide name for 4343 stream listener thread. 4344 4345 2013-02-03 Jiri Vanek <jvanek@redhat.com> 4346 4347 Another renamed conflict file for case insensitive systems 4348 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1E_x_2s.html 4349 Renamed to ParallelAppletsTest_1_x_2EE.html 4350 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1EE_x_2s.html 4351 new file. 4352 * tests/reproducers/simple/CountingApplet1/testcases/ParallelAppletsTest.java: 4353 (testParallelAppletsTest1Ex2s) adapted to renaming 4354 4355 2013-01-31 Jiri Vanek <jvanek@redhat.com> 4356 4357 Renamed conflict file for case insensitive systems 4358 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_2E.html: 4359 Renamed to ParallelAppletsTest_1_x_2EE.html 4360 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_2EE.html: 4361 new file. 4362 * tests/reproducers/simple/CountingApplet1/testcases/ParallelAppletsTest.java: 4363 (testParallelAppletsTest1x2E) adapted to renaming 4364 4365 2013-01-30 Jiri Vanek <jvanek@redhat.com> 4366 4367 Add unit tests for locales and locales fixed 4368 * netx/net/sourceforge/jnlp/resources/Messages.properties: 4369 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: 4370 Added missing, filled empty and removed dangling items 4371 * tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java: 4372 New unittest for missing, empty, duplicate or dangling locales. 4373 4374 2013-01-30 Adam Domurad <adomurad@redhat.com> 4375 4376 Fix for PR1292: Javaws does not resolve versioned jar names with 4377 periods correctly 4378 * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java 4379 (getUrl): Fix versioning of jar names that have periods, eg 4380 'foo.bar.jar'. Make method static for testing. 4381 * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: 4382 New, test version & pack URL encoding. 4383 * tests/reproducers/simple/VersionedJar__V1/resources/VersionedJarDisabled.jnlp: 4384 New, tries to use versioned jar with versioning not turned on. 4385 * tests/reproducers/simple/VersionedJar__V1/resources/VersionedJarEnabled.jnlp: 4386 New, tries to use versioned jar with versioning turned on. 4387 * tests/reproducers/simple/VersionedJar__V1/srcs/VersionedJar.java: 4388 New, prints simple message. 4389 * tests/reproducers/simple/VersionedJar__V1/testcases/VersionedJarTest.java: 4390 New, tests if VersionedJar has ran only with versioning turned on. 4391 4392 2013-01-30 Jiri Vanek <jvanek@redhat.com> 4393 4394 * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java: 4395 Iteration over launchExceptionChain done by pointer/get instead by iterator 4396 to prevent ConcurrentModificationException. 4397 4398 2013-01-30 Jiri Vanek <jvanek@redhat.com> 4399 4400 Splashscreen error report made more detailed by stored LaunchErrors 4401 * netx/net/sourceforge/jnlp/LaunchException.java: (LaunchExceptionWithStamp) 4402 new inner class for storing timestamp togetehr with error. 4403 (launchExceptionChain) new static list to capture LaunchErrors during 4404 runtime. 4405 * /netx/net/sourceforge/jnlp/resources/Messages.properties: 4406 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: 4407 Added explanation string 4408 * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java: 4409 Is now displaying launchExceptionChain in its error report and is copying 4410 it to clipboard. 4411 * tests/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java: 4412 (getTextTest) adapted calls of getText for new Date. 4413 4414 2013-01-28 Adam Domurad <adomurad@redhat.com> 4415 4416 Fix PR1157: Applets can hang browser after fatal exception 4417 * NEWS: Add entry for PR1157 4418 * netx/net/sourceforge/jnlp/NetxPanel.java 4419 (runLoader): Move dispatchAppletEvent into a 'finally' block. 4420 4421 2013-01-16 Deepak Bhole <dbhole@redhat.com> 4422 4423 PR1260: IcedTea-Web should not rely on GTK 4424 * Makefile.am: Remove GTK includes and links 4425 * acinclude.m4: Remove check for GTK libs 4426 * plugin/icedteanp/IcedTeaJavaRequestProcessor.h: Removed gtk.h include 4427 and added unistd include (for usleep) which gtk.h brought in before 4428 * plugin/icedteanp/IcedTeaNPPlugin.cc: Remove GTK dialog shown when java 4429 is not found 4430 * plugin/icedteanp/IcedTeaNPPlugin.h: Removed gtk.h include 4431 4432 2013-01-16 Jiri Vanek <jvanek@redhat.com> 4433 4434 Fixed set of paths to asm 4435 * configure.ac: (IT_FIND_OPTIONAL_JAR([asm], ASM,) path enhanced by 4436 objectweb-asm4/asm-all.jar. 4437 4438 2013-01-15 Adam Domurad <adomurad@redhat.com> 4439 4440 Unit test for PluginAppletSecurityContext#toObjectIDString. Make 4441 PluginAppletSecurityContext more unit-testable. 4442 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java: 4443 Don't initialize security manager in constructor. Fix a few Java->JS 4444 corner cases. 4445 * plugin/icedteanp/java/sun/applet/PluginMain.java: Create testing-only 4446 constructor for bypassing initialization of SecurityManager. 4447 * tests/netx/unit/sun/applet/PluginAppletSecurityContextTest.java: 4448 Unit test for all the corner cases of converting a Java object to a 4449 string that can be precisely identified. 4450 4451 2013-01-15 Adam Domurad <adomurad@redhat.com> 4452 4453 Fix PR1198: JSObject passed incorrectly to Javascript 4454 * plugin/icedteanp/IcedTeaJavaRequestProcessor.cc: Pass extra data for 4455 'jsobject' object result messages. 4456 * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: Same. 4457 * plugin/icedteanp/IcedTeaPluginUtils.cc: Add special casing of 4458 javascript references passed from java. 4459 * plugin/icedteanp/java/netscape/javascript/JSObjectUnboxPermission.java: 4460 New permission for unboxing a JSObject's internal reference. 4461 * plugin/icedteanp/java/netscape/javascript/JSObject.java 4462 (getInternalReference): New, package-private, retrieves internal 4463 reference (Must have proper permission). 4464 * plugin/icedteanp/java/netscape/javascript/JSUtil.java 4465 (getJSObjectInternalReference) New, utility for accessing 4466 JSObject#getInternalReference from outside the package. 4467 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java: 4468 (toObjectIDString): New, creates a string that precisely identifies a 4469 Java object. 4470 (handleMessage): Replace a lot of duplicated functionality with 4471 'toObjectIDString'. 4472 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: Replace 4473 duplicated functionality with 'toObjectIDString'. 4474 * tests/reproducers/simple/JSObjectFromEval/srcs/JSObjectFromEval.java: 4475 Don't print out type passed (differs from browser to browser). 4476 * tests/reproducers/simple/JSObjectFromEval/testcases/JSObjectFromEvalTest.java: 4477 Don't check type passed (differs from browser to browser). Remove 4478 known-to-fail. Reformat. 4479 4480 2013-01-10 Jiri Vanek <jvanek@redhat.com> 4481 4482 Download indicator made compact for more then one jar 4483 * NEWS: mentioned this feature 4484 * netx/net/sourceforge/jnlp/cache/DefaultDownloadIndicator.java: 4485 (DownloadPanel) inner class were rewritten to support collapsed/detailed 4486 for more then one jar in queue. 4487 (frame) window is recreated each time state is changed (preventing errors 4488 on some X configurations) and is positioned to lower left corner of 4489 active screen. 4490 * netx/net/sourceforge/jnlp/resources/hideDownloadDetails.png 4491 * adding netx/net/sourceforge/jnlp/resources/showDownloadDetails.pn h 4492 Icons for "to collapsed state" and "to detailed state" 4493 4494 2013-01-10 Jiri Vanek <jvanek@redhat.com> 4495 4496 All IcedTea-Web dialogues are centered to middle of active screen 4497 * NEWS: mentioned this feature 4498 * netx/net/sourceforge/jnlp/JNLPSplashScreen.java: 4499 * netx/net/sourceforge/jnlp/controlpanel/AdvancedProxySettingsDialog.java: 4500 * netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java: 4501 * netx/net/sourceforge/jnlp/security/SecurityDialog.java: 4502 * netx/net/sourceforge/jnlp/security/viewer/CertificateViewer.java: 4503 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java: 4504 Dialogues in above classes made centering to active screen 4505 * netx/net/sourceforge/jnlp/util/ScreenFinder.java: New file, utility 4506 class which can find active monitor and center dialogue into it. 4507 4508 2013-01-09 Jiri Vanek <jvanek@redhat.com> 4509 4510 First part of fix of recreating desktop icon 4511 * NEWS: mentioned PR725 4512 * netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java: 4513 (addMenuAndDesktopEntries)added check for already existing icon 4514 * netx/net/sourceforge/jnlp/util/XDesktopEntry.java: Added methods for 4515 digging the already existing icon from system 4516 (getShortcutTmpFile) tmpfile fo generating the desktop icon 4517 (getDesktopIconName) for getting filename from application title 4518 (findFreedesktopOrgDesktopPathCatch) public method to find final desktop file 4519 (findFreedesktopOrgDesktopPath) to get into ~/.config/user-dirs.dirs 4520 (getFreedesktopOrgDesktopPathFrom) to find XDG_DESKTOP_DIR value 4521 (filterQuotes) to handle simple quotations 4522 (evaluateLinuxVariables) to handle possible variables in XDG_DESKTOP_DIR 4523 value 4524 * tests/netx/unit/net/sourceforge/jnlp/util/XDesktopEntryTest.java: 4525 New tests focused on parsing of desktop location from stream (variables 4526 and quotations) 4527 4528 2013-01-09 Jiri Vanek <jvanek@redhat.com> 4529 4530 Logging methods made synchronized 4531 * tests/test-extensions/net/sourceforge/jnlp/LoggingBottleneck.java: 4532 (processLogs) (getDefaultLoggingBottleneck) (writeXmlLog) (addToXmlLog) 4533 (modifyMethodWithForBrowser) (setLoggedBrowser) (logIntoPlaintextLog) 4534 made synchronised 4535 4536 2013-01-07 Deepak Bhole <dbhole@redhat.com> 4537 4538 * netx/net/sourceforge/jnlp/resources/Messages.properties: Converted to 4539 Unix format. 4540 4541 2013-01-04 Adam Domurad <adomurad@redhat.com> 4542 4543 * plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java: 4544 Code-formatting fixes and cosmetic changes. 4545 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: 4546 Same. 4547 * tests/reproducers/simple/JSObjectFromEval/srcs/JSObjectFromEval.java: 4548 Same. 4549 * tests/reproducers/simple/JSObjectFromEval/testcases/JSObjectFromEvalTest.java: 4550 Same. 4551 4552 2013-01-03 Adam Domurad <adomurad@redhat.com> 4553 4554 Fix breakage in unit test CodeBaseClassLoaderTest.testParentClassLoaderIsAskedForClassesApplication 4555 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 4556 (CodeBaseClassLoader#findClassNonRecursive): New, call into 4557 URLClassLoader#findClass 4558 (CodeBaseClassLoader#findClass): Delegate JNLPClassLoader#findClass 4559 (JNLPClassLoader#findClass): Call CodeBaseClassLoader#findClassNonRecursive 4560 * tests/reproducers/custom/AppletExtendsFromOutsideJar/srcs/AppletReferenceOutOfJar.java 4561 (init): Add applet finish message. 4562 * tests/reproducers/custom/AppletExtendsFromOutsideJar/testcases/AppletExtendsFromOutsideJarTests.java 4563 (testClassInAppletFolder): Close quickly on applet finish message. 4564 4565 2013-01-02 Jiri Vanek <jvanek@redhat.com> 4566 4567 Fixed unittest for InformationElement. 4568 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InformationElementTest.java: 4569 (createFromJNLP) now asserts NotNull instead of IsNull as result of 4570 "Minor fix for possible NPE (non fatal) during splashscreen creation" 4571 4572 2012-12-21 Adam Domurad <adomurad@redhat.com> 4573 4574 * plugin/icedteanp/IcedTeaNPPlugin.cc: Remove need for 'goto' in 4575 (NP_Initialize). Check TMPDIR environment variable for possible data 4576 directory. Expose some previously static variables/functions for unit 4577 testing purposes. Reduce need for explicit allocations for strings 4578 'data_directory' and 'appletviewer_executable'. 4579 * tests/cpp-unit-tests/IcedTeaNPPluginTest.cc: 4580 Add some basic tests for functions in IcedTeaNPPlugin.cc. 4581 4582 2012-12-21 Jiri Vanek <jvanek@redhat.com> 4583 4584 * netx/net/sourceforge/jnlp/runtime/ApplicationInstance.java 4585 (shouldCreateShortcut) added handling of xtrustall during asking for 4586 desktop icon creation 4587 4588 2012-12-21 Jiri Vanek <jvanek@redhat.com> 4589 4590 Minor fix for possible NPE (non fatal) during splashscreen creation 4591 * netx/net/sourceforge/jnlp/resources/Messages.properties: 4592 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: 4593 Added messages for user (SPLASHdefaultHomepage) 4594 (SPLASHerrorInInformation)(SPLASHmissingInformation). 4595 * netx/net/sourceforge/jnlp/splashscreen/parts/InformationElement.java 4596 (createFromJNLP) catch of NPE replaced by conditions with proper messages. 4597 4598 2012-12-21 Jiri Vanek <jvanek@redhat.com> 4599 4600 Forgotten condition for AviationWeather first run: 4601 * tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java: 4602 (AviationWeather) added condition for first run when creation of 4603 FileManager is written to stderr. 4604 4605 2012-12-20 Saad Mohammad <smohammad@redhat.com> 4606 4607 * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java: 4608 Added test and changes to work better with PR909 fix. 4609 4610 2012-12-20 Saad Mohammad <smohammad@redhat.com> 4611 4612 Fix PR909 - URL is invalid after normalization. 4613 * netx/net/sourceforge/jnlp/cache/ResourceTracker.java (normalizeUrl): 4614 Converts the URL to an URI object which handles all percent encodings. 4615 4616 2012-12-20 Adam Domurad <adomurad@redhat.com> 4617 4618 * plugin/icedteanp/IcedTeaScriptablePluginObject.cc 4619 (IcedTeaScriptableJavaObject::deAllocate): Fix memory leak 4620 (IcedTeaScriptableJavaPackageObject::deAllocate): Fix memory leak 4621 4622 2012-12-20 Adam Domurad <adomurad@redhat.com> 4623 4624 * tests/cpp-unit-tests/browser_mock.cc 4625 (mock_retainobject): New, mocks behaviour of NPAPI retainobject 4626 (mock_releaseobject): New, mocks behaviour of NPAPI releaseobject 4627 * tests/cpp-unit-tests/main.cc: Add warning of memory leak based on 4628 operator-new. 4629 * tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc: New, tests 4630 for memory leak in (IcedTeaScriptableJavaObject::deAllocate) and 4631 (IcedTeaScriptableJavaPackageObject::deAllocate) 4632 * tests/cpp-unit-tests/checked_allocations.h: Defines set that does not 4633 use operator-new, to prevent recursion in overloaded operator-new 4634 * tests/cpp-unit-tests/checked_allocations.cc: Operator new overload 4635 that has allocation-set for querying live allocations. 4636 4637 2012-12-20 Jiri Vanek <jvanek@redhat.com> 4638 4639 Added and applied Remote annotation, added Remote tests: 4640 * tests/report-styles/jreport.xsl: and 4641 * tests/junit-runner/JunitLikeXmlOutputListener: and 4642 * tests/junit-runner/LessVerboseTextListener.java: added handling of 4643 Remote annotation 4644 * tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: 4645 Tests downloading from classpath.org marked. 4646 * tests/reproducers/custom/remote/testcases/RemoteApplicationSettings.java: 4647 new file, handling url and evaluations of remote reproducers 4648 * tests/reproducers/custom/remote/testcases/RemoteApplicationTests.java: 4649 launcher for remote tests. 4650 * tests/test-extensions/net/sourceforge/jnlp/annotations/Remote.java: 4651 Implementation of Remote annotation 4652 4653 2012-12-18 Jiri Vanek <jvanek@redhat.com> 4654 4655 Cleaned unit-tests: 4656 * tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: 4657 (DummyJNLPFile) class extracted from its anonymous members to private 4658 named member. Get rid of repeated methods (testResourceLoad*Caching) and 4659 replace it by (testResourceCaching) with parameter of full name and boolean 4660 keeping its expected existence and branching null assert on it. Added tests 4661 (testClassResourceLoadSuccessCachingApplication) and 4662 (testClassResourceLoadSuccessCachingApplet). (testResourceCaching) made 4663 less vulnerable by found classes and more precise. All resources paths 4664 fixed and clarified (to be found or not) 4665 4666 2012-12-18 Jana Fabrikova <jfabriko@redhat.com> 4667 4668 * /tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: 4669 Added several new versions of method (executeBrowser) with lists 4670 of ContentReaderListeners as arguments. 4671 * /tests/test-extensions/net/sourceforge/jnlp/ProcessWrapper.java: 4672 Added new versions of the (constructor of ProcessWrapper) and methods 4673 (addStdOutListeners) and (addStdErrListeners) for adding 4674 ContentReaderListeners using List<ContentReaderListener> 4675 instead of one ContentReaderListener as argument. 4676 Added a new version of (constructor of ProcessWrapper) with 4677 less arguments that is used instead of calling the constructor 4678 with several arguments passed as null, thus causing ambiguity. 4679 * /tests/reproducers/simple/SingeInstanceServiceTest/testcases/SingleInstanceTest.java: 4680 Modified the call of (executeBrowser) method with null arguments 4681 into a call of new method without the null arguments 4682 -getting rid of an ambiguous call. 4683 4684 2012-12-11 Jiri Vanek <jvanek@redhat.com> 4685 4686 Added jacoco code coverage support 4687 * Makefile.am: (JACOCO_*) bunch of new variables encapsulating jacoco 4688 files. (PLUGIN_COVERAGE_BOOTCLASSPATH) classpath to be used in plugin 4689 instead of normal one in coverage mode. (COVERABLE_PLUGIN_DIR) for 4690 compiling plugin with agent on. (jacoco-operator-source-files.txt) for 4691 storing files of reporting tool. All XSLTPROC command were done as non-fatal 4692 (stamps/compile-jacoco-operator.stamp) for compiling report operator. 4693 (stamps/run-unit-test-code-coverage-jacoco.stam) for cover unittests 4694 Set of (COVERABLE_PLUGIN_*) targets to compile plugin with agent on. 4695 (stamps/build-fake-plugin.stamp) top level target for fake plugin. 4696 (stamps/run-reproducers-test-code-coverage-jacoco.stamp) target for 4697 cover reproducers. (run-test-code-coverage-jacoco) for merged coverage 4698 (clean-unit-test-code-coverage-jacoco) and 4699 (clean-reproducers-test-code-coverage-jacoco) and 4700 (clean-test-code-coverage-jacoco) and 4701 (clean-test-code-coverage-tools-jacoco) cleaning targets. 4702 (run-reproducers-test-code-coverage-jacoco) and 4703 (run-unit-test-code-coverage-jacoco) as top level aliases. 4704 * configure.ac: added check for jacoco library and asm library 4705 * plugin/icedteanp/IcedTeaNPPlugin.cc removed duplicate code 4706 (plugin_start_appletviewe) removed duplicated code and added handling of 4707 java agent if defined. 4708 * tests/jacoco-operator/org/jacoco/operator/Main.java : New class, 4709 comamndline tool for merging results and for generating reports. 4710 * tests/jacoco-operator/org/jacoco/operator/MergeTask.java: New class. 4711 Utility class responsible for merging exec results to one exec file. 4712 * tests/jacoco-operator/org/jacoco/operator/ReportGenerator: New class. 4713 Utility method for gathering sources and builds and outputing xml and 4714 html reports. 4715 4716 2012-12-11 Adam Domurad <adomurad@redhat.com> 4717 4718 * plugin/icedteanp/java/sun/applet/PluginParameterParser.java: 4719 Remove left-in System.out 4720 4721 2012-12-10 Saad Mohammad <smohammad@redhat.com> 4722 4723 Add unit tests for PR1189. 4724 * tests/netx/unit/net/sourceforge/jnlp/PluginParametersTest.java: 4725 (testConstructorWithNoCodeAndObjectParam): Initialize PluginParameters 4726 without code/object parameters. 4727 (testConstructorWithOnlyJnlpHrefParam): Initialize PluginParameters with 4728 jnlp_href but no code/object parameters. 4729 4730 2012-12-10 Saad Mohammad <smohammad@redhat.com> 4731 4732 Add reproducer for PR1189. 4733 * tests/reproducers/simple/AppletTagWithMissingCodeAttribute/resources/AppletTagWithMissingCodeAttribute.html: 4734 Simple webpage which contains an applet tag with no code attribute. 4735 * tests/reproducers/simple/AppletTagWithMissingCodeAttribute/resources/AppletTagWithMissingCodeAttribute.jnlp: 4736 Jnlp file that is used by the webpages using jnlp_href. 4737 * tests/reproducers/simple/AppletTagWithMissingCodeAttribute/testcases/AppletTagWithMissingCodeAttribute.java: 4738 Testcase that tests applets without code attribute in html pages. 4739 * tests/reproducers/simple/SimpleApplet/srcs/SimpleApplet.java: 4740 Simple applet class that outputs a string. 4741 4742 2012-12-10 Saad Mohammad <smohammad@redhat.com> 4743 4744 Fix PR1189: Icedtea-plugin requires code attribute when using jnlp_href. 4745 * netx/net/sourceforge/jnlp/PluginParameters.java (PluginParameters): 4746 Updated if condition to prevent PluginParameterException from being thrown 4747 if applet tag contains jnlp_href but is missing code/object parameters. 4748 4749 2012-12-06 Adam Domurad <adomurad@redhat.com> 4750 4751 * Makefile.am: Fix targets stamps/netx-unit-tests-compile.stamp and 4752 stamps/run-netx-unit-tests.stamp to not rely on installed directory. 4753 4754 2012-12-05 Saad Mohammad <smohammad@redhat.com> 4755 4756 Added new option in itw-settings which allows users to set JVM 4757 arguments when plugin is initialized. 4758 * netx/net/sourceforge/jnlp/config/Defaults.java (getDefaults): 4759 Added defaults for DeploymentConfiguration.KEY_PLUGIN_JVM_ARGUMENTS. 4760 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: 4761 Added new property (KEY_PLUGIN_JVM_ARGUMENTS) which stores the value of 4762 JVM plugin arguments. 4763 * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: 4764 (createMainSettingsPanel): Added JVM settings to the list of tabs. 4765 (createJVMSettingsPanel): Returns a new JVMPanel object. 4766 * netx/net/sourceforge/jnlp/controlpanel/JVMPanel.java: 4767 JVM settings panel. 4768 * netx/net/sourceforge/jnlp/resources/Messages.properties: 4769 Added a new items (CPJVMPluginArguments, CPHeadJVMSettings, 4770 CPTabJVMSettings). 4771 * plugin/icedteanp/IcedTeaNPPlugin.cc: 4772 (plugin_start_appletviewer): Adds JVM arguments to the commands line list. 4773 (get_jvm_args): Returns JVM arguments set in itw-settings. 4774 * plugin/icedteanp/IcedTeaPluginUtils.cc: 4775 (IcedTeaPluginUtilities::vectorStringToVectorGchar): New helper method 4776 which returns a vector of gchar* from the vector of strings passed. 4777 * plugin/icedteanp/IcedTeaPluginUtils.h: 4778 Declaration of IcedTeaPluginUtilities::vectorStringToVectorGchar. 4779 4780 2012-12-05 Pavel Tisnovsky <ptisnovs@redhat.com> 4781 4782 * Makefile.am: Avoid warning message printed in clean target if 4783 softkiller is not compiled. 4784 4785 2012-12-04 Adam Domurad <adomurad@redhat.com> 4786 4787 * netx/net/sourceforge/jnlp/resources/Messages.properties: 4788 "An serious exception have occured" -> "A serious exception occurred" 4789 4790 2012-12-04 Adam Domurad <adomurad@redhat.com> 4791 4792 PluginAppletViewer refactoring. 4793 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java 4794 (handleInitializationMessage): New, extracts initialization logic 4795 from PluginAppletViewer.handleMessage. 4796 * plugin/icedteanp/java/sun/applet/PluginAppletPanelFactory.java: Moved 4797 into own file. 4798 4799 2012-12-04 Adam Domurad <adomurad@redhat.com> 4800 4801 Remove the applet/embed/object tag parser from ITW. Send the applet 4802 parameters directly from the C++. 4803 * Makefile.am: Allow unit-testing for classes in plugin.jar. 4804 * netx/net/sourceforge/jnlp/NetxPanel.java: Use PluginParameters for 4805 attribute lookup 4806 * netx/net/sourceforge/jnlp/PluginBridge.java: Use PluginParameters 4807 for attribute lookup 4808 * netx/net/sourceforge/jnlp/resources/Messages.properties: Add message 4809 for missing code/object attributes. 4810 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: Same. 4811 * plugin/icedteanp/IcedTeaNPPlugin.cc: Send escaped parameter 4812 name/values instead of applet tag. Remove some dead code. 4813 * plugin/icedteanp/IcedTeaNPPlugin.h: Rename applet_tag -> 4814 parameters_string. 4815 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: Extract 4816 parsing code into its own class. 4817 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: Use CHECK_EQUALS 4818 instead of CHECK. 4819 * tests/netx/unit/net/sourceforge/jnlp/PluginBridgeTest.java: Update 4820 unit tests due to constructor changes. 4821 * netx/net/sourceforge/jnlp/PluginParameterException.java: New, thrown 4822 when code/object attributes are missing. 4823 * netx/net/sourceforge/jnlp/PluginParameters.java: New, Hashtable 4824 wrapper that handles plugin attribute/parameter lookups. 4825 * plugin/icedteanp/java/sun/applet/PluginParameterParser.java: New, 4826 creates PluginParameters from escaped name/values. 4827 * tests/cpp-unit-tests/PluginParametersTest.cc: New, C++ Unit tests for 4828 plugin parameter related functions 4829 * tests/netx/unit/net/sourceforge/jnlp/PluginParametersTest.java: New, 4830 unit tests for PluginParameters class. 4831 * tests/netx/unit/sun/applet/PluginParameterParserTest.java: New, unit 4832 tests for PluginParameterParser class. 4833 4834 2012-11-03 Jiri Vanek <jvanek@redhat.com> 4835 4836 Fixed logging bottleneck 4837 * tests/test-extensions/net/sourceforge/jnlp/LoggingBottleneck.java: 4838 added and used function (clearChars) which filter characters going to xml 4839 from invalid ones. 4840 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess: getting test 4841 method id by (getTestMethod) now relay on physical way to the class as 4842 the only real thing differing test class and framework class. 4843 4844 2012-12-03 Pavel Tisnovsky <ptisnovs@redhat.com> 4845 4846 * Makefile.am: Added new target for compiling softkiller. 4847 * tests/softkiller/softkiller.c: 4848 Added browser softkiller. 4849 * tests/softkiller/Makefile: 4850 Added makefile used to build and clean browser softkiller. 4851 * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Firefox.java: 4852 Uncommented code used to close windows. 4853 4854 2012-11-30 Adam Domurad <adomurad@redhat.com> 4855 4856 Breaks up IcedTeaPluginUtilities::javaResultToNPVariant into multiple, 4857 more manageable parts. 4858 * plugin/icedteanp/IcedTeaPluginUtils.cc: Make three helper functions 4859 for the different cases. Two new helper functions for converting from 4860 std::string to NPString and NPVariant. 4861 * plugin/icedteanp/IcedTeaPluginUtils.h: Two new helper functions. 4862 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: Tests for the new 4863 NPString and NPVariant from std::string functions. 4864 4865 2012-11-30 Adam Domurad <adomurad@redhat.com> 4866 4867 Added a simple mechanism for mocking functions in the browser function 4868 table. Can be expanded as needed. 4869 * tests/cpp-unit-tests/main.cc: Call setup function, warn on browser 4870 function based memory leak. 4871 * tests/cpp-unit-tests/browser_mock.cc: New, implements simple 4872 error-checking mocks of browser callbacks. 4873 * tests/cpp-unit-tests/browser_mock.h: New, interface to mocking 4874 functions. 4875 4876 2012-11-27 Jiri Vanek <jvanek@redhat.com> 4877 4878 Better error reporting from applets 4879 * netx/net/sourceforge/jnlp/NetxPanel.java: (init) ErrorSplash is shown 4880 if fatal exception is cough 4881 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: (replaceSpalsh) 4882 is rather removing all then just its previous version 4883 * tests/reproducers/simple/AppletTest/srcs/AppletErrorTest.java: 4884 * tests/reproducers/simple/AppletTest/resources/errorAppletAutoTests.html 4885 Testcase for manual testing of various exceptions from applet 4886 4887 2012-11-27 Jiri Vanek <jvanek@redhat.com> 4888 4889 * AUTHORS: added Jan Kmetko as current SplashScreen artwork author 4890 4891 2012-11-27 Jiri Vanek <jvanek@redhat.com> 4892 4893 Fixed epiphany switch 4894 * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Epiphany.java: 4895 -new-tab fixed to --new-tab 4896 4897 2012-11-23 Jiri Vanek <jvanek@redhat.com> 4898 4899 Firefox session-backup and stubs for softkiller, multiple listeners, 4900 processes handling moved to separate class. 4901 * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: 4902 Removed unwanted assert on termination 4903 * tests/test-extensions/net/sourceforge/jnlp/ContentReader.java: 4904 Added support for multiple listeners. 4905 * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java: 4906 (destroyProcess()), non static wrapper around former (destroyProcess 4907 (process)), introducing marks that process is being killed, added setter 4908 for reactigProcess. 4909 * tests/test-extensions/net/sourceforge/jnlp/ProcessWrapper.java: 4910 Wrapper around former ServerAccess.executeProcess set of methods. 4911 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: all 4912 executeProcess/Javaws/Browser are now just api compatibility methods 4913 around ProcessWrapper. 4914 (executeProcess) main method moved to ProcessWrapper.execute. 4915 * tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java: 4916 made public and synchronized with ProcessAssasin's (destroyProcess) 4917 * tests/test-extensions/net/sourceforge/jnlp/browsertesting/Browser.java 4918 is now implementing ReactingProcess 4919 * tests/test-extensions/net/sourceforge/jnlp/browsertesting/ReactingProcess.java: 4920 new interface for communication with main events of ThreadedProcess lifecycle. 4921 * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/Firefox.java: 4922 is containing singleton of FirefoxProfilesOperator (FPO) and is responding to 4923 (beforeProcess) by FPO's (backupingProfiles), to (beforeKill) by calling 4924 ProcessAssasin's (closeWindows), and to (afterKill) by FPO's (restoreProfiles) 4925 * tests/test-extensions/net/sourceforge/jnlp/browsertesting/browsers/firefox/FirefoxProfilesOperator.java: 4926 New class to backup and restore firefox profiles. 4927 4928 2012-11-21 Adam Domurad <adomurad@redhat.com> 4929 4930 * Makefile.am: Fix new clean targets not cleaning properly 4931 4932 2012-11-21 Adam Domurad <adomurad@redhat.com> 4933 4934 Support for C++ unit testing with UnitTest++ for IcedTeaWeb. 4935 * tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc: New, contains tests 4936 for utility functions. 4937 * tests/cpp-unit-tests/main.cc: New, contains unit test runner. 4938 * plugin/icedteanp/IcedTeaPluginUtils.h: Remove incorrect circular 4939 include dependency 4940 * plugin/icedteanp/IcedTeaRunnable.h: Add includes necessary for 4941 self-sustaining header. 4942 * Makefile.am: Add targets for unit test compilation and running, 4943 eg 'make run-cpp-unit-tests'. 4944 4945 2012-11-21 Adam Domurad <adomurad@redhat.com> 4946 4947 Add the source code to UnitTest++ into the project. 4948 * tests/UnitTest++/COPYING: Part of UnitTest++ 4949 * tests/UnitTest++/Makefile: Part of UnitTest++ 4950 * tests/UnitTest++/README: Part of UnitTest++ 4951 * tests/UnitTest++/src/AssertException.cpp: Part of UnitTest++ 4952 * tests/UnitTest++/src/AssertException.h: Part of UnitTest++ 4953 * tests/UnitTest++/src/CheckMacros.h: Part of UnitTest++ 4954 * tests/UnitTest++/src/Checks.cpp: Part of UnitTest++ 4955 * tests/UnitTest++/src/Checks.h: Part of UnitTest++ 4956 * tests/UnitTest++/src/Config.h: Part of UnitTest++ 4957 * tests/UnitTest++/src/CurrentTest.cpp: Part of UnitTest++ 4958 * tests/UnitTest++/src/CurrentTest.h: Part of UnitTest++ 4959 * tests/UnitTest++/src/DeferredTestReporter.cpp: Part of UnitTest++ 4960 * tests/UnitTest++/src/DeferredTestReporter.h: Part of UnitTest++ 4961 * tests/UnitTest++/src/DeferredTestResult.cpp: Part of UnitTest++ 4962 * tests/UnitTest++/src/DeferredTestResult.h: Part of UnitTest++ 4963 * tests/UnitTest++/src/ExecuteTest.h: Part of UnitTest++ 4964 * tests/UnitTest++/src/MemoryOutStream.cpp: Part of UnitTest++ 4965 * tests/UnitTest++/src/MemoryOutStream.h: Part of UnitTest++ 4966 * tests/UnitTest++/src/Posix/SignalTranslator.cpp: Part of UnitTest++ 4967 * tests/UnitTest++/src/Posix/SignalTranslator.h: Part of UnitTest++ 4968 * tests/UnitTest++/src/Posix/TimeHelpers.cpp: Part of UnitTest++ 4969 * tests/UnitTest++/src/Posix/TimeHelpers.h: Part of UnitTest++ 4970 * tests/UnitTest++/src/ReportAssert.cpp: Part of UnitTest++ 4971 * tests/UnitTest++/src/ReportAssert.h: Part of UnitTest++ 4972 * tests/UnitTest++/src/Test.cpp: Part of UnitTest++ 4973 * tests/UnitTest++/src/Test.h: Part of UnitTest++ 4974 * tests/UnitTest++/src/TestDetails.cpp: Part of UnitTest++ 4975 * tests/UnitTest++/src/TestDetails.h: Part of UnitTest++ 4976 * tests/UnitTest++/src/TestList.cpp: Part of UnitTest++ 4977 * tests/UnitTest++/src/TestList.h: Part of UnitTest++ 4978 * tests/UnitTest++/src/TestMacros.h: Part of UnitTest++ 4979 * tests/UnitTest++/src/TestReporter.cpp: Part of UnitTest++ 4980 * tests/UnitTest++/src/TestReporter.h: Part of UnitTest++ 4981 * tests/UnitTest++/src/TestReporterStdout.cpp: Part of UnitTest++ 4982 * tests/UnitTest++/src/TestReporterStdout.h: Part of UnitTest++ 4983 * tests/UnitTest++/src/TestResults.cpp: Part of UnitTest++ 4984 * tests/UnitTest++/src/TestResults.h: Part of UnitTest++ 4985 * tests/UnitTest++/src/TestRunner.cpp: Part of UnitTest++ 4986 * tests/UnitTest++/src/TestRunner.h: Part of UnitTest++ 4987 * tests/UnitTest++/src/TestSuite.h: Part of UnitTest++ 4988 * tests/UnitTest++/src/TimeConstraint.cpp: Part of UnitTest++ 4989 * tests/UnitTest++/src/TimeConstraint.h: Part of UnitTest++ 4990 * tests/UnitTest++/src/TimeHelpers.h: Part of UnitTest++ 4991 * tests/UnitTest++/src/UnitTest++.h: Part of UnitTest++ 4992 * tests/UnitTest++/src/XmlTestReporter.cpp: Part of UnitTest++ 4993 * tests/UnitTest++/src/XmlTestReporter.h: Part of UnitTest++ 4994 4995 2012-11-21 Adam Domurad <adomurad@redhat.com> 4996 4997 * plugin/icedteanp/IcedTeaNPPlugin.cc 4998 (consume_plugin_message): Free two buffers returned from NPN_GetValueForURL function. 4999 5000 2012-11-20 Jiri Vanek <jvanek@redhat.com> 5001 5002 * Makefile.am: (stamps/run-netx-dist-tests.stamp) and 5003 (stamps/run-netx-unit-tests.stamp) Swapped logs and report xslt operations 5004 5005 2012-11-20 Jana Fabrikova <jfabriko@redhat.com> 5006 5007 * tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java: 5008 added @KnownToFail annotations to the tests, which are showing 5009 unimplemented/broken features of js-plugin communication. 5010 5011 2012-11-13 Adam Domurad <adomurad@redhat.com> 5012 5013 Reproducer for PR1198, JSObject#eval creates invalid JS object. 5014 * tests/reproducers/simple/JSObjectFromEval/resources/JSObjectFromEval.html: 5015 Loads applet + JS for test 5016 * tests/reproducers/simple/JSObjectFromEval/resources/JSObjectFromEval.js: 5017 Calls java code to test JSObject#eval 5018 * tests/reproducers/simple/JSObjectFromEval/srcs/JSObjectFromEval.java: 5019 Provides java<->JS wrappers for JSObject methods 5020 * tests/reproducers/simple/JSObjectFromEval/testcases/JSObjectFromEvalTest.java: 5021 Tests if JSObject#eval creates valid JSObject. 5022 5023 2012-11-13 Saad Mohammad <smohammad@redhat.com> 5024 5025 Fix PR1166: Embedded JNLP File is not supported in applet tag. 5026 * configure.ac: Checks for sun.misc.BASE64Decoder. 5027 * NEWS: Added entry for PR1166. 5028 * netx/net/sourceforge/jnlp/JNLPFile.java (JNLPFile): 5029 New constructor which accepts inputstream of jnlp file and a 5030 specified codebase. 5031 * netx/net/sourceforge/jnlp/Parser.java (Parser): If parsing of 5032 codebase fails, it will overwrite the codebase with the one passed 5033 in through parameters. 5034 * netx/net/sourceforge/jnlp/PluginBridge.java: 5035 (PluginBridge) Supports embedded jnlp file. 5036 (decodeBase64String) Decodes Base64 strings to byte array. 5037 5038 2012-11-13 Saad Mohammad <smohammad@redhat.com> 5039 5040 Added unit tests for PR1166. 5041 * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java: 5042 Tests the JNLPFile constructor that accepts an InputStream and an alternative codebase. 5043 * tests/netx/unit/net/sourceforge/jnlp/ParserTest.java: 5044 Tests if the constructor handles the alternative codebase parameter correctly. 5045 * tests/netx/unit/net/sourceforge/jnlp/PluginBridgeTest.java: 5046 Tests if BASE64 strings are decoded correctly and if PluginBridge is constructed with an 5047 embedded jnlp. 5048 5049 2012-11-13 Saad Mohammad <smohammad@redhat.com> 5050 5051 Added reproducer for PR1166. 5052 * tests/reproducers/simple/EmbeddedJnlpInApplet/resources/EmbeddedJnlp.jnlp: 5053 Launching jnlp file that is used by jnlp_href in applet tag 5054 * tests/reproducers/simple/EmbeddedJnlpInApplet/resources/EmbeddedJnlpInAppletNoCodebase.html: 5055 Applet with an embedded jnlp file with no codebase specified 5056 * tests/reproducers/simple/EmbeddedJnlpInApplet/resources/EmbeddedJnlpInAppletWithDotCodebase.html: 5057 Applet with an embedded jnlp file with codebase set as a 'dot' 5058 * tests/reproducers/simple/EmbeddedJnlpInApplet/resources/JnlpInApplet.html: 5059 Applet with jnlp_href file. 5060 * tests/reproducers/simple/EmbeddedJnlpInApplet/srcs/EmbeddedJnlp.java: 5061 Simple class that outputs strings. 5062 * tests/reproducers/simple/EmbeddedJnlpInApplet/testcases/EmbeddedJnlpInAppletTest.java: 5063 Testcase that tests embedded jnlps in html pages. 5064 5065 2012-11-08 Saad Mohammad <smohammad@redhat.com> 5066 5067 * NEWS: Added entry for PR1027 - DownloadService is not supported by 5068 IcedTea-Web. 5069 5070 2012-11-08 Saad Mohammad <smohammad@redhat.com> 5071 5072 Added reproducer for DownloadService. 5073 * tests/reproducers/signed/DownloadService/resources/DownloadService.jnlp: 5074 Launching jnlp file that contains extension jnlp and jars marked with part names. 5075 * tests/reproducers/signed/DownloadService/resources/DownloadServiceExtension.jnlp: 5076 DownloadService extension jnlp file with jars marked with part names. 5077 * tests/reproducers/signed/DownloadService/srcs/DownloadServiceRunner.java: 5078 A simple class that uses DownloadService to complete tasks and outputs the results. 5079 * tests/reproducers/signed/DownloadService/testcases/DownloadServiceTest.java: 5080 Testcase for DownloadService. 5081 5082 2012-11-08 Saad Mohammad <smohammad@redhat.com> 5083 5084 Core implementation of DownloadService. 5085 * netx/net/sourceforge/jnlp/cache/CacheUtil.java (getCacheParentDirectory): 5086 Returns the parent directory of the cached resource. 5087 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 5088 (getLoaders): Returns all loaders that this loader uses, including 5089 itself 5090 (addNewJar): Adds a new jar to the classloader with specified 5091 UpdatePolicy. 5092 (removeJars): Remove jars from the filesystem. 5093 (initializeNewJarDownload): Downloads and initializes jars into the 5094 current loader. 5095 (manageExternalJars): Manages jars which are not mentioned in the 5096 JNLP file. 5097 * netx/net/sourceforge/jnlp/runtime/LocateJnlpClassLoader.java: 5098 (getLoaderByJnlpFile): Returns the classloader of the jnlp file 5099 specified. 5100 (getLoaderByResourceUrl): Returns the classloader that contains the 5101 specified jar. 5102 * netx/net/sourceforge/jnlp/runtime/ManageJnlpResources.java: 5103 (findJars): Returns jars from the JNLP file with the specified 5104 partname. 5105 (removeCachedJars): Removes jar from cache. 5106 (downloadJars): Downloads jars identified by part name. 5107 (loadExternalResouceToCache): Download and initalize resources which 5108 are not mentioned in the jnlp file. 5109 (removeExternalCachedResource): Removes resources from cache which 5110 are not mentioned in the jnlp file. 5111 (isExternalResourceCached): Determines if the resource that is not 5112 mentioned in the jnlp file is cached and returns a boolean with the 5113 result. 5114 * netx/net/sourceforge/jnlp/services/XDownloadService.java: 5115 Core implementation of DownloadService. 5116 5117 2012-11-02 Jiri Vanek <jvanek@redhat.com> 5118 Alexandr Kolouch <skolnag@gmail.com> 5119 5120 Added cz_CS locales with test 5121 * AUTHORS: added translator, mr. Kolouch 5122 * NEWS: mentioned localization 5123 * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: file 5124 itself with translation 5125 * tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java: 5126 Test which is testing whether and how locales are applied. 5127 5128 2012-11-02 Jiri Vanek <jvanek@redhat.com> 5129 5130 Splashscreen integrated to javaws and plugin 5131 * Makefile.am: (edit_launcher_script) added JAVAWS_SPLASH_LOCATION 5132 substitution for installed javaws_splash.png. 5133 (install-exec-loca) added installation of javaws_splash.png. 5134 * NEWS: mentioned splashscreen 5135 * launcher/javaws.in: added SPLASH_LOCATION, as path to image with "java" 5136 splash which s then shown until internal vector one appear. 5137 * netx/net/sourceforge/jnlp/GuiLaunchHandler.java: splashScreen made volatile, 5138 (launchInitialized) splashscreen is created and shown 5139 * netx/net/sourceforge/jnlp/JNLPSplashScreen.java: (setSplashImageURL) 5140 splash bg image is loaded from given url or default is used if not found 5141 or not specified by jnlp/applet. (correctSize) width is calculated from 5142 bg image or default is used when no image set. Splash is centered to 5143 primary monitor. 5144 * netx/net/sourceforge/jnlp/Launcher.java: (launchApplet) and 5145 (launchApplication) enriched by handling of splashs. 5146 (launchError) overloaded and is now handling forwarding of errors to 5147 splash. All relevant calls of launchError enriched by appletInstance. 5148 * netx/net/sourceforge/jnlp/NetxPanel.java: is now implementing 5149 SplashController.This is done by setting and wrapping of splashController 5150 variable. 5151 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: is now handling 5152 splashscreen for applets in browsers. 5153 (framePanel) is now providing panel to be processed (PluginAppletViewer) 5154 is now invoking SplashCreator. (replaceSplash) new method which replace 5155 splashscreen with error splashscreen. (removeSplash) new method to remove 5156 splash when loading is done. (update) is added to call paint directly 5157 (SplashCreator) new internal runnable to create splash 5158 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_2.html: 5159 second jar made XslowX to track two FIXME introduced in this patch - 5160 Launcher's createApplet and PluginAppletViewer's framePanel. 5161 * netx/javaws_splash.png: Binary image to be shown before java is launched 5162 * tests/reproducers/simple/simpletest1/resources/netxPlugin.png: Binary image 5163 to ne used for testing custom splashscreens 5164 5165 2012-10-31 Jana Fabrikova <jfabriko@redhat.com> 5166 5167 *tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java: 5168 Modifying the testcase output to a simpler text. 5169 *tests/reproducers/simple/JSToJSet/testcases/JSToJSetTest.java: 5170 Modifying the testcase output to a simpler text. 5171 5172 2012-10-29 Omair Majid <omajid@redhat.com> 5173 5174 * tests/reproducers/signed/DeploymentPropertiesAreExposed/resources/DeploymentPropertiesAreExposed.jnlp, 5175 * tests/reproducers/signed/DeploymentPropertiesAreExposed/srcs/Test.java, 5176 * tests/reproducers/signed/DeploymentPropertiesAreExposed/testcases/DeploymentPropertiesAreExposedTest.java: 5177 New files. 5178 5179 2012-10-29 Omair Majid <omajid@redhat.com> 5180 5181 PR1186 5182 * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java: 5183 (load(boolean)): Delegate to load(File,File,boolean). 5184 (load(File,File,boolean)): New method. 5185 (copyTo): New method. 5186 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: 5187 (initialize): Copy configuration to system properties. 5188 * tests/netx/unit/net/sourceforge/jnlp/config/DeploymentConfigurationTest.java: 5189 New File. 5190 5191 2012-10-29 Jana Fabrikova <jfabriko@redhat.com> 5192 5193 * tests/reproducers/simple/JSToJSet 5194 Added reproducer for testing LiveConnect - setting Java members from JavaScript side 5195 5196 2012-10-26 Jiri Vanek <jvanek@redhat.com> 5197 5198 Added clipboard reproducers (PR708) 5199 * tests/reproducers/signed/ClipboardContentSigned/resources/ClipboardContentSignedCopy1.jnlp: 5200 Jnlp to invoke manual copying to clipboard on signed app, please note 5201 the delayed death of application 5202 * tests/reproducers/signed/ClipboardContentSigned/resources/ClipboardContentSignedCopy2.jnlp: 5203 Jnlp to invoke jtextfield like copying signed app, please note the 5204 delayed death of application 5205 * tests/reproducers/signed/ClipboardContentSigned/resources/ClipboardContentSignedPaste1.jnlp: 5206 Jnlp to invoke manual pasting on signed application 5207 * tests/reproducers/signed/ClipboardContentSigned/resources/ClipboardContentSignedPaste2.jnlp: 5208 Jnlp to invoke jtextfield like pasting on signed application 5209 * tests/reproducers/signed/ClipboardContentSigned/srcs/ClipboardContentSigned.java: 5210 Application which is trying to access clipboard by various ways. 5211 * tests/reproducers/signed/ClipboardContentSigned/testcases/ClipboardContentSignedTests.java: 5212 Automated tests for four above jnlps. 5213 * tests/reproducers/simple/ClipboardContent/resources/ClipboardContentCopy1.jnlp: 5214 Jnlp to invoke manual copying to clipboard on unsigned app, please note 5215 the delayed death of application 5216 * tests/reproducers/simple/ClipboardContent/resources/ClipboardContentCopy2.jnlp: 5217 Jnlp to invoke jtextfield like copying unsigned app, please note the 5218 delayed death of application 5219 * tests/reproducers/simple/ClipboardContent/resources/ClipboardContentPaste1.jnlp: 5220 Jnlp to invoke manual pasting on unsigned application 5221 * tests/reproducers/simple/ClipboardContent/resources/ClipboardContentPaste2.jnlp: 5222 Jnlp to invoke jtextfield like pasting on unsigned application 5223 * tests/reproducers/simple/ClipboardContent/srcs/ClipboardContent.java: 5224 Application which is trying to access clipboard by various ways. 5225 * tests/reproducers/simple/ClipboardContent/testcases/ClipboardContentTests.java: 5226 Automated tests for first and third of above four jnlps. The tests of 5227 second and fourth is disabled due to necessary manual interaction 5228 * tests/test-extensions/net/sourceforge/jnlp/tools/WaitingForStringProcess.java: 5229 Utility class for process waiting for some string for another string 5230 * tests/test-extensions/net/sourceforge/jnlp/tools/ClipboardHelpers.java 5231 Utility class for copying/pasting text to/from clipboard 5232 * tests/test-extensions/net/sourceforge/jnlp/tools/AsyncJavaws.java 5233 Utility class for launching javaws in separate thread. 5234 5235 5236 2012-10-23 Jiri Vanek <jvanek@redhat.com> 5237 5238 KnownToFail texts are now bold in html report 5239 * tests/report-styles/jreport.xsl: all text outputs of 5240 test="@known-to-fail=true" conditions are marked with <b>. 5241 5242 2012-10-19 Adam Domurad <adomurad@redhat.com> 5243 5244 * tests/reproducers/custom/AdditionalJarsInMetaInfIndexList/testcases/AdditionalJarsInMetaInfIndexListTests.java 5245 (SignedMetaInfIndexListTest): Add @KnownToFail annotation 5246 5247 2012-10-19 Jiri Vanek <jvanek@redhat.com> 5248 5249 Renamed reproducers-related variables and targets 5250 * Makefile.am: 5251 NETX_TEST_DIR - new parent directory variable for tests 5252 NETX_UNIT_TEST_DIR - is now using this variable 5253 JNLP_TESTS_ENGINE_SRCDIR -> TEST_EXTENSIONS_SRCDIR 5254 JNLP_TESTS_ENGINE_TESTS_SRCDIR -> TEST_EXTENSIONS_TESTS_SRCDIR 5255 JNLP_TESTS_SRCDIR -> REPRODUCERS_TESTS_SRCDIR 5256 JNLP_TESTS_ENGINE_DIR -> TEST_EXTENSIONS_DIR 5257 JNLP_TESTS_ENGINE_TESTS_DIR -> TEST_EXTENSIONS_TESTS_DIR 5258 new variable TEST_EXTENSIONS_COMPATIBILITY_SYMLINK still pointing to $(TESTS_DIR)/netx/jnlp_testsengine 5259 $(TESTS_DIR)/jnlp_testsengine now points to $(TESTS_DIR)/test-extensions 5260 JNLP_TESTS_SERVER_DEPLOYDIR -> REPRODUCERS_TESTS_SERVER_DEPLOYDIR 5261 JNLP_TESTS_DIR -> REPRODUCERS_BUILD_DIR 5262 netx-dist-tests-source-files.txt -> test-extensions-source-files.txt 5263 stamps/netx-dist-tests-compile.stamp -> stamps/test-extensions-compile.stamp 5264 stamps/netx-dist-tests-tests-compile.stamp -> stamps/test-extensions-tests-compile.stamp 5265 stamps/netx-dist-tests-compile-testcases.stamp -> stamps/compile-reproducers-testcases.stamp 5266 stamps/netx-dist-tests-copy-resources.stamp -> stamps/copy-reproducers-resources.stamp 5267 * tests/reproducers/custom/AdditionalJarsInMetaInfIndexList/srcs/Makefile: and 5268 * tests/reproducers/custom/AppletExtendsFromOutsideJar/srcs/Makefile: and 5269 * tests/reproducers/custom/AppletFolderInArchiveTag/srcs/Makefile: and 5270 * tests/reproducers/custom/UnsignedContentInMETAINF/srcs/Makefile: following above renaming 5271 5272 2012-10-19 Adam Domurad <adomurad@redhat.com> 5273 5274 Revised multiple signatures test to check for new message. Added more 5275 accurate reproducer for PR822. 5276 * tests/reproducers/signed2/MultipleSignaturesTest/srcs/somecrazytestpackage/MultipleSignaturesTest.java: 5277 Made class take a classname parameter so different out-of-package 5278 classes could be executed. 5279 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest.html: 5280 Added main-class parameter. 5281 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest1.jnlp: 5282 Same. 5283 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest1_requesting.jnlp: 5284 Same. 5285 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest2.jnlp: 5286 Same. 5287 * tests/reproducers/signed2/MultipleSignaturesTest/testcases/MultipleSignaturesTestTests.java 5288 (multipleSignaturesTestHtmlAppletUsesPermissions): New, tests if fully 5289 signed HTML applets with varied signers can (as they should) execute 5290 with full permissions. Reproduces PR822. 5291 (multipleSignaturesTestJnlpApplicationRequesting): Check for 5292 mismatching signers JNLP failure message. Remove known-to-fail & 5293 inaccurate bug annotation. 5294 * tests/reproducers/signed2/MultipleSignaturesTestSamePackage/testcases/MultipleSignaturesTestTestsSamePackage.java 5295 (multipleSignaturesTestSamePackageJnlpApplicationRequesting): Check for 5296 mismatching signers JNLP failure message. Remove known-to-fail & 5297 inaccurate bug annotation. 5298 5299 2012-10-19 Adam Domurad <adomurad@redhat.com> 5300 5301 Reproduces PR822: Applets fail to load if jars have different signers. 5302 Tests for applets & JNLPs with multiple signers per jar. 5303 * tests/reproducers/signed/ReadPropertiesSigned/srcs/ReadPropertiesSigned.java: 5304 Modified to end with standard applet finish message. 5305 * tests/reproducers/simple/ReadProperties/srcs/ReadProperties.java: 5306 * tests/reproducers/custom/MultipleSignaturesPerJar/README: Explains 5307 dependence on ReadPropertiesSigned. 5308 * tests/reproducers/custom/MultipleSignaturesPerJar/resources/MultipleSignaturesPerJarMatching.html: 5309 HTML applet test with a common signer. 5310 * tests/reproducers/custom/MultipleSignaturesPerJar/resources/MultipleSignaturesPerJarMatching.jnlp: 5311 JNLP test with a common signer. 5312 * tests/reproducers/custom/MultipleSignaturesPerJar/resources/MultipleSignaturesPerJarMismatching.html: 5313 HTML applet test without a common signer. 5314 * tests/reproducers/custom/MultipleSignaturesPerJar/resources/MultipleSignaturesPerJarMismatching.jnlp: 5315 JNLP test without a common signer. 5316 * tests/reproducers/custom/MultipleSignaturesPerJar/srcs/Makefile: 5317 Custom makefile used to sign a jar with multiple signers. 5318 * tests/reproducers/custom/MultipleSignaturesPerJar/srcs/somecrazytestpackage/MultipleSignaturesPerJarMain.java: 5319 Accesses ReadPropertiesSigned from another package with different 5320 signers. 5321 * tests/reproducers/custom/MultipleSignaturesPerJar/testcases/MultipleSignaturesPerJarTests.java: 5322 Test driver. 5323 5324 2012-10-19 Adam Domurad <adomurad@redhat.com> 5325 5326 New message for signer mismatch in JNLP applications. 5327 * netx/net/sourceforge/jnlp/resources/Messages.properties: Added 5328 message 'The JNLP application is not fully signed by a single cert.' 5329 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Message 5330 thrown when JNLP's jcv.allJarsSigned() is true but not 5331 jcv.isFullySigned(); 5332 5333 2012-10-19 Adam Domurad <adomurad@redhat.com> 5334 5335 Fixes JCV#isTriviallySigned(). Reproducer 'EmptySignedJar' passes 5336 again. 5337 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: Remove 5338 problematic 'triviallySigned' variable and instead determine 5339 whether triviallySigned on the fly. Consider jars with 0 signable 5340 entries as SIGNED_OK. 5341 * tests/netx/unit/net/sourceforge/jnlp/tools/JarCertVerifierTest.java: 5342 Update no-signers unit test. 5343 5344 2012-10-19 Adam Domurad <adomurad@redhat.com> 5345 5346 * netx/net/sourceforge/jnlp/security/AppVerifier.java: Use interface 5347 types for declared types where applicable. 5348 * netx/net/sourceforge/jnlp/security/PluginAppVerifier.java: Same. 5349 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: Same. 5350 5351 2012-10-19 Adam Domurad <adomurad@redhat.com> 5352 5353 * netx/net/sourceforge/jnlp/security/AppVerifier.java: Use interface 5354 types for declared types where applicable. 5355 * netx/net/sourceforge/jnlp/security/PluginAppVerifier.java: Same. 5356 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: Same. 5357 5358 2012-10-19 Danesh Dadachanji <ddadacha@redhat.com> 5359 5360 Rework JarCertVerifier certificate management to handle multiple 5361 certificates and use different algorithms to verify JNLPs and Applets. 5362 * netx/net/sourceforge/jnlp/resources/Messages.properties: 5363 Removed SHasUnsignedEntry. 5364 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 5365 Set JCV instance to final but uninitialized. 5366 (JNLPClassLoader): Initialized JCV with runtime dependent verifier. 5367 (addNewJar), (initializeResources), (verifySignedJNLP): 5368 Replaced use of local JarCertVerifier variable with the instance variable. 5369 Added calls to isFullySigned wherever signer verification is done. 5370 (activateJars): No longer verifies nested jars. These receive the same 5371 security permissions as their parent jar, regardless of the nested 5372 jar's signing. 5373 (checkTrustWithUser): Removed JCV param, reimplemented to wrap around 5374 JCV's checkTrustWithUser method. 5375 (verifyJars): Removed. 5376 * netx/net/sourceforge/jnlp/security/AppVerifier.java: 5377 New strategy pattern interface that specifies verification methods 5378 required regardless of the runtime. 5379 * netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java: 5380 * netx/net/sourceforge/jnlp/security/PluginAppVerifier.java: 5381 New strategy pattern classes used to determine which algorithms to use 5382 depending on the runtime. 5383 * netx/net/sourceforge/jnlp/security/CertVerifier.java: 5384 Added CertPath param to all the methods. 5385 (noSigningIssues): Removed. 5386 * netx/net/sourceforge/jnlp/security/CertWarningPane.java: 5387 * netx/net/sourceforge/jnlp/security/CertsInfoPane.java: 5388 * netx/net/sourceforge/jnlp/security/MoreInfoPane.java: 5389 Updated calls to the verifier's methods with the new CertPath param. All 5390 are set to null so far. 5391 * netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java: 5392 Added CertPath param to all the methods. It's mostly ignored though. 5393 * netx/net/sourceforge/jnlp/tools/CertInformation.java: 5394 New class to represent all the information about a signer with 5395 with respect to all of the entries it has signed for the app. 5396 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: 5397 Completely reworked to use CertInformation and AppVerifier functionality. 5398 (getCertPath), (getCertInformation), (checkTrustWithUser), 5399 (getJarSignableEntries), (getTotalJarEntries): New method. 5400 (noSigningIssues), (anyJarsSigned): Removed. 5401 (verifyResult): Renamed enum to VerifyResult 5402 (JarCertVerifier): New constructor used to set AppVerifier instance. 5403 (getAlreadyTrustPublisher), (getRootInCacerts): Now uses strategy pattern. 5404 (hasSigningIssues), (getDetails), (checkTrustedCerts), (checkCertUsage): 5405 Now uses cert info class. 5406 (getCerts): Renamed to getCertsList. 5407 (isFullySignedByASingleCert): renamed to isFullySigned and to use 5408 the strategy pattern. 5409 (add): New public method that resets some instance vars and 5410 calls verifyJars. 5411 (verifyJars): Modifier changed to private, above method should be used. 5412 Also skips jars that have been verified before. 5413 (verifyJar): Removed actual verification code, only reads jars into the JVM. 5414 (verifyJarEntryCerts): New method. Does actual verification of jars. 5415 (getPublisher), (getRoot): Use hacky currentlyUsed variable as the signer. 5416 * tests/netx/unit/net/sourceforge/jnlp/tools/JarCertVerifierTest.java: 5417 Unit test JCV's verifyJarEntryCerts method. 5418 * tests/test-extensions/net/sourceforge/jnlp/tools/CodeSignerCreator.java: 5419 Unit test helper that creates CodeSigner instances. 5420 5421 2012-10-16 Adam Domurad <adomurad@redhat.com> 5422 5423 * tests/reproducers/simple/AppletTakesLastParam/srcs/AppletTakesLastParam.java: 5424 Add 'standard' applet closing message. 5425 * tests/reproducers/simple/AppletTakesLastParam/testcases/AppletTakesLastParamTests.java: 5426 Clean-up code and add automatic applet closing on finish. 5427 5428 2012-10-15 Jana Fabrikova <jfabriko@redhat.com> 5429 5430 * tests/reproducers/simple/JSToJGet/testcases/JSToJGetTest.java: 5431 Modified the testcases - more readable method calls. 5432 5433 2012-10-05 Omair Majid <omajid@redhat.com> 5434 5435 PR1145 5436 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java 5437 (getAccessControlContextForClassLoading): Do not catch 5438 ClassCircularityError. 5439 (findLoadedClassAll): Call findLoadedClass without any special 5440 permissions. 5441 5442 2012-10-03 Jana Fabrikova <jfabriko@redhat.com> 5443 5444 * tests/reproducers/simple/JSToJGet: 5445 Added a new reproducer for the first LiveConnect 5446 test - getting members from Java side. 5447 5448 2012-10-02 Martin Olsson <martin@minimum.se> 5449 5450 * plugin/icedteanp/IcedTeaNPPlugin.cc: Typo fix. 5451 * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: Typo fix. 5452 5453 2012-09-26 Jana Fabrikova <jfabriko@redhat.com> 5454 5455 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/StringMatchClosingListener.java: 5456 Added forgotten package name. 5457 5458 2012-09-25 Jiri Vanek <jvanek@redhat.com> 5459 5460 Added rules listeners 5461 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/CountingClosingListener.java: 5462 Base class for closing listeners which is containing complete output in 5463 each time. 5464 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/Rule.java: 5465 Class with rule definition for RulesFolowingClosingListener 5466 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/RulesFolowingClosingListener.java: 5467 ClosingListener consisted from rules which all have to match for close action 5468 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/StringRule.java: 5469 Implementation of rule based on string 5470 * tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java: 5471 * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: 5472 Refactored to use Above iisteners. 5473 5474 5475 2012-09-24 Jiri Vanek <jvanek@redhat.com> 5476 5477 Added basic closing listener implementation 5478 * tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned.html: 5479 removed unnecessary XslowX 5480 * tests/reproducers/signed/AppletTestSigned/resources/AppletTestSigned2.html: 5481 added missing XslowX 5482 * tests/reproducers/signed/AppletTestSigned/srcs/AppletTestSigned.java: 5483 added standard closing sentence 5484 * tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java: 5485 used auto*closing listeners 5486 * tests/test-extensions/net/sourceforge/jnlp/ClosingListener.java: 5487 interface for identifying closing listeners 5488 * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java: 5489 added possibility to set timeout n the fly 5490 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: 5491 (executeBrowser) added shortcut for autoclosing listeners, 5492 (setUpClosingListener) method for setting properties of ClosingListener 5493 (executeBrowser) add logic to handle ClosingListeners 5494 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/AutoAllClosingListener.java: 5495 listener closing on "APPLET FINISHED" string 5496 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/AutoErrorClosingListener.java: 5497 listener closing on "xception" match 5498 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/AutoOkClosingListener.java: 5499 listener closing on both xception and finished string. 5500 * tests/test-extensions/net/sourceforge/jnlp/closinglisteners/StringBasedClosingListener.java: 5501 Base forefather for Auto*ClosingListener 5502 5503 2012-09-24 Jiri Vanek <jvanek@redhat.com> 5504 Jana Fabrikova <jfabriko@redhat.com> 5505 5506 Reproducers are now correctly compiled against liveconect(plugin.jar) 5507 * Makefile.am: (stamps/netx-dist-tests-prepare-reproducers.stamp) 5508 added one more dependency: stamps/liveconnect-dist.stamp 5509 added one more directory on cp: $(abs_top_builddir)/liveconnect 5510 5511 2012-09-17 Deepak Bhole <dbhole@redhat.com> 5512 5513 PR1161: X509VariableTrustManager does not work correctly with OpenJDK7 5514 * Makefile.am: If building with JDK 6, don't build 5515 VariableX509TrustManagerJDK7. 5516 * NEWS: Updated. 5517 * acinclude.m4: In addition to setting VERSION_DEFS, also set HAVE_JAVA7 5518 if building with JDK7. 5519 * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java (initialize): Use new 5520 getSSLSocketTrustManager() method to get the trust manager. 5521 (getSSLSocketTrustManager): New method. Depending on runtime JRE version, 5522 returns the appropriate trust manager. 5523 * netx/net/sourceforge/jnlp/security/HttpsCertVerifier.java: Removed 5524 unused tm variable. 5525 * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java: No 5526 longer extends com.sun.net.ssl.internal.ssl.X509ExtendedTrustManager. 5527 (checkClientTrusted): Renamed to checkTrustClient and removed overloaded 5528 implementations. 5529 (checkServerTrusted): Renamed to checkTrustServer. Also, modified to 5530 accept socket and engine (may be null). Assume that CN is mismatched by 5531 default, rather than matched. If explicitly trusted, bypass other checks, 5532 including CN mismatch. 5533 (checkAllManagers): Modified to accept socket and engine. Modified to work 5534 for both JDK6 and JDK7. 5535 (getAcceptedIssuers): Make protected (called by others in package). 5536 * netx/net/sourceforge/jnlp/security/VariableX509TrustManagerJDK6.java: 5537 New class -- X509TrustManager for JDK6. 5538 * netx/net/sourceforge/jnlp/security/VariableX509TrustManagerJDK7.java: 5539 New class -- X509TrustManager for JDK7. 5540 5541 2012-09-07 Saad Mohammad <smohammad@redhat.com> 5542 5543 Added signed jnlp tests for applications with multiple jar resources. 5544 * tests/reproducers/signed/MultiJar-NoSignedJnlp/resources/MainJarWithoutSignedJnlp.jnlp: 5545 Launching jnlp file that's main jar does not have a signed jnlp file, but 5546 other jar resources do. 5547 * tests/reproducers/signed/MultiJar-NoSignedJnlp/srcs/SimpleApplication.java: 5548 A class that uses reflection to access resources from different jars. 5549 * tests/reproducers/signed/MultiJar-SignedJnlpApplication/resources/MainJarWithMatchingSignedJnlpApplication.jnlp: 5550 Launching jnlp file that's main jar matches the signed jnlp application 5551 file. 5552 * tests/reproducers/signed/MultiJar-SignedJnlpApplication/resources/MainJarWithUnmatchingSignedJnlpApplication.jnlp: 5553 Launching jnlp file that's main jar does not match the signed jnlp 5554 application file. 5555 * tests/reproducers/signed/MultiJar-SignedJnlpApplication/srcs/JNLP-INF/APPLICATION.jnlp: 5556 Signed JNLP application file for MultiJar-SignedJnlpApplication. 5557 * tests/reproducers/signed/MultiJar-SignedJnlpApplication/srcs/SignedJnlpApplication.java: 5558 A class that uses reflection to access resources from different jars. 5559 * tests/reproducers/signed/MultiJar-SignedJnlpApplication/testcases/MultiJarSignedJnlpTest.java: 5560 Testcase that tests the launch and validation of signed jnlp files for 5561 application that have multiple jar resources. 5562 * tests/reproducers/signed/MultiJar-SignedJnlpTemplate/resources/MainJarWithMatchingSignedJnlpTemplate.jnlp: 5563 Launching jnlp file that's main jar matches the signed jnlp application 5564 template file. 5565 * tests/reproducers/signed/MultiJar-SignedJnlpTemplate/resources/MainJarWithUnmatchingSignedJnlpTemplate.jnlp: 5566 Launching jnlp file that's main jar does not match the signed jnlp 5567 application template file. 5568 * tests/reproducers/signed/MultiJar-SignedJnlpTemplate/srcs/JNLP-INF/APPLICATION_TEMPLATE.jnlp: 5569 Signed JNLP application template file for MultiJar-SignedJnlpTemplate.jar 5570 * tests/reproducers/signed/MultiJar-SignedJnlpTemplate/srcs/SignedJnlpTemplate.java: 5571 A class that uses reflection to access resources from different jars. 5572 5573 2012-09-07 Jiri Vanek <jvanek@redhat.com> 5574 5575 Added strict test 5576 * tests/reproducers/simple/simpletest1/testcases/SimpleTest1Test.java: 5577 Removed deprecated ServerAccess.ProcessResult 5578 (testSimpletest1lunchOk) extracted asserting code 5579 (checkLaunched) family of methods to evaluate output of application 5580 (createStrictFile) method to prepare file which will pass strict checking 5581 (testSimpletest1lunchOkStrictJnlp) new test, ensuring that even strict 5582 file can be read without strict option 5583 (testSimpletest1lunchNotOkJnlpStrict) new test ensuring that strictly 5584 read no-strict file will fail 5585 (testSimpletest1lunchOkStrictJnlpStrict) new test ensuring that strictly 5586 read strict file will pass 5587 5588 2012-09-06 Jiri Vanek <jvanek@redhat.com> 5589 5590 Fixing several typos from previous push 5591 * tests/test-extensions/net/sourceforge/jnlp/ServerLauncher.java: 5592 (getUrlUponThisInstance) Javadoc, replaced Ctreate with Create. 5593 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: (run) 5594 Fixed indentation. 5595 * tests/reproducers/simple/ParametrizedJarUrl/testcases/ParametrizedJarUrlTests.java: 5596 Refactored createCodeBAse to createCodeBase. 5597 5598 2012-09-05 Jiri Vanek <jvanek@redhat.com> 5599 5600 Fixing several errors which were causing incorrect behaviour causing 5601 correct reproduction of PR905 5602 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarUrlSigned.htm 5603 Using different jar for reproducing 5604 * tests/reproducers/simple/ParametrizedJarUrl/testcases/ParametrizedJarUrlTests.java 5605 Added tests for hardcoded codebase (same and different) 5606 enhanced original PR905 reproducers 5607 * tests/test-extensions/net/sourceforge/jnlp/LoggingBottleneck.java: 5608 added flush for logs 5609 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: cleaned 5610 and enhanced getUrl* methods. 5611 * tests/test-extensions/net/sourceforge/jnlp/ServerLauncher.java: delegated 5612 socket 5613 * tests/test-extensions/net/sourceforge/jnlp/TinyHttpdImpl.java: fixed 5614 processing of question mark. 5615 5616 2012-09-05 Jiri Vanek <jvanek@redhat.com> 5617 5618 * tests/reproducers/signed/CountingAppletSigned/srcs/CountingAppletSigned.java: 5619 Signed applet painting to canvas and periodically printing out counted messages 5620 * tests/reproducers/signed2/AppletTestSigned2/srcs/AppletTestSigned2: 5621 Second simple signed applet for testing two different simple ones parallel 5622 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1E_x_2s.html: 5623 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_1.html: 5624 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_2.html: 5625 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_2E.html: 5626 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_2e.html: 5627 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1_x_2sk.html: 5628 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1e_x_2s.html: 5629 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1k_x_2.html: 5630 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1s_x_2.html: 5631 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1s_x_2s.html: 5632 * tests/reproducers/simple/CountingApplet1/resources/ParallelAppletsTest_1s_x_2ss.html: 5633 Various combinations of plain, signed, crashing, exception throwing and 5634 exiting applets on single web-page 5635 * tests/reproducers/simple/CountingApplet1/srcs/CountingApplet1.java: 5636 Simple applet painting to canvas and periodically printing out counted messages 5637 * tests/reproducers/simple/CountingApplet1/testcases/ParallelAppletsTest.java: 5638 testcases launching above html files. 5639 * tests/reproducers/simple/CountingApplet2/srcs/CountingApplet2.java: 5640 Second simple applet painting to canvas and periodically printing out counted messages 5641 * tests/reproducers/simple/simpletest2/srcs/SimpleTest2.java: Enhanced 5642 exception throwing reproducer. 5643 5644 2012-09-04 Jiri Vanek <Jvanek@redhat.com> 5645 Danesh Dadachanji <ddadacha@redhat.com> 5646 5647 Single instance support for jnlp-href and tests 5648 * netx/net/sourceforge/jnlp/services/XSingleInstanceService.java: 5649 (initializeSingleInstance) fixed code for catching running instance 5650 (checkSingleInstanceRunning) Added handling of parameters. 5651 * netx/net/sourceforge/jnlp/Launcher.java: (launchApplication), 5652 (launchApplet) Added debug output that instance is already running. 5653 (getApplet) added check for services and debug output 5654 * netx/net/sourceforge/jnlp/resources/Messages.properties: added 5655 (LSingleInstanceExists) entry for exception. 5656 tests/reproducers/simple/SingleInstanceServiceTest/resources/SingleInstanceTest.jnlp 5657 * tests/reproducers/simple/SingleInstanceServiceTest/resources/SingleInstanceTestWS.jnlp: 5658 * tests/reproducers/simple/SingleInstanceServiceTest/resources/SingleInstanceTest_clasical.html: 5659 * tests/reproducers/simple/SingleInstanceServiceTest/resources/SingleInstanceTest_jnlpHref.html: 5660 Applet and application in jnlp or html launching files. 5661 * tests/reproducers/simple/SingleInstanceServiceTest/srcs/SingleInstanceChecker.java 5662 SingleInstance implementing applet/application 5663 * tests/reproducers/simple/SingleInstanceServiceTest/testcases/SingleInstanceTest.java 5664 Testfile for launching for above jnlps/htmls as testcases. 5665 5666 2012-08-27 Adam Domurad <adomurad@redhat.com> 5667 5668 Fixes PR920, duplicate loading of classes in certain cases 5669 * NEWS: Added entry: Fixes PR920 5670 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Remove 5671 recursive/non-recursive distinction. Add parent JNLPClassLoader to 5672 parent chain. 5673 5674 2012-08-27 Adam Domurad <adomurad@redhat.com> 5675 5676 Reproduces problem behind PR920, class is in a jar is loaded twice when 5677 used by both a class within the jar, and also used by a class outside 5678 the jar extending that class. 5679 * tests/reproducers/custom/AppletExtendsFromOutsideJar/README: 5680 Describes test 5681 * tests/reproducers/custom/AppletExtendsFromOutsideJar/resources/AppletExtendsFromOutsideJar.html: 5682 Runs applet with main class outside jar 5683 * A tests/reproducers/custom/AppletExtendsFromOutsideJar/srcs/AppletReferenceInSameJar.java: 5684 References class Referenced inside same jar 5685 * tests/reproducers/custom/AppletExtendsFromOutsideJar/srcs/AppletReferenceOutOfJar.java: 5686 References class Referenced outside the jar 5687 * tests/reproducers/custom/AppletExtendsFromOutsideJar/srcs/Makefile: 5688 Packages Reference, AppletReferenceInSameJar into a jar, 5689 AppletReferenceOutOfJar outside it 5690 * tests/reproducers/custom/AppletExtendsFromOutsideJar/srcs/Referenced.java: 5691 Class that is referenced twice, loaded twice in failing behaviour 5692 * tests/reproducers/custom/AppletExtendsFromOutsideJar/testcases/AppletExtendsFromOutsideJarTests.java: 5693 Drives AppletExtendsFromOutsideJar.html 5694 5695 2012-08-27 Adam Domurad <adomurad@redhat.com> 5696 5697 Tests whether a main class can be found in a jar specified in 5698 META-INF/INDEX.LIST. This test is done with both signed and unsigned 5699 jars. The failure with signed jars encapsulates PR1112. 5700 * tests/reproducers/custom/AdditionalJarsInMetaInfIndexList/resources/AdditionalJarsInMetaInfIndexListSigned.jnlp: 5701 * tests/reproducers/custom/AdditionalJarsInMetaInfIndexList/resources/AdditionalJarsInMetaInfIndexListUnsigned.jnlp: 5702 JNLP files for the signed and unsigned varions of the test 5703 * tests/reproducers/custom/AdditionalJarsInMetaInfIndexList/srcs/LoadedViaMetaInfIndexList.java: 5704 Main class that is within a jar loaded via 5705 * tests/reproducers/custom/AdditionalJarsInMetaInfIndexList/srcs/Makefile: 5706 Prepares a jar with INDEX.LIST pointing to another jar that has the 5707 main-class. Copies of these jars and made and signed. 5708 * tests/reproducers/custom/AdditionalJarsInMetaInfIndexList/testcases/AdditionalJarsInMetaInfIndexListTests.java: 5709 Test driver, tests if main-class has run. 5710 5711 2012-08-27 Adam Domurad <adomurad@redhat.com> 5712 5713 Tests custom policy definition in such a way that has been known to 5714 cause ClassCircularityError's. Reproducer for PR1145. 5715 * tests/reproducers/signed/CustomPolicy/resources/CustomPolicy.jnlp: 5716 * tests/reproducers/signed/CustomPolicy/srcs/CustomPolicy.java: 5717 Sets custom policy and performs a privileged operation with no given 5718 privileges. 5719 * tests/reproducers/signed/CustomPolicy/testcases/CustomPolicyTests.java: 5720 Tests that an access control exception was caught, and that the program 5721 exits correctly. 5 5722 6 5723 2012-08-27 Deepak Bhole <dbhole@redhat.com> … … 9 5726 (getAccessControlContextForClassLoading): Catch ClassCircularityErrors and 10 5727 ignore them (thus denying permission to caller). 5728 5729 2012-08-27 Jiri Vanek <jvanek@redhat.com> 5730 5731 Added tests for PR822 - multiple signatures on classpath 5732 * Makefile.am: listed signed2 directory 5733 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest.html: 5734 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest1.jnlp: 5735 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest1_requesting.jnlp: 5736 * tests/reproducers/signed2/MultipleSignaturesTest/resources/MultipleSignaturesTest2.jnlp: 5737 * tests/reproducers/signed2/MultipleSignaturesTestSamePackage/resources/MultipleSignaturesTest1_SamePackage.jnlp: 5738 * tests/reproducers/signed2/MultipleSignaturesTestSamePackage/resources/MultipleSignaturesTest1_SamePackage_requesting.jnlp: 5739 * tests/reproducers/signed2/MultipleSignaturesTestSamePackage/resources/MultipleSignaturesTest2_SamePackage.jnlp: 5740 * tests/reproducers/signed2/MultipleSignaturesTestSamePackage/resources/MultipleSignaturesTest_SamePackage.html: 5741 various variations of multiple signtarues jnlp/html, in/out package, same/different/ signature 5742 * tests/reproducers/signed2/MultipleSignaturesTestSamePackage/srcs/MultipleSignaturesTestSamePackage.java: 5743 simple class just with call to second jar 5744 * tests/reproducers/signed2/MultipleSignaturesTest/srcs/somecrazytestpackage/MultipleSignaturesTest.java: 5745 simple class just with call to second jar, but in package 5746 * tests/reproducers/signed2/MultipleSignaturesTest/testcases/MultipleSignaturesTestTests.java: 5747 * tests/reproducers/signed2/MultipleSignaturesTestSamePackage/testcases/MultipleSignaturesTestTestsSamePackage.java 5748 various testcases tro above resources 5749 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: "-verbose " fixed to "-verbose" 5750 5751 2012-08-27 Jiri Vanek <jvanek@redhat.com> 5752 5753 Fixed long term failing unit-test, fixed NPE from ClassLoader 5754 * netx/net/sourceforge/jnlp/NullJnlpFileException.java: new class to 5755 distinguish plain NPE from null jnlp file. 5756 * netx/net/sourceforge/jnlp/SecurityDesc.java: (getSandBoxPermissions) 5757 added throw of NullJnlpFileException in case of null jnlp file. 5758 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (findClass) 5759 added Override annotation, add catch of NullJnlpFileException and 5760 re-throw of CNF exception. 5761 * tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: 5762 (testResourceLoadSuccessCaching) (testResourceLoadFailureCaching) 5763 (testParentClassLoaderIsAskedForClasses) - internal JNLPFile's 5764 (getSecurity) null in SecurityDesc constructorrepalced by this. 5765 (testNullFileSecurityDesc) new test to ensure NPE in null JNLPFile case. 5766 5767 2012-08-22 Jiri Vanek <jvanek@redhat.com> 5768 5769 Added tests for PR905 - parameters in jnlp/html application/applet resources 5770 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarUrl.html: 5771 html file to launch applet, requested archive jar have parameter 5772 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarUrl1.jnlp: 5773 jnlp file to launch application, requested archive jar have parameter 5774 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarUrl2.jnlp: 5775 jnlp file to launch application, requested jnlp have parameter 5776 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarUrlSigned.html: 5777 html file to launch signed applet, requested archive jar have parameter 5778 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarUrlSigned1.jnlp: 5779 jnlp file to launch signed application, requested archive jar have parameter 5780 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarUrlSigned2.jnlp: 5781 jnlp file to launch signed application, requested jnlp have parameter 5782 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarAppletUrl2.jnlp 5783 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarAppletUrl.jnlp 5784 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarAppletUrlSigned2.jnlp 5785 * tests/reproducers/simple/ParametrizedJarUrl/resources/ParametrizedJarAppletUrlSigned.jnlp 5786 variations launching applets from jnlp 5787 * tests/reproducers/simple/ParametrizedJarUrl/testcases/ParametrizedJarUrlTests.java: 5788 testaceses of above ParametrizedJarUrl/jnlps+htmls namely - (parametrizedAppletTestSignedTest) 5789 , (testParametrizedJarUrl2), (testParametrizedJarUrlSigned2): passing 5790 calls /partially/ with parameter. Those test are passing. 5791 (parametrizedAppletTestSignedFirefoxTest) call with parameter upon signed 5792 applet in browser, failing and so is representing PR905 5793 5794 2012-08-21 Jiri Vanek <jvanek@redhat.com> 5795 5796 * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java: 5797 (sigInt), (sigKill), (sigTerm) new methods for various killing of 5798 processes by kill. 5799 (kill) new method, launching kill process. 5800 (destroyProcess ) is now calling sigInt instead of unwrapped sigTerm. 5801 5802 2012-08-21 Jiri Vanek <jvanek@redhat.com> 5803 5804 * launcher/javaws.in: java is now launched by exec 5805 5806 2012-08-19 Thomas Meyer <thomas@m3y3r.de> 5807 5808 * netx/net/sourceforge/jnlp/JNLPFile.java: 5809 * netx/net/sourceforge/jnlp/LaunchHandler.java: 5810 * netx/net/sourceforge/jnlp/PluginBridge.java: 5811 * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: 5812 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: 5813 * netx/net/sourceforge/jnlp/runtime/RhinoBasedPacEvaluator.java: 5814 Fix javadoc warnings. 5815 * plugin/icedteanp/java/sun/applet/PluginObjectStore.java (contains): 5816 Fix a small bug that prevents the only user of this method 5817 (PluginAppletSecurity line 1064) to work correctly. 5818 5819 2012-08-18 Jiri Vanek <jvanek@redhat.com> 5820 5821 added encodings reproducer (PR1108) 5822 * tests/reproducers/simple/encodingTestsÄÅ ÄÅÅœÃÃÃÃÄÃÅÅ€ÃÃÅ®ÃÃÃÅ ÄŜŹÅ: new 5823 reproducer 5824 * tests/reproducers/simple/encodingTestsÄÅ ÄÅÅœÃÃÃÃÄÃÅÅ€ÃÃÅ®ÃÃÃÅ ÄŜŹÅ/srcs/encodingTest.java: 5825 main class/main applet class and method of new encodingTestsÄÅ ÄÅÅœÃÃÃÃÄÃÅÅ€ÃÃÅ®ÃÃÃÅ ÄŜŹÅ.jar 5826 * tests/reproducers/simple/encodingTestsÄÅ ÄÅÅœÃÃÃÃÄÃÅÅ€ÃÃÅ®ÃÃÃÅ ÄŜŹÅ/testcases/encodingTestTest.java: 5827 testcases for jnlps of this reproducers 5828 * tests/reproducers/simple/encodingTestsÄÅ ÄÅÅœÃÃÃÃÄÃÅÅ€ÃÃÅ®ÃÃÃÅ ÄŜŹÅ/resources: 5829 four utf-8 and four iso-8859-2 jnlp files and one utf-8 and one 5830 iso-8859-2 html files 5831 * tests/reproducers/simple/simpletest1/srcs/simpletest1.java: now prints 5832 its args out 5833 * tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java: 5834 correctly swaped error and output listener in its test 5835 5836 2012-08-17 Adam Domurad <adomurad@redhat.com> 5837 5838 Fixes PR588, cookies set in the java cookie jar are now stored properly 5839 * plugin/icedteanp/IcedTeaNPPlugin.cc 5840 (set_cookie_info): New, uses setvalueforurl 5841 (consume_plugin_message): Additional message added allowing 5842 set_cookie_info to be used from the java side. 5843 * plugin/icedteanp/java/sun/applet/PluginCookieManager.java: Now 5844 overrides put method, results in set_cookie_info calls in C++ 5845 * plugin/icedteanp/java/sun/applet/PluginMain.java: Passes 5846 PluginStreamHandler to PluginCookieManager to allow C++ side 5847 communication 5848 5849 2012-08-17 Adam Domurad <adomurad@redhat.com> 5850 5851 Reproducers for PR588, sets persistent and session cookies in the 5852 cookie jar and tries to read them with various means. 5853 * tests/reproducers/signed/SavingCookies/resources/CheckCookie.html: 5854 Print the cookie store contents 5855 * tests/reproducers/signed/SavingCookies/resources/CheckCookieAndGotoClear.html: 5856 Print the cookie store contents, and then go to 5857 ClearPersistentCookie.html with showDocument 5858 * tests/reproducers/signed/SavingCookies/resources/ClearPersistentCookie.html: 5859 Clear the test cookie so it does not interfere with further tests 5860 * tests/reproducers/signed/SavingCookies/resources/SavePersistentCookie.html: 5861 Create a persistent cookie 5862 * tests/reproducers/signed/SavingCookies/resources/SavePersistentCookieAndGotoCheck.html: 5863 Create a persistent cookie and check it with showDocument 5864 * tests/reproducers/signed/SavingCookies/resources/SaveSessionCookie.html: 5865 Create a session cookie 5866 * tests/reproducers/signed/SavingCookies/resources/SaveSessionCookieAndGotoCheck.html: 5867 Create a session cookie and check it with showDocument 5868 * tests/reproducers/signed/SavingCookies/srcs/CheckingCookies.java: 5869 Checks the contents of the cookie store. 5870 Depending on the test, this may go to another page upon completion. 5871 * tests/reproducers/signed/SavingCookies/srcs/SavingCookies.java: 5872 Store cookies in the java cookie store. Depending on the test, this may 5873 go to another page upon completion. 5874 * tests/reproducers/signed/SavingCookies/testcases/SavingCookiesTests.java 5875 Test driver for testing persistent and session cookies in different 5876 ways 5877 5878 2012-08-18 Jiri Vanek <jvanek@redhat.com> 5879 5880 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: added 5881 VERBOSE_OPTION constant with -verbose value for javaws launching. 5882 5883 2012-08-17 Jiri Vanek <jvanek@redhat.com> 5884 5885 * tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java: 5886 (testDeadLockTestTerminatedBody) removed tests for killed-process and 5887 termination of remaining javas put on correct place. 5888 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: 5889 (executeBrowser) stout and stderr listeners forwarded to next method in 5890 correct order. 5891 5892 2012-08-14 Danesh Dadachanji <ddadacha@redhat.com> 5893 5894 Classpaths in jars' manifests are only considered when the applet is run 5895 without using jnlp_href and a JNLP file. 5896 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (activateJars): 5897 Add conditional check for use of jnlp_href. 5898 * tests/reproducers/signed/Classpath.Manifest.Test.Helper/srcs/CheckForClasspath.java: 5899 Applet whose jar is stored in a subdir under the test engine server. 5900 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestAppletTest.html: 5901 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestAppletTest.jnlp: 5902 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestApplicationTest.jnlp: 5903 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestJNLPHrefTest.html: 5904 * tests/reproducers/signed/ClasspathManifestTest/srcs/ClasspathManifest.java: 5905 * tests/reproducers/signed/ClasspathManifestTest/srcs/META-INF/MANIFEST.MF: 5906 * tests/reproducers/signed/ClasspathManifestTest/testcases/ClasspathManifestTest.java: 5907 Test if manifest entry is searched for classpath only when in the plugin 5908 is run without using jnlp_href. 5909 5910 2012-08-14 Adam Domurad <adomurad@redhat.com> 5911 5912 Reproducer for allowing unsigned content in META-INF/ folder. 5913 Derives from ReadPropertiesSigned test's signed jar. 5914 * tests/reproducers/custom/UnsignedContentInMETAINF/resources/UnsignedContentInMETAINF.jnlp: 5915 New, runs a modified version of ReadPropertiesSigned.jar (UnsignedContentInMETAINF.jar) 5916 * tests/reproducers/custom/UnsignedContentInMETAINF/srcs/META-INF/unsigned_file_in_metainf: 5917 New, placed into a modified version of ReadPropertiesSigned.jar 5918 (UnsignedContentInMETAINF.jar) so that there is unsigned content in the 5919 META-INF/ folder. 5920 * tests/reproducers/custom/UnsignedContentInMETAINF/srcs/Makefile: 5921 New, creates a modified version of ReadPropertiesSigned.jar, named 5922 UnsignedContentInMETAINF.jar, and places unsigned content inside its 5923 META-INF/ folder 5924 * tests/reproducers/custom/UnsignedContentInMETAINF/testcases/UnsignedContentInMETAINF.java: 5925 Test driver for jnlp file 5926 5927 2012-08-14 Adam Domurad <adomurad@redhat.com> 5928 5929 Unit test for method in JCV, isMetaInfFile() 5930 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: 5931 Made isMetaInfFile package-private for testing purposes. 5932 * tests/netx/unit/net/sourceforge/jnlp/tools/JarCertVerifierTest.java: 5933 New, tests isMetaInfFile 5934 5935 2012-08-06 Jiri Vanek <jvanek@redhat.com> 5936 5937 Added splashscreen implementation 5938 * netx/net/sourceforge/jnlp/GuiLaunchHandler.java: calling JNLPSplashScreen 5939 constructor with file ratehr then null. 5940 * netx/net/sourceforge/jnlp/InformationDesc.java: ONE_LINE changed from 5941 "oneline" to "one-line", added citation why. (getDescriptionStrict) new 5942 method returning exact value or null without fall-back. 5943 * netx/net/sourceforge/jnlp/JNLPSplashScreen.java: Added header, default 5944 values and useless string replaced by JnlpFile. 5945 * netx/net/sourceforge/jnlp/resources/Messages.properties: Added SPLASH 5946 family of keys. 5947 * netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java: (getSplashControler) 5948 new method returning its SplashControler. 5949 * netx/net/sourceforge/jnlp/runtime/Boot.java: Constants (name) and 5950 (version) made public. 5951 * netx/net/sourceforge/jnlp/splashscreen/SplashController.java: New interface 5952 for each class which wants its splasshcreen controlled by SplashUtils. 5953 * netx/net/sourceforge/jnlp/splashscreen/SplashErrorPanel.java: New interface 5954 for each class which wants to serve as error-showing splashscreen. 5955 * netx/net/sourceforge/jnlp/splashscreen/SplashPanel.java: New interface 5956 for each class which wants to serve as splashscreen. 5957 * netx/net/sourceforge/jnlp/splashscreen/SplashUtils.java: Factory methods 5958 for simplified splashscreens creation. 5959 * netx/net/sourceforge/jnlp/splashscreen/impls/DefaultErrorSplashScreen2012.java: 5960 Full implementation of SplashErrorPanel to be used as default error 5961 splashscreen. 5962 * netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreen2012.java: 5963 Full implementation of SplashPanel to be used as default splashscreen. 5964 * netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java: 5965 Class for gathering same logic in DefaultErrorSplashScreen2012 and 5966 DefaultSplashScreen2012. 5967 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java: 5968 Class responsible for paint main graphic in DefaultSplashScreen2012. 5969 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/ControlCurve.java: 5970 Painting forefather for primitives drawing curves. 5971 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/Cubic.java: 5972 Class with cubic calculation. 5973 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/ErrorPainter.java: 5974 Class responsible for paint main graphic in DefaultErrorSplashScreen2012. 5975 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/MovingText.java: 5976 Class responsible for metal-shining web label. 5977 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/NatCubic.java: 5978 Painting primitive for drawing cubic-splines. 5979 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/NatCubicClosed.java: 5980 Painting primitive for drawing self-closed cubic-splines. 5981 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/TextOutlineRenderer.java: 5982 Class for rendering text from given texture, 5983 * netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/TextWithWaterLevel.java: 5984 Class for rendering Iced label slowly filled with watter 5985 * netx/net/sourceforge/jnlp/splashscreen/parts/BasicComponentErrorSplashScreen.java: 5986 Common forefather for all error splashscreens which would like to be an 5987 component too. 5988 * netx/net/sourceforge/jnlp/splashscreen/parts/BasicComponentSplashScreen.java: 5989 Common forefather for all splashscreens which would like to be an component too. 5990 * netx/net/sourceforge/jnlp/splashscreen/parts/DescriptionInfoItem.java: 5991 Description item of InformationElement 5992 * netx/net/sourceforge/jnlp/splashscreen/parts/InfoItem.java: 5993 Individual items in InformationElement 5994 * netx/net/sourceforge/jnlp/splashscreen/parts/InformationElement.java: 5995 Wrapper around jnlp's information element. 5996 * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java: 5997 Custom error dialogue with direct access to exception and icedtea-web page 5998 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashScreenTest.java: 5999 Test for final composition of ErrorSplashScreen2012, including main method 6000 for manual testing 6001 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java: 6002 Test for final composition of SplashScreen2012, including main method 6003 for manual testing 6004 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashUtilsTest.java: 6005 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainterTest.java: 6006 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/ControlCurveTest.java: 6007 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/CubicTest.java: 6008 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/ErrorPainterTest.java: 6009 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/MovingTextTest.java: 6010 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/NatCubicClosedTest.java: 6011 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/NatCubicTest.java: 6012 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/SplinesDefsTest.java: 6013 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/TextOutlineRendererTest.java: 6014 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/TextWithWaterLevelTest.java: 6015 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/BasicComponentErrorSplashScreenTest.java: 6016 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/BasicComponentSplashScreenTest.java: 6017 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/DescriptionInfoItemTest.java: 6018 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InfoItemTest.java: 6019 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/InformationElementTest.java: 6020 * tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java: 6021 Unit-test classes always testing the class with corresponding name 11 6022 12 6023 2012-08-13 Jiri Vanek <jvanek@redhat.com> … … 35 6046 Added set of methods allowing passing of custom variables to ThreadedProcess. 36 6047 * tests/test-extensions/net/sourceforge/jnlp/ThreadedProcess.java: 37 Added processing of custom variables. 38 39 2012-08-22 Danesh Dadachanji <ddadacha@redhat.com> 6048 Added processing of custom variables. 6049 6050 2012-08-10 Adam Domurad <adomurad@redhat.com> 6051 6052 * plugin/icedteanp/IcedTeaNPPlugin.cc 6053 (consume_plugin_message): New, called by consume_message, handles 6054 cookie and proxy info retrieval, and setting cookie info 6055 (consume_message): Call consume_plugin_message for "plugin ..." 6056 messages 6057 6058 2012-08-08 Danesh Dadachanji <ddadacha@redhat.com> 40 6059 41 6060 Fix PR955: regression: SweetHome3D fails to run … … 72 6091 have localized information. 73 6092 74 2012-08-21 Jiri Vanek <jvanek@redhat.com> 75 76 * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java: 77 (sigInt), (sigKill), (sigTerm) new methods for various killing of 78 processes by kill. 79 (kill) new method, launching kill process. 80 (destroyProcess ) is now calling sigInt instead of unwrapped sigTerm. 81 82 2012-08-21 Jiri Vanek <jvanek@redhat.com> 83 84 * launcher/javaws.in: java is now launched by exec 85 86 2012-08-17 Adam Domurad <adomurad@redhat.com> 87 88 Fixes PR588, cookies set in the java cookie jar are now stored properly 89 * plugin/icedteanp/IcedTeaNPPlugin.cc 90 (set_cookie_info): New, uses setvalueforurl 91 (consume_plugin_message): Additional message added allowing 92 set_cookie_info to be used from the java side. 93 * plugin/icedteanp/java/sun/applet/PluginCookieManager.java: Now 94 overrides put method, results in set_cookie_info calls in C++ 95 * plugin/icedteanp/java/sun/applet/PluginMain.java: Passes 96 PluginStreamHandler to PluginCookieManager to allow C++ side 97 communication 98 99 2012-08-17 Adam Domurad <adomurad@redhat.com> 100 101 * plugin/icedteanp/IcedTeaNPPlugin.cc 102 (consume_plugin_message): New, called by consume_message, handles 103 cookie and proxy info retrieval, and setting cookie info 104 (consume_message): Call consume_plugin_message for "plugin ..." 105 messages 106 107 2012-08-17 Adam Domurad <adomurad@redhat.com> 108 109 Reproducers for PR588, sets persistent and session cookies in the 110 cookie jar and tries to read them with various means. 111 * tests/reproducers/signed/SavingCookies/resources/CheckCookie.html: 112 Print the cookie store contents 113 * tests/reproducers/signed/SavingCookies/resources/CheckCookieAndGotoClear.html: 114 Print the cookie store contents, and then go to 115 ClearPersistentCookie.html with showDocument 116 * tests/reproducers/signed/SavingCookies/resources/ClearPersistentCookie.html: 117 Clear the test cookie so it does not interfere with further tests 118 * tests/reproducers/signed/SavingCookies/resources/SavePersistentCookie.html: 119 Create a persistent cookie 120 * tests/reproducers/signed/SavingCookies/resources/SavePersistentCookieAndGotoCheck.html: 121 Create a persistent cookie and check it with showDocument 122 * tests/reproducers/signed/SavingCookies/resources/SaveSessionCookie.html: 123 Create a session cookie 124 * tests/reproducers/signed/SavingCookies/resources/SaveSessionCookieAndGotoCheck.html: 125 Create a session cookie and check it with showDocument 126 * tests/reproducers/signed/SavingCookies/srcs/CheckingCookies.java: 127 Checks the contents of the cookie store. 128 Depending on the test, this may go to another page upon completion. 129 * tests/reproducers/signed/SavingCookies/srcs/SavingCookies.java: 130 Store cookies in the java cookie store. Depending on the test, this may 131 go to another page upon completion. 132 * tests/reproducers/signed/SavingCookies/testcases/SavingCookiesTests.java 133 Test driver for testing persistent and session cookies in different 134 ways 135 136 2012-08-18 Jiri Vanek <jvanek@redhat.com> 137 138 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: added 139 VERBOSE_OPTION constant with -verbose value for javaws launching. 140 141 2012-08-17 Jiri Vanek <jvanek@redhat.com> 142 143 * tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java: 144 (testDeadLockTestTerminatedBody) removed tests for killed-process and 145 termination of remaining javas put on correct place. 146 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: 147 (executeBrowser) stout and stderr listeners forwarded to next method in 148 correct order. 149 150 2012-08-14 Danesh Dadachanji <ddadacha@redhat.com> 151 152 Small addition to NEWS entry and bug annotation indicating the PR975 fix. 153 * NEWS: Add entry for PR975 154 * tests/reproducers/signed/ClasspathManifestTest/testcases/ClasspathManifestTest.java: 155 Add bug annotation for PR975. 156 157 2012-08-14 Danesh Dadachanji <ddadacha@redhat.com> 158 159 Classpaths in jars' manifests are only considered when the applet is run 160 without using jnlp_href and a JNLP file. 161 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (activateJars): 162 Add conditional check for use of jnlp_href. 163 * tests/reproducers/signed/Classpath.Manifest.Test.Helper/srcs/CheckForClasspath.java: 164 Applet whose jar is stored in a subdir under the test engine server. 165 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestAppletTest.html: 166 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestAppletTest.jnlp: 167 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestApplicationTest.jnlp: 168 * tests/reproducers/signed/ClasspathManifestTest/resources/ClasspathManifestJNLPHrefTest.html: 169 * tests/reproducers/signed/ClasspathManifestTest/srcs/ClasspathManifest.java: 170 * tests/reproducers/signed/ClasspathManifestTest/srcs/META-INF/MANIFEST.MF: 171 * tests/reproducers/signed/ClasspathManifestTest/testcases/ClasspathManifestTest.java: 172 Test if manifest entry is searched for classpath only when in the plugin 173 is run without using jnlp_href. 174 175 2012-08-14 Adam Domurad <adomurad@redhat.com> 176 177 Reproducer for allowing unsigned content in META-INF/ folder. 178 Derives from ReadPropertiesSigned test's signed jar. 179 * tests/reproducers/custom/UnsignedContentInMETAINF/resources/UnsignedContentInMETAINF.jnlp: 180 New, runs a modified version of ReadPropertiesSigned.jar (UnsignedContentInMETAINF.jar) 181 * tests/reproducers/custom/UnsignedContentInMETAINF/srcs/META-INF/unsigned_file_in_metainf: 182 New, placed into a modified version of ReadPropertiesSigned.jar 183 (UnsignedContentInMETAINF.jar) so that there is unsigned content in the 184 META-INF/ folder. 185 * tests/reproducers/custom/UnsignedContentInMETAINF/srcs/Makefile: 186 New, creates a modified version of ReadPropertiesSigned.jar, named 187 UnsignedContentInMETAINF.jar, and places unsigned content inside its 188 META-INF/ folder 189 * tests/reproducers/custom/UnsignedContentInMETAINF/testcases/UnsignedContentInMETAINF.java: 190 Test driver for jnlp file 191 192 2012-08-14 Adam Domurad <adomurad@redhat.com> 193 194 Unit test for method in JCV, isMetaInfFile() 195 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: 196 Made isMetaInfFile package-private for testing purposes. 197 * tests/netx/unit/net/sourceforge/jnlp/tools/JarCertVerifierTest.java: 198 New, tests isMetaInfFile 6093 2012-08-07 Thomas Meyer <thomas@m3y3r.de> 6094 6095 * plugin/icedteanp/IcedTeaNPPlugin.cc: only export NP_GetMIMEDescription, 6096 NP_GetValue, NP_Initialize and NP_Shutdown. This should fix PR472. 6097 6098 2012-08-07 Saad Mohammad <smohammad@redhat.com> 6099 6100 Added license header to files without one. 6101 * netx/net/sourceforge/jnlp/AppletLog.java: 6102 * netx/net/sourceforge/jnlp/JNLPMatcherException.java: 6103 * netx/net/sourceforge/jnlp/Log.java: 6104 * netx/net/sourceforge/jnlp/Node.java: 6105 * netx/net/sourceforge/jnlp/UpdateDesc.java: 6106 * netx/net/sourceforge/jnlp/cache/IllegalResourceDescriptorException.java: 6107 * netx/net/sourceforge/jnlp/security/SecurityDialogMessage.java: Added 6108 license header. 199 6109 200 6110 2012-08-07 Adam Domurad <adomurad@redhat.com> … … 205 6115 browserTable->size can be larger than sizeof(NPNetscapeFuncs) 206 6116 207 2012-07-31 Jiri Vanek <jvanek@redhat.com> 208 Peter Hatina <phatina@redhat.com> 209 210 Introduced configure option --with-gtk=2|3|default to be able 211 to compile against different version of GTK+ (2.x or 3.x). 212 * NEWS: mentioned bug fix 213 * acinclude.m4: (ITW_GTK_CHECK_VERSION) macro for getting GTK+ version 214 (ITW_GTK_CHECK) macro for checking GTK+ version 6117 2012-08-01 Saad Mohammad <smohammad@redhat.com> 6118 6119 Fix PR1049: Extension jnlp's signed jar with the content of only META-INF/* 6120 is considered unsigned. 6121 * NEWS: Added entry for PR1049. 6122 * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): 6123 Removes the display of the security dialog for loaders with only empty jars. 6124 * netx/net/sourceforge/jnlp/tools/JarCertVerifier.java: 6125 (JarCertVerifier): Tracks whether all jars verified are empty jars. 6126 (hasAllEmptyJars): Returns true if all jars verified are empty jars. 6127 (verifyJars): Checks whether signable entries and certificates are found and 6128 decides if all jars are empty jars. 6129 (isFullySignedByASingleCert): If all jars are emptyJars, returns true. 6130 * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarInLaunchingJnlp.jnlp: 6131 Launching jnlp with the resource of an empty jar and an extension jnlp 6132 containing the main jar. 6133 * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarInExtensionJnlp.jnlp: 6134 Launching jnlp with the resource of the main jar and an extension jnlp 6135 containing the empty jar. 6136 * tests/reproducers/signed/EmptySignedJar/resources/EmptySignedJarExtension.jnlp: 6137 Extension jnlp containing only an empty jar. 6138 * tests/reproducers/signed/EmptySignedJar/srcs/META-INF/empty_file: 6139 Empty file within META-INF; required to create EmptySignedJar.jar 6140 by the test engine. 6141 * tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java: 6142 Testcase that tests jnlp files with empty jars. 6143 * tests/reproducers/signed/SignedJarResource/resources/SignedJarResource.jnlp: 6144 Launches SignedJarResource class directly. 6145 6146 2012-07-31 Danesh Dadachanji <ddadacha@redhat.com> 6147 6148 Minor fix to overly restrictive unit test. 6149 * tests/netx/unit/net/sourceforge/jnlp/JNLPMatcherTest.java 6150 (testIsMatchDoesNotHangOnLargeData): Increase timeout to 5 seconds. 215 6151 216 6152 2012-07-24 Adam Domurad <adomurad@redhat.com> … … 224 6160 valid plugin instance 225 6161 6162 2012-07-31 Danesh Dadachanji <ddadacha@redhat.com> 6163 6164 * Makefile.am: Fix call to keytool that is missing its absolute path. 6165 6166 2012-07-31 Jiri Vanek <jvanek@redhat.com> 6167 Peter Hatina <phatina@redhat.com> 6168 6169 Introduced configure option --with-gtk=2|3|default to be able 6170 to compile against different version of GTK+ (2.x or 3.x). 6171 * NEWS: mentioned bug fix 6172 * acinclude.m4: (ITW_GTK_CHECK_VERSION) macro for getting GTK+ version 6173 (ITW_GTK_CHECK) macro for checking GTK+ version 6174 226 6175 2012-07-24 Adam Domurad <adomurad@redhat.com> 227 6176 … … 230 6179 delimiter 231 6180 232 2012-07-24 Adam Domurad <adomurad@redhat.com> 6181 2012-07-18 Danesh Dadachanji <ddadacha@redhat.com> 6182 6183 Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt 6184 from certificate warning. 6185 * NEWS: Added entries for RH838417 and RH838559. 6186 * netx/net/sourceforge/jnlp/resources/Messages.properties: 6187 Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. 6188 * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display 6189 SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either 6190 unverified or has a signing error. Also added warning.png to HTTPS dialogs. 6191 6192 2012-07-18 Thomas Meyer <thomas@m3y3r.de> 6193 6194 * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java (handleMessage): 6195 Fix possible endless loop while waiting for the applet object instance to 6196 get created. 6197 6198 2012-07-11 Jiri Vanek <jvanek@redhat.com> 6199 6200 try to close browser before kill it 6201 * tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java: 6202 * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: 6203 * tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java 6204 (evaluateSignedApplet) addapted to properly closed browser 6205 * tests/reproducers/simple/CheckServices/srcs/CheckServices.java: 6206 removed fixme section as it shuld work now 6207 * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java 6208 (destroyProcess) new method, launching kill with SIGTERM before clasical 6209 process.destroy() 6210 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: 6211 removed Set<Thread> terminated, should be removed long ago 6212 6213 2012-07-10 Adam Domurad <adomurad@redhat.com> 233 6214 234 6215 Refactor JNLPFile#launchType into its own interface type (as opposed to … … 246 6227 occurences of instanceof with respect to launchType. 247 6228 248 2012-07-18 Danesh Dadachanji <ddadacha@redhat.com> 249 250 Fix RH838417, Fix RH838559: Disambiguate signed applet security prompt 251 from certificate warning. 252 * NEWS: Added entries for RH838417 and RH838559. 253 * netx/net/sourceforge/jnlp/resources/Messages.properties: 254 Added SWarnFullPermissionsIgnorePolicy and updated SHttpsUnverified. 255 * netx/net/sourceforge/jnlp/security/CertWarningPane.java: Display 256 SWarnFullPermissionsIgnorePolicy if the cert is from a jar and is either 257 unverified or has a signing error. Also added warning.png to HTTPS dialogs. 258 259 2012-07-11 Jiri Vanek <jvanek@redhat.com> 260 261 try to close browser before kill it 262 * tests/reproducers/signed/AppletTestSigned/testcases/AppletTestSignedTests.java: 263 * tests/reproducers/simple/AppletTest/testcases/AppletTestTests.java: 264 * tests/reproducers/simple/CheckServices/testcases/CheckServicesTests.java 265 (evaluateSignedApplet) addapted to properly closed browser 266 * tests/reproducers/simple/CheckServices/srcs/CheckServices.java: 267 removed fixme section as it shuld work now 268 * tests/test-extensions/net/sourceforge/jnlp/ProcessAssasin.java 269 (destroyProcess) new method, launching kill with SIGTERM before clasical 270 process.destroy() 271 * tests/test-extensions/net/sourceforge/jnlp/ServerAccess.java: 272 removed Set<Thread> terminated, should be removed long ago 6229 2012-07-09 Deepak Bhole <dbhole@redhat.com> 6230 6231 * configure.ac: Bumped release number to 1.4pre 273 6232 274 6233 2012-07-09 Saad Mohammad <smohammad@redhat.com>
Note:
See TracChangeset
for help on using the changeset viewer.