Commit Graph

3883 Commits

Author SHA1 Message Date
David Anderson 5565aa1881 enhance spam deleter; tweak moderation message 2017-03-26 18:49:29 -07:00
David Anderson 7436252a47 change version to 7.7.2 2017-03-25 21:41:28 -07:00
Christian Beer 95af69b395 Locale: Update localization files [skip ci] 2017-03-20 15:15:54 +01:00
David Anderson 6485e50647 DB: add indices to credit_user and credit_team
Should make queries for top items fast.
2017-03-17 11:45:45 -07:00
David Anderson 853de1f5f0 web: code cleanup
Note: the top_*.php pages should be changed so that they cache
the entire 10000 items as a unit.
Otherwise there could be inconsistency.
2017-03-17 11:44:07 -07:00
David Anderson ee3f8f1aa2 Web: paginate user/team lists ordered by per-app credit 2017-03-15 00:59:05 -07:00
David Anderson 61710233cd Project creation: fix a couple of bugs 2017-03-06 11:35:00 -08:00
David Anderson 2b6eff91f6 remove job submission: fixes to query_batch() 2017-03-02 13:38:40 -08:00
UweBeckert 3a9d42e5d8 Update bootstrap.inc
container-fluid uses full window width for the content. Otherwise on big monitors 30% left and right is empty.
2017-03-01 21:38:46 +01:00
David Anderson 0681baad54 remote job submission: add <get_job_details> option to query_batch() 2017-02-25 15:05:14 -08:00
David Anderson 587e98d9db remote file management: fix JobFile::delete() 2017-02-21 09:30:49 -08:00
David Anderson 3f0f36ac5a remote file management: allow long filenames
Originally, the idea for remote file management was that
the physical name of a file was its md5, or jf_md5.
This was changed to let the submitter choose the name.
But in the DB (job_file.md5) we only kept 64 chars.

Change the field name to job_file.name, and change it to varchar(255)
2017-02-17 13:51:30 -08:00
David Anderson 39547c574f remote file management: improve error checking 2017-02-17 12:58:35 -08:00
David Anderson 853f8661b3 web: fix function name for country select 2017-02-16 10:59:56 -08:00
David Anderson eda1699d7c remote job submission: fix from Lucas 2017-02-16 10:59:32 -08:00
David Anderson 52429613bf remote job submission: wrong template path in a certain case 2017-02-16 01:26:10 -08:00
David Anderson 4fd49aab4e remote job submission: create templates/tmp if needed 2017-02-14 14:14:42 -08:00
David Anderson 7db9ecba87 remote job submission: fix error in RPC handler 2017-02-14 01:06:39 -08:00
David Anderson 479cbb6154 web: performance tweak suggested by Scrutinizer 2017-02-12 01:07:20 -08:00
David Anderson 93c46ee5a8 web: user secure URL base if available 2017-02-12 01:03:16 -08:00
David Anderson 1e0631dc87 web: allow user URLs with https://
We need to let users have https:// URLs.
Originally http:// was assumed, and the URLs were stored without the prefix.
For compatibility, allow either form to exist in the DB

Also update the "other account info" form to user bootstrap.
2017-02-12 00:46:15 -08:00
David Anderson b59f0da617 web: if web stopped, get_logged_in_user() should return null (not show error page).
Otherwise e.g. the home page will be a single line.
Must at least show message of the day.
2017-02-08 11:54:40 -08:00
David Anderson 51f73ebce8 web: fix typo 2017-02-03 21:56:53 -08:00
David Anderson 96eb775f06 web: make recaptcha work with IE11
On IE11, pages using recaptcha (like profile edit)
weren't showing the recaptcha.
On reloading, it would appear.
Mysterious.
Anyway, removing the
'<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
fixed the problem.
2017-02-03 21:42:20 -08:00
David Anderson 1b81fecfb3 web: fix recaptcha problem 2017-02-01 22:25:00 -08:00
David Anderson c2350c7f57 web: try to get Recaptcha working on IE 2017-02-01 22:13:21 -08:00
David Anderson dfeeee23da Web: support pages in a subdirectory of html/user/.
... such as SETI@home's Nebula pages.
Prepend URL_BASE to URLs for login/logout/signup.
I may have missed some.
2017-02-01 11:54:10 -08:00
David Anderson a68c2b3842 web: add form_attr(); add key/val pair to form 2017-01-31 21:51:17 -08:00
Christian Beer 624595267c Locale: Update localization files [skip ci] 2017-01-31 17:45:12 +01:00
David Anderson a484b7dd6b Merge pull request #1562 from BOINC/cpu_infos_aarch64
Client: improve CPU and OS detection on Linux
2017-01-31 01:12:55 -08:00
David Anderson bdd259660b remote job submission: fix typo 2017-01-30 16:51:31 -08:00
David Anderson f124bd33f2 remote job submission tweaks
- query_batches(): don't return retired batches
- get_output: for error conditions, return a file containing "ERROR: msg"
2017-01-30 16:31:33 -08:00
David Anderson 863ae7331a remote file management: fix typos found by Scrutinizer 2017-01-29 12:37:17 -08:00
David Anderson 0b6cb9e0d5 input file management: standardize creation of .md5 files
Files in the download dir can have accompanying ".md5" files
containing their MD5 and size.
This eliminates the need to calculate these when creating a job using the file.

The .md5 files were being created by stage_file (local staging)
but not by remote file management.
In fact, the latter wasn't checking for file immutability violations.

I changed remote file management to add this check,
and to create the .md5 file.
The latter is done in a new function shared with stage_file.
2017-01-29 11:54:18 -08:00
David Anderson 030069c36a remove job submission: don't require the presence of an input template file
If jobs specify their own input templates, shouldn't have to have one
2017-01-28 01:25:12 -08:00
David Anderson 23a43c7c5d remove file management: fixes; add python interface to query_files 2017-01-27 14:21:03 -08:00
David Anderson e2d09f3de7 remote job submission: bug fix 2017-01-27 12:35:35 -08:00
David Anderson e93e436b5a remote job submission: don't error out if no templates specified 2017-01-27 11:43:52 -08:00
David Anderson 27018ca2a8 remove file management: fix typos 2017-01-25 17:39:31 -08:00
David Anderson 01533dc9e4 remote file management: bug fixes
- The RPC handler was expecting the "BOINC names" to be the file MD5.
  This is no longer true; the BOINC name can be anything as long as it's unique.
- To reflect this, use <phys_name> instead of <md5> in request messages.
  This means that you'll need to update both RPC client and server software.
- BoincJobFile::insert() needed to return the insert ID
2017-01-25 16:17:42 -08:00
marius 91d6701cb3 fixed PHP warnings when submitting forum preferences 2017-01-24 14:02:51 +01:00
David Anderson b3995e20c0 web: add bootstrap checkbox function 2017-01-23 21:37:30 -08:00
David Anderson e95214371e remote job submission: typo fix 2017-01-21 12:32:02 -08:00
David Anderson 381e0caf14 Remote job submission: add support for per-job templates in submit requests
This supports the TACC use case,
in the jobs in a batch can use different Docker images
and different input and output file signatures,
none of which are known in advance.

Python API binding:
    - A JOB_DESC object can optionally contain wu_template and result_template
        elements, which are the templates (the actual XML) to use for that job.
        Add these to the XML request message if present.
    - Added the same capability to the PHP binding, but not C++.
    - Added and debugged test cases for both languages.

    Also, submit_batch() can take either a batch name (in which case
    the batch is created) or a batch ID
    (in which the batch was created prior to remotely staging files).

RPC handler:
    - in submit_batch(), check for jobs with templates specified
        and store them in files.
        For input templates (which are deleted after creating jobs)
        we put them in /tmp,
        and use a map so that if two templates are the same we use 1 file.
        For output templates (which have to last until all jobs are done)
        we put them in templates/tmp, with content-based filenames
        to economize.
    - When creating jobs, or generating SQL strings for multiple jobs,
        use these names as --wu_template_filename
        and --result_template_filename args to create_work
        (either cmdline args or stdin args)
    - Delete WU templates when done

create_work.cpp:
    handle per-job --wu_template and --result_template args in stdin job lines
    (the names of per-job WU and result templates).
    Maintain a map mapping WU template name to contents,
    to avoid repeatedly reading them.

    For jobs that don't specify templates, use the ones specified
    at the batch level, or the defaults.
2017-01-21 00:24:11 -08:00
David Anderson 58f437592d web: fixed URL of BOINCstats in 3 places 2017-01-14 21:47:45 -08:00
David Anderson 06be40e8f0 Web and web RPCs: add 5-second delay if password error
Slow down hackers trying to guess passwords
2017-01-12 13:19:01 -08:00
David Anderson 96ebcbff94 PHP binding of web RPCs: use Curl instead of file_get_contents()
That latter doesn't support HTTPS in my version of PHP
2017-01-12 13:17:55 -08:00
David Anderson 79fa97cfe3 web: if mkdir fails, show the path in error msg 2017-01-09 11:46:51 -08:00
Christian Beer 93cbda67fd Merge branch 'master' into cpu_infos_aarch64
Retained changes from a788dba8.

Conflicts:
	lib/str_util.cpp
2017-01-06 14:56:16 +01:00
David Anderson 31a95ba10f client: add option to use SOCKS5 for DNS
Added <socks5_remote_dns> option to cc_config.xml.
Tells Curl to use the SOCKS proxy for domain name resolution.
2017-01-05 21:34:34 -08:00