David Anderson
a259991c7a
Fix bugs in content-based file management system
...
- stray return in compute_boinc_name()
- BoincJobFile::delete() was wrong
- error-check DB record deletions
2016-07-24 22:55:33 -07:00
Christian Beer
617f2d578b
Tools: update modules list to check for
2016-05-25 12:28:11 +02:00
Christian Beer
e3f5d6cecf
Tools: fix typos in error message
2016-05-25 12:25:42 +02:00
Christian Beer
d6f2846a73
Tools: add check for required cmdline tools
2016-05-25 12:23:53 +02:00
Christian Beer
50dbb2e01f
Tools: remove trailing white-space
2016-05-25 12:21:43 +02:00
Christian Beer
b91f5167f2
Merge pull request #1547 from drshawnkwang/feature_checkperm
...
Feature checkperm - checks permissions of apache user and presence of php modules
2016-05-25 11:41:52 +02:00
Shawn Kwang
4a9c352e2e
Added mysqli php module to the list of modules to check
2016-05-23 09:04:16 -05:00
Christian Beer
4787140f79
Merge pull request #1513 from BOINC/found_copy_file
...
create_work: use file_name as open_name when copy_file is set
2016-05-23 15:57:16 +02:00
Shawn Kwang
9e7bfa88ca
Changed mkdir2 function to check if directory already exists, and updated it to raise an exception if there is a problem otherwise.
...
Added some text for the enduser to change apache 2.4 conf and add the project name and copyright holder.
2016-05-20 12:57:51 -05:00
Shawn Kwang
2f98a14301
fixed bug in indentation
2016-05-20 11:13:16 -05:00
Shawn Kwang
4575b87b4a
Updated check_project script to include php module checks
2016-05-20 10:57:44 -05:00
Shawn Kwang
c24ae42a9a
version1 of check_project script, checks to see if certain directories are writable by apache Web server user
2016-05-16 11:28:33 -05:00
Shawn Kwang
b9a1338b5a
bug 1528: change script to use short hostname for config.host. URLs should still be FQDN
2016-04-20 10:42:53 -05:00
Christian Beer
c57cee5ca6
create_work: use file_name as open_name when copy_file is set
...
If no open_name is specified in a file_ref element of the input template but copy_file is set for this file use the physical filename as logical filename.
2016-03-23 14:59:49 +01:00
marius
d6d5c2610a
dont add example_app to project.xml unless requested
2016-03-13 23:43:24 +01:00
funkydude
71831ee639
Expand usage of HTTPS and fix a few URLs
2016-03-08 20:04:28 +00:00
David Anderson
90cb8b9580
update_versions: fix bug that choked on <foo>1</foo> XML boolean
2015-12-23 17:16:31 -08:00
David Anderson
2eabe3eab8
server: fix typo in result file name generation (from Keith)
2015-11-20 13:19:18 -08:00
David Anderson
6b81b0e63b
server: provide access to output file names without random part
...
- add random substring as "_r123123"
- add function remove_random_from_filename() that removes
the random substring from an output filename
2015-11-18 13:42:06 -08:00
Rom Walton
f660d9dd62
Revert "server: Refine 153f660
so that it reverts back to the original behavior by default."
...
This reverts commit 3cecde776b
.
2015-11-18 15:40:22 -05:00
Rom Walton
2404092894
server: fix build break.
2015-11-18 13:53:10 -05:00
Rom Walton
0a63f1b05c
server: remove automatic assignment of the result.random field. Reverts back to previous behavior.
2015-11-18 13:49:43 -05:00
Rom Walton
3cecde776b
server: Refine 153f660
so that it reverts back to the original behavior by default.
...
Introduce a new template macro <RANDFILE_*/>. This will inject a random number into the result file names making them hard to guess.
2015-11-18 13:30:57 -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
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
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
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
Christian Beer
5f9ac9a0bc
use safe_strcpy to prevent buffer overflow
...
fixes CID 27767, 27778 found by Coverity
2015-10-22 15:21:06 +02:00
Christian Beer
bb6ded7975
use safe_strcpy to prevent buffer overflow
...
fixes CID 27777, 27797 found by Coverity
2015-10-22 15:08:08 +02:00
Christian Beer
1b5f48a8f8
use safe_strcpy to prevent buffer overflow
...
fixes CID 27894 found by Coverity
2015-10-22 15:02:20 +02:00
Christian Beer
d160bb371b
ignore time of check to of use defect
...
This is intentional and only an issue if multiple work generators are creating input files that have the same name but different content.
Ignores CID 27922, 27993 found by Coverity
2015-10-22 14:44:23 +02:00
Christian Beer
851412a5ec
use snprintf to prevent buffer overflow
...
fixes CID 27969, 28010, 28027 found by Coverity
2015-10-21 17:27:19 +02:00
Christian Beer
e2508a0d36
use snprintf to prevent buffer overflow
...
fixes CID 27939 found by Coverity
2015-10-21 17:01:12 +02:00
Christian Beer
145942cbb3
use safe_strcpy to prevent buffer overflow
...
fixes CID 27938 found by Coverity
2015-10-21 16:59:32 +02:00
Rom Walton
cb340c533c
Merge pull request #1371 from marius311/master
...
new `make_project` options which allow building and running project on different systems
2015-07-24 07:18:15 -04:00
David Anderson
8cd8c8e7ee
server software: handle 64-bit database IDs
...
The SETI@home result table is about to run out of 32-bit IDs,
so we need to move to 64-bit result IDs.
This will happen to the workunit table at some point too.
I changed the server C++ code to use the "long" type for all DB IDs
(and to use appropriate conversion codes like %lu).
"long" is 64 bit on 64-bit machines.
For uniformity I did this for all tables,
even ones (like app) that will never get big.
I chose NOT to change the DB schema for now.
The new code will work with 32-bit ID fields in the DB.
As projects approach the 32-bit limit on a table they can change
its ID field, and fields that reference this table, to BIGINT.
This is likely to happen only on the result and workunit tables.
I put functions in html/ops/db_update.php
to change the IDs of these tables.
2015-07-23 10:11:08 -07:00
marius
add497f1f6
added --project_host option to make_project
2015-07-20 16:45:30 -07:00
marius
d384489952
added --no_db option to make_project
2015-07-20 15:46:52 -07:00
David Anderson
9988c831e1
make_project: don't do update_stats by default
2015-07-10 00:02:29 -07:00
David Anderson
84259c408f
xadd: replace Python script with PHP equivalent
...
The python version was failing cryptically.
For scripts that access the DB, I'd like to move from Python to PHP,
so that we have one less DB layer to maintain.
2015-06-27 13:31:03 -07:00
Rom Walton
f8d2cfdff3
tools: Fix typo in make_project.
2015-06-08 23:06:21 -04:00
David Anderson
c3efe4fe44
make_project: comment tweak
2015-04-15 21:58:14 -07:00
David Anderson
f81105f707
create_work: show DB error messages
2015-04-13 23:58:59 -07:00
David Anderson
e5d845dad2
create_work: add --continue_on_error option
2015-03-17 09:45:27 -07:00
David Anderson
51b3e05fd1
create_work: add --verbose option
2015-03-16 14:16:27 -07:00
David Anderson
a7a05ca184
stage_file: add --verbose option
2015-03-16 13:58:08 -07:00
David Anderson
35950cf193
stage_file: if arg is a dir, stage all files in that dir
2015-03-11 12:26:24 -07:00
David Anderson
e4172f1535
update_versions: fix bug related to MYSQLI changes
...
PHP tools now need chdir into html/inc before including DB-related files
2014-09-28 01:47:59 -07:00
David Anderson
2d99dccc2e
update_versions: fix bug when have > 1 URLs for file
2014-09-19 08:48:19 -07:00