2014-05-14 Omair Majid <omajid@redhat.com>
* tests/test-extensions/net/sourceforge/jnlp/tools/CodeSignerCreator.java
(KeyPair): New class.
(createCert): Use KeyPair.
2014-08-07 Jiri Vanek <jvanek@redhat.com>
Pre-release tuning
* Makefile.am: (netx-html-gen.stamp) set number of changests to 36 (since 1.5)
* NEWS: date of 1.5.1 set to 2014-08-13
* configure.ac: (AC_INIT) set to use 1.5
2014-08-05 Jiri Vanek <jvanek@redhat.com>
Massively improved offline abilities. Added Xoffline switch to force work without inet connection.
* NEWS: updated
* netx/net/sourceforge/jnlp/JNLPFile.java: (openURL) is now using properly
cached file instead of direct online one.
* netx/net/sourceforge/jnlp/Launcher.java: launcher is now using JNLPRuntime
isOnline* set of methods
* netx/net/sourceforge/jnlp/cache/ResourceTracker.java: misleading
(getInputStream) method removed (initializeResource) check for connection
before downlaodin (unless Xforceoffline specified). If environment is offline
it do not attempt any url connections or writing to cache
* netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: added flags of (offlineForced)
and (onlineDetected) with getters and setters. Added utility method (detectOnline)
to recognize whether environment is onliune by resovling inet addres of host
of not file url.
* netx/net/sourceforge/jnlp/util/XDesktopEntry.java: now writes real url into
desktop icon
2014-08-01 Jiri Vanek <jvanek@redhat.com>
* plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: casts to
(JNLPClassLoader) DID guarded by instanceof
2014-07-31 Andrew Azores <aazores@redhat.com>
Add URLPermission support to SecurityDesc. This is essentially Java 8
support, as URLPermission is new to Java 8 and required for many applets
to continue working when a Java 8-compatible JVM is in use.
* netx/net/sourceforge/jnlp/SecurityDesc.java (urlPermissionClass,
urlPermissionConstructor): new static variables for storing references to
URLPermission, if available, for reflective construction at runtime
(getSandboxPermissions): adds URLPermissions to sandbox permissions set,
if available (Java 8+)
(getUrlPermissions): new method for getting URLPermissions for the current
SecurityDesc
(getHostWithSpecifiedPort, appendRecursiveSubdirToCodebaseHostString): new
static helper methods for generating URLPermissions' constructor args
(requireNonNull): new method, simply throws NPE if its argument is null
* tests/netx/unit/net/sourceforge/jnlp/SecurityDescTest.java
(testNotNullJnlpFile): cleanup refactor, no semantic change
(testNullJnlpFile, testAppendRecursiveSubdirToCodebaseHostString,
testAppendRecursiveSubdirToCodebaseHostString2,
testAppendRecursiveSubdirToCodebaseHostString3,
testAppendRecursiveSubdirToCodebaseHostStringWithPort,
testAppendRecursiveSubdirToCodebaseHostStringWithNull,
testGetHostWithSpecifiedPort, testGetHostWithSpecifiedPortWithFtpScheme,
testGetHostWithSpecifiedPortWithUserInfo,
testGetHostWithSpecifiedPOrtWithPort,
testGetHostWithSpecifiedPortWithPath, testGetHostWithSpecifiedPortWithAll,
testGetHostWithSpecifiedPortWithNull, testGetHost,
testGetHostWithFtpScheme, testGetHostWithUserInfo, testGetHostWithPort,
testGetHostWithPath, testGetHostWithAll, testGetHostNull,
testGetHostWithAppendRecursiveSubdirToCodebaseHostString,
testGetHostWithSpecifiedPortWithAppendRecursiveSubdirToCodebaseHostString):
new test methods
2014-07-31 Andrew Azores <aazores@redhat.com>
Fixes for coverity issues discovered in RH1121549
* plugin/icedteanp/IcedTeaNPPlugin.cc (ITNP_New): print error message and
return error if JVM fails to start.
(NP_Initialize): fix missing argument to PLUGIN_ERROR when unable to
create data directory
* plugin/icedteanp/IcedTeaParseProperties.cc (get_log_dir): refactored to
reduce duplicate code, and added debug warning messages
* plugin/icedteanp/IcedTeaScriptablePluginObject.cc (setProperty): do not
erroneously redeclare java_result
* tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc (file_exists): added
assertion that directories satisfy file_exist
2014-07-30 Jie Kang <jkang@redhat.com>
*NEWS: mentioned fixes to Java Console and itweb-settings UI. PR1856, 1857,
1859
2014-07-30 Jie Kang <jkang@redhat.com>
Fixed TeeOutputStream to accept multi-byte encodings.
* netx/net/sourceforge/jnlp/util/logging/TeeOutputStream.java: Now uses
ByteArrayOutputStream instead of StringBuffer
* tests/netx/unit/net/sourceforge/jnlp/util/logging/TeeOutputStreamTest.java:
2014-07-30 Jie Kang <jkang@redhat.com>
Fix to Java ConsoleOutputPane for lower resolutions. Addresses bug
PR1859 where part of the pane is hidden and unnaccessible when
clicking Show Details.
* netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java:
2014-07-30 Jie Kang <jkang@redhat.com>
Fix to Control Panel UI for lower resolutions. Addresses bug
PR1856 where part of the dialog is hidden and unaccessible
on lower resolutions such as 800 x 600.
* netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java:
* netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java:
2014-07-22 Fridrich Strba <fridrich.strba@suse.com>
* plugin/icedteanp/IcedTeaPluginUtils.cc (flush_pre_init_messages):
Return NULL explicitly.
2014-07-03 Jiri Vanek <jvanek@redhat.com>
* tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java
removed useless iterations of all resources against all. Kept only all against
default.
2014-07-01 Jiri Vanek <jvanek@redhat.com>
* NEWS: mentioned PL localization
2014-06-26 Jacob Wisor <gitne@gmx.de>
* netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java:
(sortBy) Remove slipped in Java 7 language construct and API call
2014-06-26 Jacob Wisor <gitne@gmx.de>
* netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java: Formatting
fixes & cleanup
Made final classes, members, and variables final
2014-06-26 Jacob Wisor <gitne@gmx.de>
* netx/net/sourceforge/jnlp/resources/Messages_pl.properties: Add new PL
localized messages
2014-06-25 Andrew Azores <aazores@redhat.com>
PolicyEditor persists empty non-default codebase entries
* netx/net/sourceforge/jnlp/security/policyeditor/PolicyEntry.java
(toString): return empty string only if the codebase both has no
permissions assigned and is also the default "All Applets" codebase
* netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java
(savePolicyFile): release fileLock with try/finally
2014-06-19 Jiri Vanek <jvanek@redhat.com>
* NEWS: mentioned All JDKs ability, DE localization and KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK
2014-06-19 Jiri Vanek <jvanek@redhat.com>
Making the previous chnage actualy take an effect.
* Makefile.am: All tests runs using CLASSPATH varibale on line, separated by
semicolon. I have no idea wy this was needing.
2014-06-19 Jiri Vanek <jvanek@redhat.com>
All tests adapted to run from XBootclaspath (forced by extending package private
rt.jar class)
* Makefile.am: all sets of call of -Xbootclasspath in tests and coverage
are now adding $CLASSPATH to boot classapth. Where CLASSPATH was not deffined,
was added.
* tests/netx/unit/net/sourceforge/jnlp/JNLPMatcherTest.java: and
* tests/test-extensions/net/sourceforge/jnlp/awt/imagesearch/ComponentFinder.java:
resources loaded from boot classloader
* tests/reproducers/simple/JavawsAWTRobotFindsButton/testcases/JavawsAWTRobotFindsButtonTest.java
(static init) used system classlaoder to laod image
2014-06-19 Jiri Vanek <jvanek@redhat.com>
Made it works (basicaly) on any JDK
* Makefile.am: (NETX_PKGS) sun.applet added to recognized netx packages
(netx-dist.stamp) sun directory included into packed list
* acinclude.m4: removed (IT_CHECK_FOR_APPLETVIEWERPANEL_HOLE) check. Added
IT_CHECK_FOR_SUN_APPLET_ACCESSIBILITY, which test existence of
classes sun.applet.AppletPanel, sun.applet.AppletViewerPanel
fields applet, documentURL, baseURL and methods run and runLoader. Addapted messge
* configure.ac: call to IT_CHECK_FOR_APPLETVIEWERPANEL_HOLE replaced by call
to IT_CHECK_FOR_SUN_APPLET_ACCESSIBILITY
* /netx/net/sourceforge/jnlp/NetxPanel.java: now extends AppletViewerPanelAccess
instead of AppletViewerPanel directly. Access to baseURL, applet and documentURL
replaced by dedicated getters/setters
* netx/sun/applet/AppletViewerPanelAccess.java: new class extending AppletViewerPanel
and enabling access to applet, documentURL and baseURL. Backed by reflection.
Also overriding run by usage of short copypasted code.
* netx/sun/applet/AppletViewerPanelAccess.java: addedd accidentally skipped
createAppletThread method
* netx/sun/applet/package-info.java: new file with worning about usage of this
package in itw
* plugin/icedteanp/java/sun/applet/PluginAppletPanelFactory.java: only call
to super debug repalced by ITW's debugging call
* plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: used getters as in
NetxPanel
2014-06-19 Kurt Miller <kurt@intricatesoftware.com>
Fixed PR1743 - Intermittant deadlock in PluginRequestProcessor
* NEWS: added PR1743
* plugin/icedteanp/IcedTeaNPPlugin.cc: declaration of cond_message_available
moved to PluginRequestProcessor class
* plugin/icedteanp/IcedTeaNPPlugin.h: removed external cond_message_available search
* plugin/icedteanp/IcedTeaPluginRequestProcessor.h: message_queue_mutex,
syn_write_mutex and message_queue moved to PluginRequestProcessor clas.
Constructor, destructor and newMessageOnBus declarationmoved to end of class.
declared queueProcessorThread method.
* plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: Removed declaration of
static message_queue_mutex, syn_write_mutex, message_queue. (PluginRequestProcessor)
constructor and destructor and (newMessageOnBus) are now using the fields from
PluginRequestProcessor class. new method of (queue_wait_cleanup) to unlock mutex
added. (queue_processor) is now calling queueProcessorThread. Implemented
(queueProcessorThread), which uses setMember, call , eval and loadUrl rather
then processor->, versions. If no message_parts are available, the cleanup is done
only if message_queue is empty.
2014-06-18 Jacob Wisor <gitne@gmx.de>
* netx/net/sourceforge/jnlp/resources/Messages.properties (BOredirect)
(CCannotClearCache, CFakedCache, CONSOLEClean, CVCPCleanCache)
(CVCPCleanCacheTip): Fixed language in some messages
* netx/net/sourceforge/jnlp/resources/Messages_de.properties: Added new DE
localized messages
2014-06-06 Andrew Azores <aazores@redhat.com>
* netx/net/sourceforge/jnlp/security/policyeditor/CustomPermission.java
(toString): fixed empty actions string appearing on basic permissions, which
do not have actions
* tests/netx/unit/net/sourceforge/jnlp/security/policyeditor/CustomPermissionTest.java:
(testToStringWithoutActions): new test
2014-06-06 Andrew Azores <aazores@redhat.com>
Fixed NullPointerException when closing PolicyEditor with changes made and
no file yet set (editor opened without arguments), and selecting yes to
save changes before exit.
* netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java
(quit): if file is null, display file chooser prompt before attempting to save
2014-04-15 Jiri Vanek <jvanek@redhat.com>
Reflect possibility of disabled manifest check to unit-test
* tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPFileTest.java: new field
(attCheckValue) to store original value. (setPermissions) is enabling check
and (resetPermissions) returning back to original
2014-04-14 Andrew Azores <aazores@redhat.com>
* netx/net/sourceforge/jnlp/resources/Messages.properties:
(PEAccessThreads, PEAccessThreadsDetail, PEAccessThreadGroups,
PEAccessThreadGroupsDetail) new messages
* netx/net/sourceforge/jnlp/security/dialogs/TemporaryPermissions.java:
(ACCESS_THREADS_PERMISSION, ACCESS_THREAD_GROUPS_PERMISSION) new
permissions, added to reflection group.
* netx/net/sourceforge/jnlp/security/policyeditor/PermissionTarget.java:
(ACCESS_THREADS, ACCESS_THREAD_GROUPS) new targets
* netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java:
(ACCESS_THREADS, ACCESS_THREAD_GROUPS) new permissions, added to
reflection group. Minor formatting fixes.
2014-04-14 Jiri Vanek <jvanek@redhat.com>
All manifest attributes can be disabled
* netx/net/sourceforge/jnlp/config/Defaults.java: added new
KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK configuration.
* netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java:
Added KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK key
* netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java:
(isCheckEnabled) new method to check value of KEY_ENABLE_MANIFEST_ATTRIBUTES_CHECK
(checkAll) is testing isCheckEnabled before checking individual attributes.
2014-04-07 Andrew Azores <aazores@redhat.com>
* netx/net/sourceforge/jnlp/security/SecurityDialogs.java:
(showPartiallySignedWarningDialog) add missing shouldPromptUser check
2014-04-07 Jiri Vanek <jvanek@redhat.com>
Post 1.5 changes
* NEWS: added 1.5.1 section
* configure.ac: (AC_INIT) bumped to 1.5.1pre
2014-04-02 Jiri Vanek <jvanek@redhat.com>
* Makefile.am: bumped number of changeset in for about dialog. Fixed placement.
2014-04-02 Jiri Vanek <jvanek@redhat.com>
* Changelog: minor fixes
2014-04-02 Jiri Vanek <jvanek@redhat.com>
Pre-release tuning
* Makefile.am: (netx-html-gen.stamp) set number of changests to 223 (since 1.4)
* NEWS: date of 1.5 set to 201-04-02
* configure.ac: (AC_INIT) set to use 1.5
2014-04-02 Jiri Vanek <jvanek@redhat.com>
* NEWS: Bumped date of 1.5 release to 2014
2014-04-01 Andrew Azores <aazores@redhat.com>
Fix Permissions manifest attribute check
* netx/net/sourceforge/jnlp/runtime/ManifestAttributesChecker.java:
(isNoneOrDefault) new method.
(validateRequestedPermissionLevelMatchesManifestPermissions) new method.
(checkPermissionsAttribute) rework to closer match spec and fix bug in not
allowing signed applets to request sandbox permissions.