Commit Graph

31231 Commits

Author SHA1 Message Date
Juha Sointusalo fb16e55293 client: show build not OS platform in messages
The client shows what kind of operating system it has detected in startup log message and elsewhere. This is confusing and not helping in troubleshooting when people expect these messages to describe the client itself.

Change the messages to use client's build platform instead.

Startup log message, output of --version and user agent string should be safe to change without breaking anything. The client still uses OS platform in various places but changing these would break stuff:

- Scheduler request XML. Scheduler expects scheduler_request.platform_name to be OS primary platform.
- client_state.xml. Client writes OS primary platform and alt platforms separately to client_state.xml. The client reads primary platform only to see if it has changed. The client doesn't read alt platforms but some other program might and depends on the platforms being as they are now. Not changing this means the client won't be able to detect when its own platform has changed. OS platform changes are still detected.
- get_state GUI RPC. The client writes primary platform to client_state.platform_name and all platforms, including primary, to client_state.platform. BOINC Manager only reads client_state.platform. As such, client_state.platform_name could be changed to client's build platform but some 3rd party manager might depend on it being OS primary platform.
- time_stats_log. The client writes platform info there. Unclear who uses that information.

Closes #2386.
2018-03-30 11:23:11 +03:00
Shawn Kwang d0b0031875 Drupal: Altered wording to be more clear. 2018-03-29 15:45:27 -05:00
tristanolive 133abaadf4
Merge pull request #2425 from drshawnkwang/drupal_feature_userroles-forums
Drupal: Added user roles to forum user info, below username and stats.
2018-03-29 10:05:20 -04:00
tristanolive 756b04b836
Merge pull request #2423 from drshawnkwang/drupal_fix-bug-readonlydb
Drupal: Changed db_set_active to use proper database name.
2018-03-29 09:35:43 -04:00
CharlieFenton 1c38628f95
Merge pull request #2420 from JuhaSointusalo/mgr-per-thread-locale
lib, mgr: use per-thread locale on Linux
2018-03-29 02:16:31 -07:00
David Anderson ac474dbafd
Merge pull request #2431 from serval2412/master
cppcheck: printf format string
2018-03-28 12:10:39 -07:00
Julien Nabet 32253c3e30 cppcheck: printf format string
[sched/target_batch.cpp:182]: (warning) printf format string requires 1 parameter but 2 are given.
2018-03-28 18:01:14 +02:00
Kevin Reed 5c5267f28c
Merge pull request #2405 from BOINC/dpa_am_auth
let AMs use authenticators instead of name/password
2018-03-28 10:45:58 -05:00
Kevin Reed de11733ba2
Merge pull request #2426 from BOINC/dpa_web_rpc
create_account web RPC: improve parsing and error handling
2018-03-28 10:08:22 -05:00
Juha Sointusalo 50a79e0f34 build: remove NO_PER_THREAD_LOCALE stuff
NO_PER_THREAD_LOCALE has been replaced by HAVE__CONFIGTHREADLOCALE and
HAVE_USELOCALE.

Also remove HAVE_DECL__CONFIGTHREADLOCALE which was used only for
NO_PER_THREAD_LOCALE.
2018-03-28 16:21:33 +03:00
Juha Sointusalo f97421a735 mgr: remove SET_LOCALE from DlgDiagnosticLogFlags.cpp
SET_LOCALE is no-op when using per-thread locales making SET_LOCALE
unnecessary.

When per-thread locales are not available using SET_LOCALE in
CDlgDiagnosticLogFlags can cause Manager to get stuck to C locale. The
lifetime of two SET_LOCALE objects can be interleaved if log flags are
loaded or saved and an async RPC is launched at the same time. If the
lifetimes are interleaved the first object sets global locale to C. The
second object saves the global locale that was set to C by the first
object. First object restores the global locale correctly. After that
the second object incorrectly restores the global locale to C.
2018-03-28 16:21:33 +03:00
Juha Sointusalo 450f89ec39 lib, mgr: use per-thread locales on Linux
On Linux, Manager sometimes prints timestamps in C locale instead of the
locale user has chosen. This happens when Manager is formatting a
timestamp and at the same time a GUI RPC is in progress. GUI RPCs
temporarily set the global locale to C locale with SET_LOCALE.

Use SET_LOCALE's per-thread locale version and set thread locale in
Manager's RPC thread to fix this.

Also clean up #ifdef mazes in SET_LOCALE and Manager's RPC thread now
that there are HAVE_* macros available. Remove OS X < 10.4 code because
that old OS X versions are not supported any more.

Fixes #2399.
2018-03-28 16:20:15 +03:00
Kevin Reed 7579067918
Merge pull request #2427 from BOINC/dpa_email_msg
web: use "name@xxx.yyy" instead of "name@domain" to show form of emai…
2018-03-28 08:19:17 -05:00
Juha Sointusalo 6e2204c082 build: check for per-thread locale support
Allows fixing and cleaning up per-thread locale support in Manager and
libboinc.

locale.h and xlocale.h were checked for libboinc_graphics. Move
xlocale.h check to correct place and remove locale.h check. locale.h has
been part of C standard library since C89.

The support for per-thread locales cannot be reliably inferred from the
existence of different headers. Some systems declare uselocale() in
locale.h, others in xlocale.h and xlocale.h is no longer included in GNU
libc. Instead explicitly check for uselocale() and
_configthreadlocale().

Add uselocale() check result to Mac config.h so that the #ifdef mazes
can be simplified.

Also correct quoting in AC_CHECK_FUNCS and AC_CHECK_HEADERS calls.
2018-03-28 16:07:54 +03:00
Jord van der Elst d6791bf3bd
Update Code of Conduct to include link to Governance document
Forgot to add the link to the Governance document, thanks for that catch, Kevin.
2018-03-27 23:59:13 +02:00
Jord van der Elst 9bc929e0e2
BOINC Github Code of Conduct 2018-03-27 22:35:43 +02:00
Jord van der Elst d3d54c0e4e
Delete CODE_OF_CONDUCT.md 2018-03-27 22:35:04 +02:00
Jord van der Elst 83958d8311
Add files via upload 2018-03-27 22:34:34 +02:00
David Anderson 635cd537be web: use "name@xxx.yyy" instead of "name@domain" to show form of email addr.
Users may not know what "domain" means.
Also don't use "name@gmail.com"; they'll think they need a gmail addr.
2018-03-27 13:11:05 -07:00
David Anderson 9dccb7831d create_account web RPC: improve parsing and error handling
Projects with old server code reply with PHP warnings
interspersed with the XML.
Parse these replies manually.
2018-03-27 13:07:40 -07:00
Alexander Schlarb 4f704e9df1 Android: Improve quality of build scripts
* Make build scripts fully whitespace safe to the extend premitted by autotools
 * Let all build scripts fail fast on error, previously they would continue and then fail with spurious follow-up errors burrowing the actual issue
 * Ensure that all build scripts start with a valid shebang (`#!`)
 * Fix jumbled letters in `android/build_build_app_x86.sh`
2018-03-27 21:51:06 +02:00
Shawn Kwang 3ada381c7e Drupal: Added user roles to forum user info, below username and stats.
https://dev.gridrepublic.org/browse/DBOINCP-253
2018-03-27 11:55:16 -05:00
Shawn Kwang 19bc4def77 Drupal: Changed email templates for user registration, activation, password reset, etc.
https://dev.gridrepublic.org/browse/DBOINCP-431
2018-03-27 11:51:30 -05:00
Shawn Kwang ba4fd883ee Drupal: Changed db_set_active to use proper database name.
part of https://dev.gridrepublic.org/browse/DBOINC-60
2018-03-27 10:06:24 -05:00
Alexander Schlarb 3ee7631354 Android: update order of binary search path in build scripts
* `PATH` environment was: `export PATH="$PATH:$TCBINARIES:$TCINCLUDES/bin"`
 * If system `libcurl-dev` (Debian) is installed its `curl-config` script will be first in `PATH`
 * `./configure` will choose the system `curl-config` and fail to compile
2018-03-23 18:10:01 +01:00
Juha Sointusalo 50e8f9eac0
Merge pull request #2406 from versat/patch-1
Fix buffer size for call of function GetWindowText
2018-03-23 18:19:18 +02:00
Kevin Reed e48bb4a7cd Merge branch 'master' into knr_passwd_hash 2018-03-22 12:55:13 -05:00
Kevin Reed 0ba3d607d5
Merge pull request #2394 from BOINC/dpa_passwd5
web: improve - but not fix - password visibility checkbox
2018-03-22 12:51:23 -05:00
Kevin Reed 5f7cbdb2a7
Merge branch 'master' into dpa_passwd5 2018-03-22 09:28:01 -05:00
Kevin Reed 2c047c464e
Merge pull request #2417 from BOINC/dpa_https
Web: use https links to BOINC web site in default project config
2018-03-22 08:07:27 -05:00
Kevin Reed 87a9fd6149
Merge pull request #2419 from lfield/patch-4
Default working directory changd to /var/lib/boinc
2018-03-22 08:06:41 -05:00
Kevin Reed 1531b3b9df
Merge pull request #2418 from BOINC/mac_fix_computing_prefs_dlg
Mac: Fix wxWidgets 3.1.0 Mac-only bug when wxStaticBox has no label
2018-03-22 07:54:04 -05:00
lfield 344ddabeb4
Default working directory changd to /var/lib/boinc
This change should got into the 7.10 client release.
2018-03-22 10:50:25 +01:00
Charlie Fenton cb45ab59d2 Mac: Fix wxWidgets 3.1.0 Mac-only bug when wxStaticBox has no label (this bug has been fixed in wxWidgets 3.1.1) 2018-03-20 02:01:28 -07:00
David Anderson 1194bab1e3 Web: use https links to BOINC web site in default project config 2018-03-19 20:11:31 -07:00
David Anderson 42979fc8f9 remote job submission: add optional "job params" for batchs
This lets you specify the rsc_* parameters and delay bound in the submit call.
2018-03-18 23:25:26 -07:00
tristanolive 20b634b0fd
Merge pull request #2408 from drshawnkwang/drupal_fix-prefxmltrim
Drupal: Trim strings in project-specific XML to help translators.
2018-03-15 10:49:40 -04:00
tristanolive 8c7c645b1d
Merge pull request #2407 from drshawnkwang/drupal_feature-deleteteam-utility
Drupal: Add team  delete utility for SPAMMER teams
2018-03-15 10:44:21 -04:00
Shawn Kwang 9a7627c9e8 Drupal: Trim strings in project-specific XML to help translators.
Add custom trim function to code where the strings in the project-specific XML are aded to translation table(s).
Custom function removes whitespace from beginning and end of each line, separated by newline.

https://dev.gridrepublic.org/browse/DBOINCP-418
2018-03-14 10:27:51 -05:00
Shawn Kwang e4414e1e90 Drupal: Fixed minor scrutinizer issues in PHP. 2018-03-14 09:06:30 -05:00
Shawn Kwang dd4a0e969e Drupal: Added misc help text. 2018-03-14 08:25:06 -05:00
Shawn Kwang 5f2d678c1f Drupal: Fixed bugs.
Fixed link to teams, use relative URL.
Added link in message to site maintenance admin page.
2018-03-14 08:12:43 -05:00
Shawn Kwang 2686231299 Drupal: Add boincteam utility to delete spammer teams.
Adds an admin page where the admin may select and delete teams that meet a certain SPAMMER criteria. Deletion is handled through drupal batch operation.

https://dev.gridrepublic.org/browse/DBOINCP-364
2018-03-14 08:12:43 -05:00
David Anderson fcd2ffa1a9
Merge pull request #2395 from BOINC/knr_passwd5
Add 'show password' to join and change password pages
2018-03-13 23:06:43 -07:00
Kevin Reed 1ceb1e3a24 web: Fix style incompatibilities 2018-03-13 16:49:14 -05:00
Kevin Reed ea6f2c35ac web: Once hashed a password does not need to be escaped when inserting
it into the database
2018-03-13 16:23:27 -05:00
Sebastian 50e743d80f
Fix buffer size for call of function GetWindowText
Cppcheck found this issue: Multiplying sizeof() with sizeof() indicates a logic error.
GetWindowText expects the number of characters (3. argument) that fit into the buffer (2. argument).
So a division seems to be correct here instead of a multiplication.
2018-03-13 12:50:59 +01:00
David Anderson 13b9783c27 get_project_config.php: say whether account manager 2018-03-09 22:15:03 -08:00
David Anderson 40dccf9168 client: debug use of authenticators with account managers 2018-03-09 21:55:45 -08:00
David Anderson 99fbb26598 client: if account manager sends auth, use that instead of name/passwd
Previously, the credentials in account manager requests
were login name and password hash.
We need to keep this for compatibility with BAM and GR,
but it has problems:
- users can't change AM password
- password hash is stored on client and sent with each AM request

Solution: AM reply can include authenticator instead of name/passwd.
If so, store and use that.

Also: login_token_lookup.php needs to return auth instead of weak auth,
for both projects and AMs.
Weak auths are invalidated when user changes password.
2018-03-09 15:37:33 -08:00