Commit Graph

419 Commits

Author SHA1 Message Date
Michael Bayne 201c5b03c7 Another patch from Elias: avoid CME when setting pass-through properties. 2007-08-06 18:50:57 +00:00
Michael Bayne f7e0726a5c Patch from Elias to close stdin and stdout of our launched process. If we had a
Win98 machine around we could test whether closing stderr prevents the buffer
fill-up deadlock that necessitates leaving the Getdown process around to read
stderr on that platform, but I vaguely recall having tried that and having it
not work.
2007-08-04 23:57:57 +00:00
Mike Thomas 92d61bca41 Japanese getdown translations. 2007-07-25 20:30:16 +00:00
Michael Bayne 1e4f8fdcab Added LaunchUtil.updateVersionAndRelaunch() to give external Getdown users some
idea of how to actually do that. Widened. Changed logging to standard Java
style.
2007-04-20 00:21:38 +00:00
Michael Bayne a2eeb0e769 The new signature validating code was failing to close its files properly which
was causing some freakout.
2007-04-13 20:50:39 +00:00
Michael Bayne 3b6e48e7a9 Reinstate the "move the old file out of the way then move the new file in
place" Windows-friendly rename and try that before falling back to the brute
force copy (which risks failing due to a full disk and leaving us with a
corrupt file rather than just an out of date one).
2007-04-13 20:50:12 +00:00
Michael Bayne 573314875b Widened. 2007-04-13 20:47:04 +00:00
Michael Bayne 424aa5cd24 Fall back to renames by copying if normal renaming fails as Windows XP decided
today that renaming is no longer allowed (at least in the directory in which
we're installing our games). Also nixed the old JavaScript bridge stuff which
we no longer use and was flaky in the first place.
2007-04-13 18:48:23 +00:00
Dave Hoover f62ebb1bfa Keyword substitution. 2007-04-07 00:19:43 +00:00
Michael Bayne 707d36aac7 Modified Getdown to use a signature on the digest.txt file instead of a
signature on the applet parameters, to verify that the signed applet version is
not being misused.
2007-04-05 02:10:21 +00:00
Mike Thomas 19013958c6 m.init_error only takes two args, and they're supposed to be the error description and the installation help URL. This was resulting in confusing error messages when getdown fails to do its update on Vista. 2007-03-28 00:08:53 +00:00
Mike Thomas fd9834d051 Allow specification of a tracking URL suffix to be added after the event name. 2007-03-25 07:28:31 +00:00
Michael Bayne 782d3e4e84 A bit of rearrangement. Let's have all the actual tracking logic take place in
the launcher and let the Application continue to serve largely as an interface
to our configuration information.
2007-03-23 21:46:54 +00:00
Mike Thomas 849c119227 Allow the specification of a cookie name and property to fetch its value from for tracking URLs. Clientstep needs this so we can identify the user and correlate with their other events. 2007-03-23 16:57:04 +00:00
Michael Bayne 29b8e875de Progress reporting fixes. 2007-03-14 19:09:00 +00:00
Michael Bayne 7e61bbdf90 Added support for requesting external tracking URLs during the download
process. This will replace the flaky Applet -> JavaScript bridge but first
needs some testing.
2007-03-14 02:05:22 +00:00
Michael Bayne e5f8d8478a Minor tweaks. 2007-02-22 23:59:17 +00:00
Mike Thomas d12e85bea6 Fix path for Vista's use so the security manager doesn't bite us. 2007-02-22 23:48:49 +00:00
Michael Bayne 4341710e18 Ignore cruft at the end of the version string. 2007-02-22 19:21:52 +00:00
Michael Bayne 66eea86039 Handle versions of the form 1.5.0 as well as 1.5.0_05. 2007-02-09 20:09:14 +00:00
Michael Bayne ed74fd67ee We may be having problems where we know about one JSException class and the VM
is throwing another and they don't end up matching. Let's just catch any
exception thrown when trying to propagate status to JavaScript and log it.
2007-02-07 21:30:13 +00:00
Michael Bayne 371f680ba0 Prevent digester from freaking out on java_location. 2007-02-04 00:54:46 +00:00
Michael Bayne 47e3bec864 Created ant task for generating signed applet parameters. 2007-02-04 00:16:29 +00:00
Michael Bayne 67ed6fea56 If any of our signatures match, then we're good to go. Further investigation is
needed to make sure this isn't badness but for whatever reason all of a sudden
it started trying to check our applet signature against Thawte's cert signing
cert which did not work.
2007-02-01 03:23:09 +00:00
Michael Bayne 5aa5de0aa0 Regenerate the classes.jsa file so that our locally installed Java can launch
with the same (emacs-like) fastness as a standard Java install.
2007-02-01 02:23:47 +00:00
Michael Bayne a2adc382a3 Provide support for automatically downloading and installing a local Java
version from within Getdown if the user does not have the desired version for
the application.

This does not yet support upgrading a locally installed version of Java, right
now it assumes that if we have a locally installed version, it's good enough.
We can make that do the right thing too, later.
2007-02-01 01:41:58 +00:00
Michael Bayne 62ea52f83b Don't build our differ if we don't have javaws.jar; fixed some deprecated
CopyUtils usage.
2007-01-25 22:38:07 +00:00
Michael Bayne 1455088ac3 Cleaned up the applet initialization process. If we are not granted privileges,
we will not display our background image because will be unable to read the
necessary metadata that tells us where to display status on that image. Also
clarified the language a bit in the "user failed to grant is privileges" case.
2007-01-24 03:19:13 +00:00
Michelle 67e324e417 Added a few newlines so the digital signature error message doesn't show up right over our YPP logo 2006-12-19 21:17:17 +00:00
Elizabeth Fong c97a86d47b corrected missing import 2006-12-18 19:59:33 +00:00
Elizabeth Fong 1efeb4311b don't fatally bail out if calling a JS method fails. 2006-12-18 19:45:37 +00:00
Elizabeth Fong 1edb7950d3 Fail a tiny bit more gracefully if the user rejects the signing certificate. 2006-12-18 09:35:31 +00:00
Michael Bayne 6c5918b3c2 Include stub versions of the Java->JavaScript bridge interface so that we
compile properly and we'll link against the real deal at runtime.
2006-12-15 02:57:13 +00:00
Elizabeth Fong 0236092f1d Add in support for doing JS callbacks of progress 2006-12-15 01:09:20 +00:00
Mike Thomas 83b5b5923c Can't use String.replace since it's a 1.5ism. 2006-12-05 21:38:47 +00:00
Mike Thomas 93f82f372f Readability improvements as per MDB's suggestions. 2006-12-05 17:40:00 +00:00
Mike Thomas b3737c2b49 When loading images, have getdown looking for a localized version of the files, but then fall back to the generic ones. 2006-12-05 00:02:55 +00:00
Elizabeth Fong 065204a3f1 updated getdown messages in german from Hagen 2006-11-23 22:34:38 +00:00
Elizabeth Fong 8a3ea897cf put back the signature checking in getdown now that I know it's not the culprit 2006-10-22 19:26:49 +00:00
Elizabeth Fong 323ca2e3ee and explicitly set safe to be true 2006-10-19 23:31:58 +00:00
Elizabeth Fong adb0ee9b1e Oh god, something's gone wrong with MSIE and the signature validation. Pull it out. 2006-10-19 21:13:28 +00:00
Elizabeth Fong 5644e62dc5 Don't NPE if properties param isn't set; allow overriding torrent behavior for testing 2006-10-19 20:39:02 +00:00
Elizabeth Fong cd02c01f30 add property pass-through support, directly check on Snark's completion 2006-10-19 16:43:19 +00:00
Elizabeth Fong 913d5d798e update for SnarkShutdown constructor change 2006-10-18 21:45:40 +00:00
Ray Greenwell 27f7bdb390 Report 0% done if the _totalSize is 0, because it's better than
reporting 2147483647% done.
The real problem here is that the TorrentDownloader never sets _totalSize.
2006-08-25 18:36:46 +00:00
Elizabeth Fong 14d823a930 remove debug logging 2006-08-20 09:50:07 +00:00
Elizabeth Fong c92e372d39 prevent hijacking of signed Getdown to run malicious code; greater torrent download speed tolerance 2006-08-20 09:45:21 +00:00
Elizabeth Fong a98376a2f7 fix the Ice 404 and production 247,143,675,456 percent complete bugs; get bittorrent fully working 2006-08-17 12:44:15 +00:00
Elizabeth Fong ed118c0ffa fix 1.5ism 2006-08-02 00:57:08 +00:00
Elizabeth Fong 05eb7a6109 better document behavior of bittorrent fudge factor code 2006-07-28 18:20:15 +00:00