aboutsummaryrefslogtreecommitdiffstats
path: root/netx
Commit message (Collapse)AuthorAgeFilesLines
* Support building against OpenJDK8Omair Majid2014-01-2418-107/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OpenJDK8 javadoc parser is much more strict and raises erorrs on marlformed html, incorrect parameter names and incorrect throws declerations. 2014-01-23 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/JNLPFile.java, * netx/net/sourceforge/jnlp/NetxPanel.java, * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java, * netx/net/sourceforge/jnlp/cache/CacheUtil.java, * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java, * netx/net/sourceforge/jnlp/config/DirectoryValidator.java, * netx/net/sourceforge/jnlp/config/Setting.java, * netx/net/sourceforge/jnlp/controlpanel/AdvancedProxySettingsDialog.java, * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java, * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java, * netx/net/sourceforge/jnlp/runtime/RhinoBasedPacEvaluator.java, * netx/net/sourceforge/jnlp/security/SecurityDialogs.java, * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java, * netx/net/sourceforge/jnlp/services/XSingleInstanceService.java, * netx/net/sourceforge/jnlp/util/FileUtils.java, * netx/net/sourceforge/jnlp/util/JarFile.java, * netx/net/sourceforge/nanoxml/XMLElement.java, * netx/net/sourceforge/nanoxml/XMLParseException.java, * plugin/icedteanp/java/sun/applet/PluginStreamHandler.java: Fix incorrect parameter names, throws declerations and malformed html in javadocs.
* Invalid url exception from About dialogue moved to be debug onlyJiri Vanek2014-01-201-1/+1
|
* Added Christmas splashscreen extension.Jiri Vanek2014-01-206-5/+465
|
* Added support for system level linux loggingJiri Vanek2014-01-202-8/+22
|
* Added PolicyPanel to itweb-settings for custom policiesAndrew Azores2014-01-173-1/+255
| | | | | | | | | | | | | | | | | | Added itweb-settings panel to explain custom policy files and allow launching a policy editor for user's policy file. * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java: (createMainSettingsPanel, createPolicySettingsPanel) added PolicyPanel * netx/net/sourceforge/jnlp/resources/Messages.properties: new messages for PolicyPanel * netx/net/sourceforge/jnlp/controlpanel/PolicyPanel.java: new panel to allow launching of external policy editor * tests/reproducers/simple/CustomPolicies/resources/CustomPolicies.html: new test to ensure custom user policy files work correctly * tests/reproducers/simple/CustomPolicies/resources/CustomPoliciesApplet.jnlp * tests/reproducers/simple/CustomPolicies/resources/CustomPoliciesApplication.jnlp * tests/reproducers/simple/CustomPolicies/resources/CustomPoliciesJnlpHref.html * tests/reproducers/simple/CustomPolicies/srcs/CustomPolicies.java * tests/reproducers/simple/CustomPolicies/testcases/CustomPoliciesTest.java
* Reproducers stabilization by removing check for not presented general ↵Jiri Vanek2014-01-161-3/+1
| | | | Exception or error.
* Copy all button in console controls sorts by date by default.Jiri Vanek2014-01-062-10/+29
|
* Removed depndence on sun.misc.BASE64DecoderJiri Vanek2014-01-063-1/+397
|
* Fix classloading deadlock regressionAndrew Azores2013-12-271-75/+115
| | | | | | | | | | Resolve deadlock issue in JNLPClassLoader. See http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-December/025546.html * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) removed. (available, jarIndexes, classpaths, jarEntries, jarLocationSecurityMap) fields wrapped in Collections.synchronized*() to provide atomic read/write. Synchronized on while iterating over these collections. (loadClass) no longer uses implicit JNLPClassLoader instance lock nor dedicated loadClassLock object.
* Rewritten java consoleJiri Vanek2013-12-207-74/+1462
|
* fixed CacheLRUWrapperTestJiri Vanek2013-12-201-2/+2
|
* singletons logic, logs and test cleanup/fixesJiri Vanek2013-12-206-126/+156
|
* JNLPRuntime.config changed to proper singleton.Jiri Vanek2013-12-184-37/+35
|
* Console made aware of plugin messagesJiri Vanek2013-12-159-85/+571
|
* Made again compatible with JDK6.All JLists, JComboBoxs, and ↵Jiri Vanek2013-12-136-17/+17
| | | | | | DefaultComboBoxModels moved back to be not generics-like in netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java, netx/net/sourceforge/jnlp/controlpanel/DebuggingPanel.java, netx/net/sourceforge/jnlp/controlpanel/DesktopShortcutPanel.java, netx/net/sourceforge/jnlp/controlpanel/TemporaryInternetFilesPanel.java, netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java, netx/net/sourceforge/jnlp/security/viewer/CertificatePane.java
* itw itself warning cleanup: fixed rawtypes and unchecks, added braces and ↵Jiri Vanek2013-12-1328-180/+283
| | | | | | | | | | | | | | | | | | | | | Override After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :) remaining issues: icedtea-web/netx/net/sourceforge/jnlp/cache/ResourceTracker.java:357: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/cache/CacheUtil.java:128: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/runtime/Boot.java:261: warning: [deprecation] toURL() in File has been deprecated There have been a lot of work around cach x file x url escaping, and as main difference between file.tourl and file.touri.tourl is escapin, I rather left it. icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:804: warning: [deprecation] Ref in sun.misc has been deprecated icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:121: warning: [deprecation] Ref in sun.misc has been deprecated What can be done? icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:205: warning: [fallthrough] possible fall-through into case icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:211: warning: [fallthrough] possible fall-through into case This have to be fixed
* unittests warning cleanup: fixed typechecks, rawtypes, redundant casts...Jiri Vanek2013-12-131-7/+19
| | | | | ScreenFinder fixed to work partially also in headless mode. After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :)
* Messages.properties: added "It will be granted unrestricted access to your ↵Jiri Vanek2013-12-091-3/+3
| | | | computer." to (SSigUnverified) (SSigVerified) (SSignatureError) messages.
* Add units to cache size label in itweb-settingsAndrew Azores2013-12-051-1/+1
| | | | PR1604 - no units shown for cache size label in TemporaryInternetFilesPanel
* Implement per-JAR security descriptors (PR1592)Andrew Azores2013-12-032-48/+88
| | | | | | Fix/new feature for PR1592. Each JAR in partially signed applets is assigned its own security level, rather than forcing the entire applet to run sandboxed.
* Better validation of crytical dirs with proper message on startupJiri Vanek2013-12-024-14/+405
|
* Enabled file logging in plugin, user enabled to choose logs dirJiri Vanek2013-11-293-5/+76
|
* Reverted "fix to ManifestedJar1Test cases", better manifestedjar tests, ↵Jiri Vanek2013-11-272-20/+14
| | | | | | | | added srtict test * netx/net/sourceforge/jnlp/Parser.java: added indentation, fixes condition in strict base check * netx/net/sourceforge/jnlp/ResourcesDesc.java: revertedt recently added throw * tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java: (manifestedJar1main2mainNoAppDesc) adapted and (manifestedJar1main2mainNoAppDescStrict) added
* Added null check when getting manifest attributes for case of jar without ↵Jiri Vanek2013-11-271-2/+6
| | | | | | | | manifest * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getManifestAttribute) added check fo null manifest to prevent npe. * /tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: added test for npe from getManifestAttribute * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: (createJarWithContents) enhanced to be able to create jar without manifest.
* Removed most of checks to no output from reproducersJiri Vanek2013-11-252-2/+4
|
* fix to ManifestedJar1Test casesJiri Vanek2013-11-251-1/+10
| | | | | * netx/net/sourceforge/jnlp/ResourcesDesc.java: (getMainJAR) throw an RuntimeException when more then one main jar is specified. Preventing app to start. * tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java:(manifestedJar1main2mainNoAppDesc), (manifestedJar1nothing2nothingAppDesc)fixed and adapted to change.
* Fixed NPE in getting the attributeJiri Vanek2013-11-141-0/+4
|
* JNLPClassLoader cleanup, avoid Enumerations and use strict typing.Andrew Azores2013-11-131-77/+54
| | | | | | Iteration over Enumerations refactored to instead view Enumerations as Lists using Collections library. Type parameters added to some local variables and return types. For-loops refactored into for-each-loops.
* BasicExceptionDialog centers on-screen before appearingAndrew Azores2013-11-131-1/+1
|
* Enabled access to manifests' attributes from JNLPFile class, implemented ↵Jiri Vanek2013-11-135-30/+181
| | | | http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name
* Fixed lock in awt threads. JavaConsole window is now disposed instead of hidden.Jiri Vanek2013-11-102-21/+53
|
* Removed suspicious return when (searchForMain) had null launchDesc in ↵Jiri Vanek2013-11-101-4/+2
| | | | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java.
* Java console resurrected and connected to new logging.Jiri Vanek2013-11-0510-28/+533
|
* Avoid potential NPE in JNLPSecurityManager#addPermission when debug is enabledAndrew Azores2013-11-051-3/+7
| | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java: (addPermission) avoid NPE in JNLPClassLoader#getPermissions with debug enabled
* Synced headers between PLUGIN_DEBUG, PLUGIN_ERROR and javasideJiri Vanek2013-11-011-0/+4
| | | | | * netx/net/sourceforge/jnlp/util/logging/OutputController.java: (getHeader) added thread id and name to log header. * plugin/icedteanp/IcedTeaPluginUtils.h: (PLUGIN_DEBUG) (PLUGIN_ERROR) headerrs generation code moved to macro (CREATE_HEADER0). Both headers now contains pthread_self and g_thread_self. Fixed indentation.
* netx/net/sourceforge/jnlp/JARDesc.java: made immutableJiri Vanek2013-10-301-7/+8
| | | | (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
* Fix PR1513, signed applets with external main-class supportAndrew Azores2013-10-291-15/+8
| | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (initializeResources) ask for user approval rather than throwing LaunchException for signed applets with external main-class
* OutputController.getCallerClass now gets out also from ↵Jiri Vanek2013-10-251-1/+3
| | | | sun.applet.PluginDebug class.
* Reset the LogConfig in unit testsOmair Majid2013-10-221-0/+7
| | | | | | | | | | | | | | | | | | LogConfig is globally shared. Fix unit tests that modify the logging configuration to reset it after (and before) to avoid affecting other unit tests or being affected by the results of other tests. Before this patch, if the tests were executed in a certain order, it was possible for them to leave behind a LogConfig that enabled logging in the most verbose manner possible. This would generate megabytes of output when running unit tests. 2013-10-22 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/util/logging/LogConfig.java (resetLogConfig): New method. * tests/netx/unit/net/sourceforge/jnlp/util/logging/OutputControllerTest.java (setUp, tearDown): New method.
* Logic to extract main class attribute generalized to common methods.Jiri Vanek2013-10-211-32/+59
| | | | | | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getMainClassName) is now calling (getManifestAttribute) (getManifestAttribute) new method, extract named attribute from url specified jar. Called by (checkForAttributeInJars) (checkForMain) is now calling (checkForAttributeInJars). Also logic of (checkForAttributeInJars) was taken from here. (checkForAttributeInJars) new method, read specific attribute from
* Minor fix in DEBUG initialisationJiri Vanek2013-10-201-1/+1
| | | | | * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: (isPluginDebug) made private to prevent confusion. * plugin/icedteanp/java/sun/applet/PluginDebug.java: (DEBUG) initialized from JNLPRuntime.isDebug instead of incorrect JNLPRuntime.isPluginDebug.
* Resolve multiple-applet deadlock issue in JNLPClassLoaderAndrew Azores2013-10-161-62/+73
| | | | | | | | | | | | | | | | | | | | New lock used for synchronizing JNLPClassLoader#loadClass(String) to avoid deadlock condition when multiple applets are being loaded simultaneously. Regression test included. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) private member for locking of loadClass method. (loadClass) synchronizes using new lock rather than instance intrinsic lock to avoid RH976833 deadlock * tests/reproducers/custom/JNLPClassLoaderDeadlock/testcases/JNLPClassLoaderDeadlockTest.java: new test for multiple applet deadlock condition * tests/reproducers/custom/JNLPClassLoaderDeadlock/resources/JNLPClassLoaderDeadlock.html: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_1.java: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_2.java: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/Makefile: same
* SecurityDialog centers itself before becoming visibleAndrew Azores2013-10-111-2/+1
| | | | | * netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog) centerDialog called in init rather than on windowOpened event
* Fix regression in ResourceUrlCreator due to PR1204 patchAndrew Azores2013-10-031-18/+39
| | | | | | | | | * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: (getVersionedUrl) fix regression in previous PR1204 patch. Refactor to not take Resource parameter, use instance's field instead. (uriPartToString) new method * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: new tests for ResourceUrlCreator.getVersionedUrl
* * Cache viewer update:Jacob Wisor2013-10-034-105/+427
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Can be closed by ESC key - Enabling and disabling of operational buttons is handled properly - Time consuming operations are indicated by a mouse busy cursor - "Size" and "Last Modified" columns display localized data * netx/net/sourceforge/jnlp/controlpanel/CachePane.java: Moved JButtons to members. (addComponents): Modified to make use of new NonEditableTableModel. Added ListSelectionListener to propertly handle enabling and disabling of operational JButtons when selecting a resource from the cache table. Moved inital populating of the cache table to CacheViewer's constructor until after the CachePane has been instatiated. Added a general purpose Comparator for all non-String columns in the table model. Added a TableCellRenderer with proper localized rendering of "Size" and "Last Modified" columns as well as the content of "Name" and "Path" columns. (createButtonPanel): Moved delete operation into new method invokeDeleteLater(), added mouse cursor busy indicator, and proper handling of enabling and disabling of operational JButtons when pushing the delete button. Moved refresh operation when pushing the refresh button into new method invokePopulateLater() and added proper handling of enabling and disabling of operational JButtons while refreshing. Replaced closing the cache viewer dialog via JDialog.dispose() when pushing the delete button by a post of the WindowEvent.WINDOW_CLOSING event to the CacheViewer dialog in order to effectively remove the newly introduced KeyEventDispatcher. (invokeDeleteLater): New method: Posts an event to the event queue deleting the currently selected resource. (invokePopulateLater): New method: Posts an event to the event queue repopulating the cache table. (populateTable): Added mouse cursor busy indicator. (generateData): Modified cache table's per row data model for proper rendering and sorting to: DirectoryNode, File, String, String, Long, Date. * netx/net/sourceforge/jnlp/controlpanel/CacheViewer.java: (CacheViewer): Added null parameter check. Added a KeyEventDispatcher to enable closing the CacheViewer dialog on a KeyEvent.VK_ESCAPE key event. Replaced closing the cache viewer dialog via JDialog.dispose() by a post of the WindowEvent.WINDOW_CLOSING event to the CacheViewer dialog in order to effectively remove the newly introduced KeyEventDispatcher. * netx/net/sourceforge/jnlp/util/ui/NonEditableTableModel.java: Added a new table model that in effect is a javax.swing.table.DefaultTableModel except for no cell being editable. * netx/net/sourceforge/jnlp/util/ui/package-info.java: Added new package for UI common and recurrung UI tasks with documentation
* Unit tests for BrowserAwareProxySelectorOmair Majid2013-10-013-43/+52
| | | | | | | Also move duplicate code for selecting a host and port depending on the protocol into JNLPProxySelector.getFromArguments. The semantics of 'sameProxy' are different between BrowserAwareProxySelector and JNLPProxySelector; the socks proxy is included in firefox.
* Fix for PR1204, handling of query strings and absolute paths.Andrew Azores2013-09-261-19/+21
| | | | | | | | | | | | | | | | | | | | | | | | Absolute paths in resource URLs are correctly handled when appended to host URLs and URL query strings are not removed. * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: (getVersionedUrlUsingQuery) renamed to getVersionedUrl, refactored construction of URL * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: (requestPluginProxyInfo) extracted proxy URI logic. (processProxyUri) new method for finding proxy URIs, handles absolute resource paths correctly * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: added tests for ResourceUrlCreator#getVersionedUrl * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: added tests for PluginAppletViewer.processProxyUri * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.html: new reproducer checks that absolute paths and query strings in resource URLs are properly handled, and caching still works * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.jnlp: same * tests/reproducers/simple/AbsolutePathsAndQueryStrings/testcases/AbsolutePathsAndQueryStrings.java: same
* Introduced logging bottleneckJiri Vanek2013-09-2596-1001/+1583
|
* PR1474: Can't get javaws to use SOCKS proxyOmair Majid2013-09-242-12/+16
| | | | | | | | If there is a SOCKS proxy specified, use it for https, http, and ftp protocols too (as a fallback). 'sameProxy' now affects the https, http and ftp protocols, but not the socket protocol.
* Unit tests for JNLPProxySelectorOmair Majid2013-09-234-14/+13
| | | | | | | | | | This contains one functional change: - String host = uri.getSchemeSpecificPart().split(":")[0]; + String host = uri.getHost(); Given the URI of "socket://example.org", the first line evaluates to "//example.org", while the second one (correctly) evaluates to "example.org".