aboutsummaryrefslogtreecommitdiffstats
path: root/netx
Commit message (Collapse)AuthorAgeFilesLines
...
* 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".
* Unit test for InformationDescOmair Majid2013-09-203-14/+5
| | | | | | Also remove the references to JNLPFile from InformationDesc. This makes it much easier to instantiate InformationDesc for tests.
* Removed java 1.3 comaptible (redundant) code from ParseExceptionJiri Vanek2013-09-181-42/+3
| | | | netx/net/sourceforge/jnlp/ParseException.java: (ParseException) modified to support super call only, (getCause) and both (printStackTrace) removed
* Made temporary files location JFileChooser open at the currently specified ↵Jacob Wisor2013-09-115-5/+16
| | | | | | | | | location Made temporary files location JFileChooser display a helpful title Removed misleading "All Files" file filter from JFileChooser Added new message to resources for JFileChooser's choose button Fixed a few inconsistent messages in resource files
* PR1533: Inherit jnlp.packEnabled and jnlp.versionEnabled like other propertiesOmair Majid2013-09-093-27/+10
| | | | | | | | | | | | | | | | | | | | | | Treat jnlp.packEnabled and jnlp.versionEnabled just like other properties that can be set in one resource element and inherited/filtered in others. 2013-09-09 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/JNLPFile.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. Look up jnlp.packEnabled and jnlp.versionEnabled in any resources element. * netx/net/sourceforge/jnlp/PluginBridge.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): Invoke file.getDownloadResources. (getDownloadOptionsForJar): Remove. * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java (testDownloadOptionsAppliedEverywhere): New method. (testDownloadOptionsFilteredOut): New method.
* Fixed "could not clear cache" message and cache location in CacheReproducerAndrew Azores2013-09-041-1/+1
|
* mergingAndrew Azores2013-09-042-5/+8
|\
| * netx/net/sourceforge/jnlp/Launcher.java - Fix applet context being null ↵Jiri Vanek2013-09-041-0/+2
| | | | | | | | during applet init & start, by Adam Domurad <[email protected]>
| * PR1058: XFileOpenService openMultiFileDialog ClassCastExceptionOmair Majid2013-08-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead of trying to create a privileged proxy for the FileContents[] array, simply create a privileged proxy for each FileContents instance and return an array of them. 2013-08-29 Omair Majid <[email protected]> PR1058 * netx/net/sourceforge/jnlp/services/XFileOpenService.java (openMultiFileDialog): Create a privileged proxy for each FileContents instance and return an array of them.
* | Extracted integer response casting/handling logic in SecurityDialogs to new ↵Andrew Azores2013-09-041-39/+22
|/ | | | method, added test for this method
* Fix and tests for PR974, extension JNLPs unavailable when embedded in HTML ↵Andrew Azores2013-08-153-17/+47
| | | | applet tags
* Cleaned up "throws IOException" from HTMLPanel constructor and try/catches ↵Andrew Azores2013-07-255-29/+13
| | | | elsewhere which handled this
* Added java.vm.name read permission to fix Rhino evaluation of proxy PAC ↵Andrew Azores2013-07-221-0/+7
| | | | (RH982558)
* IcedTea-Web is now following XDG .config and .cache specification(RH947647)Jiri Vanek2013-07-188-30/+253
|
* About dialogue made accessible from pluginJiri Vanek2013-07-175-11/+88
|
* about dialogue now available from itw-settingsJiri Vanek2013-07-172-3/+27
|
* added some missing de and pl stringsJiri Vanek2013-07-174-2/+15
|
* Added entry in NEWS about new About dialog. Fixed localization of News tab ↵Andrew Azores2013-07-121-1/+1
| | | | in AboutDialog.java
* Implemented new about dialogue (by Andrew Azores). Andrew added to authorsJiri Vanek2013-07-108-61/+360
|
* JNLP file is now re-downloading only if is local and have href. Real couse ↵Jiri Vanek2013-06-242-104/+20
| | | | of PR1473
* Added tagsup (optional dependence) as sanitizer for (possibly) invalid xml filesJiri Vanek2013-06-2111-174/+427
|
* Removed out-of date Boot13 classJiri Vanek2013-06-202-101/+0
|
* Made it work with OpenJDK build 25 by creating application as soon as possibleJiri Vanek2013-06-202-1/+6
|
* Silenced deployment.properties and zero size applet exceptions with testsJiri Vanek2013-06-061-1/+6
|
* Fix PR1465 - java.io.FileNotFoundException while trying to download a JAR fileAdam Domurad2013-06-051-1/+14
|
* more detailed hint for CCannotClearCacheJiri Vanek2013-06-041-1/+1
|
* Add NativeLibraryStorageTEstAdam Domurad2013-06-032-7/+23
|
* Extract NativeLibraryStorage class from JNLPClassLoaderAdam Domurad2013-06-032-126/+175
|
* Remove 'serious' from error message in splash screen.Adam Domurad2013-05-291-2/+2
|
* netx/net/sourceforge/jnlp/resources/Messages.properties: (CPJVMitwExec)fixed ↵Jiri Vanek2013-05-141-1/+1
| | | | invalid unicode character
* Fixed indentationJiri Vanek2013-05-031-2/+2
|
* Minor cleanup, fixed output from ResourceTracker and whitelistJiri Vanek2013-05-021-1/+1
|
* Added default, DE and PL localization's tweeksJiri Vanek2013-05-023-44/+116
|
* Fix for portalbank.no (trying get after failed head requests) and testsJiri Vanek2013-05-025-85/+113
|
* Renamed cz locales to be more generalJiri Vanek2013-05-021-0/+0
| | | | | netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties renamed to netx/net/sourceforge/jnlp/resources/Messages_cs.properties tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java and tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java adapted to new cz locales filename.
* Decode local-file URLs lenientlyAdam Domurad2013-04-262-4/+6
|
* Added polish transaltion and tests to itJiri Vanek2013-04-263-38/+576
| | | | Also minor changes to En and De files
* Improved and completed CZ localisationJiri Vanek2013-04-261-43/+140
|
* Fixed regressed unittest and "cause", Fixed compilation under jdk6, Silenced ↵Jiri Vanek2013-04-264-11/+44
| | | | unittests