Commit Graph

27898 Commits

Author SHA1 Message Date
Rom Walton 08b7ed6a41 Updating translations for android/BOINC/res/values-uk/strings.xml [skip ci] 2015-11-18 05:05:11 -05:00
Christian Beer 053a25c62d Merge branch 'master' of github.com:BOINC/boinc 2015-11-18 10:49:57 +01:00
Christian Beer 13a002cb8b Web: fix mysqli DB connection initialization
The mysqli class constructor returns an object even if the connection failed. The only way to find out about a connection failure is to call mysqli_connect_error() after the mysqli object was created.
See: http://php.net/manual/en/mysqli.construct.php#refsect1-mysqli.construct-examples
2015-11-18 10:44:46 +01:00
Rom Walton ecb606b71c Updating translations for locale/it_IT/BOINC-Manager.po [skip ci] 2015-11-18 04:16:52 -05:00
Rom Walton 5df3315093 Updating translations for locale/it_IT/BOINC-Manager.po [skip ci] 2015-11-18 03:53:29 -05:00
Rom Walton 3f9f0fbba8 Updating translations for locale/it_IT/BOINC-Drupal.po [skip ci] 2015-11-17 06:11:16 -05:00
Rom Walton 178d2355d0 Updating translations for locale/it_IT/BOINC-Project-Generic.po [skip ci] 2015-11-17 06:11:14 -05:00
Rom Walton 6e6bf4c7a3 Updating translations for android/BOINC/res/values-it-rIT/strings.xml [skip ci] 2015-11-17 05:30:52 -05:00
Rom Walton 753738d5a2 Updating translations for locale/it_IT/BOINC-Drupal.po [skip ci] 2015-11-17 05:30:50 -05:00
Rom Walton 75d4091d14 make_project: Fix path location issue 2015-11-17 01:07:39 -05:00
Rom Walton 503b94a4f6 make_project: Add some additional comments and fix white space 2015-11-17 00:30:01 -05:00
David Anderson aa11256909 file upload handler: don't include full path in error msgs sent to client 2015-11-16 20:42:45 -08:00
David Anderson 153f6600d0 Server (assimilator): add random string to result file names
Otherwise, result file names can be inferred from result names.
An attacker with task A could find the name of the "wingman" task B,
upload fake files as B's output files,
upload the same files as A's output files,
report A as completed, and get unearned credit.
2015-11-16 19:28:30 -08:00
Rom Walton 582f389f39 lib: Prevent the xml_unescape function from injecting control characters into strings. 2015-11-16 21:37:30 -05:00
Rom Walton 815b708181 make_project: Remove symlinks for the download/stats/user_profiles directories off of html/user. That is handled via the apache configuration now. 2015-11-16 21:14:16 -05:00
Rom Walton 61f8d3dddc make_project: Make sure that scripts cannot be run from the download, stats, and user_profile directories. 2015-11-16 20:23:18 -05:00
Rom Walton 56737cc002 Merge branch 'master' of https://github.com/BOINC/boinc 2015-11-16 15:39:46 -05:00
Rom Walton 914d9f0873 sched: Remove commit ecea18f.
We parse the stuff from xml_doc_in instead of xml_doc_out.  xml_doc_in cannot be modified by anything the BOINC client returns.
2015-11-16 15:39:30 -05:00
Christian Beer 3fc2d41f9a Server: fix sched/start to work with older python version
An issue with unicode strings in python 2.4 and 2.6 (and possibly 2.5) prevents shlex to split the command which leads to the daemon or task not starting. The unicode issue seems to be fixed in python 2.7. The exact error message is: "TypeError: execv() argument 1 must be (encoded string without NULL bytes), not str".

See: https://github.com/vinodc/gitlab-webhook-branch-deployer/issues/1
2015-11-16 13:27:15 +01:00
Rom Walton a89b29a1b0 Updating translations for locale/tr/BOINC-Project-Generic.po [skip ci] 2015-11-15 13:12:00 -05:00
Rom Walton 8e11f75195 sched: Do not create a temp string object just to append a character to a string object. 2015-11-15 11:54:27 -05:00
Rom Walton 0ad62aad64 Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-leiden-queue
2015-11-14 22:49:54 -05:00
Rom Walton 49b671f523 Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-bittorrent
2015-11-14 22:49:04 -05:00
Rom Walton ac7ac7986d Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-rboinc
2015-11-14 22:48:23 -05:00
Rom Walton e79a3838fb Moved source code into a separate repo.
See: https://github.com/BOINC/boinc-dcapi
2015-11-14 22:47:30 -05:00
Rom Walton 43e900b49f make_project: Make sure to turn off access to certain directories if the global configuration defaults to allow access. 2015-11-14 18:40:09 -05:00
Rom Walton 402a5ebff5 Updating translations for locale/it_IT/BOINC-Manager.po [skip ci] 2015-11-14 17:40:55 -05:00
Rom Walton 90f4e92e3e sched: fix compiler warnings 2015-11-14 12:29:42 -05:00
Rom Walton eec9f10460 sched: fix compiler warnings 2015-11-14 12:26:28 -05:00
Rom Walton ecea18f473 sched: Do not trust that the result name embedded within the result output file name is correctly reported by the client.
This opens the validator up to a result name spoofing attack where a bogus client can claim it processed the result reported by a different client for the same workunit.
2015-11-14 12:18:39 -05:00
David Anderson dc94a44bb4 locale: Update compiled localization files 2015-11-13 11:04:32 -08:00
Rom Walton 213fcab52b Updating translations for locale/it_IT/BOINC-Client.po [skip ci] 2015-11-13 04:00:17 -05:00
David Anderson 9ef1ef6a04 Merge branch 'master' of https://github.com/BOINC/boinc 2015-11-13 00:20:07 -08:00
David Anderson 65cc8461a9 Manager: tweaks in task properties 2015-11-13 00:19:37 -08:00
David Anderson 920ee2777c Web: add active/all button in host_app_versions.php 2015-11-12 18:14:47 -08:00
David Anderson 45a27257bf Manager: show zero time intervals as --- rather than 00:00:00 2015-11-12 11:34:08 -08:00
David Anderson 24f62d0190 client, Win: use SetThreadPriority() to lower client priority
We had used SetPriorityClass() for this purpose,
but apparently this is too extreme,
and causes the client to run very slowly; see
http://stackoverflow.com/questions/13631644/setthreadpriority-and-setpriorityclass
2015-11-12 11:28:07 -08:00
Christian Beer 454bd634d9 File upload handler: return the lseek() error
If the printf() or close() calls change errno, the original lseek() error is lost. The logged error would differ from the message send to the client. This amends 005957a.
Suggested by Juha Sointusalo
2015-11-12 13:32:58 +01:00
Rom Walton 74e4025f84 Updating translations for locale/it_IT/BOINC-Web.po [skip ci] 2015-11-12 06:55:06 -05:00
David Anderson 1f599f9ec4 Manager: fix crashing bug
Don't do fprintf(stdout, msg).
If msg contains %, this will crash.
Instead do fprintf(stdout, "%s", msg).
2015-11-11 10:55:51 -08:00
David Anderson 3c8ceb028d client: add config option to not lower client priority
We added code a couple of months ago to lower client priority:
on Win, this is SetPriorityClass(),
which lowers I/O and memory priority as well as CPU.
This has the desired effect, i.e. to reduce the performance impact
of BOINC when it's doing things like copying large files.
However, it means that BOINC can take a long time to start at boot,
which may be disconcerting to some users.
2015-11-11 10:33:24 -08:00
Rom Walton 9fbd4bd4da Updating translations for locale/pt_PT/BOINC-Manager.po [skip ci] 2015-11-11 06:43:54 -05:00
David Anderson f525f0e8ba client: remove CLIENT_STATE destructor; causes crash on Win
There's no reason to destruct anything; we're exiting.
2015-11-11 01:33:14 -08:00
Christian Beer 475fbbeb15 Merge pull request #1427 from BOINC/sched_start_shell
Server: fix behaviour of start script
2015-11-11 08:39:09 +01:00
Christian Beer 5b31d68ec1 Merge pull request #1418 from BOINC/fix_defects_server
Fix Coverity defects in server component
2015-11-11 08:38:03 +01:00
Tristan Olive 3077f0e27d Drupal: Don't require approval of profiles for imported users who don't have profiles
(DBOINC-145)
2015-11-10 21:59:56 -05:00
Tristan Olive 57f88a1009 Drupal: Exclude Drupal admin account from BOINC integration
Since the Drupal account with UID 1 is established automatically and is not imported, it is the one account (along with the pseudo-account for anonymous users) that has no associated account in the BOINC database. Since any lookups will fail, just skip integration in this case.

(DBOINC-145)
2015-11-10 21:39:17 -05:00
Rom Walton cc7af14c0d Updating translations for locale/de/BOINC-Project-Generic.po [skip ci] 2015-11-10 10:22:00 -05:00
Rom Walton 4bdc41e6f3 Updating translations for locale/it_IT/BOINC-Drupal.po [skip ci] 2015-11-10 06:43:40 -05:00
Rom Walton 0d2578e5fe Updating translations for locale/it_IT/BOINC-Client.po [skip ci] 2015-11-10 06:35:00 -05:00