Rom Walton
2cc9a0b6c4
client: Cleanup low hanging fruit with regards to cleaning up sprintf.
...
Use snprintf instead.
2016-02-18 00:59:13 -05:00
Rom Walton
20a4275937
client: Cleanup low hanging fruit with regards to cleaning up strcpy and strcat use.
...
Use safe_strcpy and safe_strcat when dealing with non-pointer data types.
2016-02-16 00:14:52 -05:00
Christian Beer
5027e948d4
initialize fields in constructors
...
fixes CID 27927 found by Coverity Scan
2015-10-20 15:27:36 +02:00
Charlie Fenton
ec56385037
client: fix compiler warning (unused inline function)
2015-03-09 05:58:32 -07:00
Julien Nabet
d75222ebf3
cppcheck: Prefer prefix ++/-- operators for non-primitive types
2015-01-14 21:18:29 +01:00
David Anderson
d62825fb21
Client: don't XML-unescape notice bodies when reading from file
...
There's no need for this since the bodies are stored in CDATA.
Doing so causes a bug:
if a notice body contains an entity (like &)
and we get the same notice from an RSS feed,
the 2 notices are treated as separate
since the old copy is unescaped and the new one isn't.
2014-10-28 13:34:46 -07:00
David Anderson
bfa0a81a7b
client: if a project's app_config.xml has no errors, remove old notices
2014-08-31 13:32:12 -07:00
David Anderson
df53b4591d
client: don't assume that notices with same GUID are identical; a project may have edited a news item.
2014-07-10 20:46:47 -07:00
David Anderson
aca1aead5f
server: shuffle code so that the file upload handler doesn't need MySQL
...
Also (client): remove notices about app_config.xml after problem is fixed
2014-06-17 18:07:45 -07:00
David Anderson
527896ca4c
Win compile fixes
2014-06-16 18:58:55 -07:00
David Anderson
510d81807f
client: remove notices if user fixes errors in cc_config.xml
2014-06-16 18:19:03 -07:00
David Anderson
009f884578
GUI RPC: include is_youtube_video flag in notice struct.
...
This is set if the notice text includes "youtube.com", case-insensitive.
2014-06-10 14:04:40 -07:00
David Anderson
d78d445789
client: delete per-project files when detach project
2014-05-29 10:40:03 -07:00
David Anderson
f417469db4
Client: fix bug in removal of "can't do work" notices
2014-02-20 12:54:27 -08:00
David Anderson
e5a7120dfb
Client: remove "can't get work" notices that don't apply anymore; make notice text translatable
2014-02-10 17:52:53 -08:00
David Anderson
0276ea6a2a
Client: if have a non-English language, set ACCEPT_LANGUAGE in all HTTP requests
2013-12-11 00:35:03 -08:00
David Anderson
8f7e94ec5d
Client and Manager: make notices translatable
...
- Add a GUI RPC ("set_language") that lets the Manager communicate
the user's selected language code to the client at startup.
- The client stores the language code in the client state file
- The client appends a "lang=X" GET argument to the URLs from
which notices are fetched.
- The next steps (not done) are 1) to change the get_notices.php
script to parse the argument and do translation, and
2) extend our Pootle system to allow volunteer translation
of notices by all projects.
2013-12-03 10:47:56 -08:00
David Anderson
fc8eca4216
client: if we request work from a project and don't get any notices, clear that project's scheduler notices
...
I.e. if you got an "insufficient disk space" notices, and you fixed the problem, the notice should go away.
2013-08-13 14:56:37 -07:00
David Anderson
78f7610f6e
remove dependency of boinc_api.h on str_replace.h (and hence config.h)
...
Any files that use strlcpy() or strlcat() must directly include str_replace.h
2013-06-06 17:31:46 -07:00
David Anderson
846b8c7757
all components: change strcpy() to strlcpy() when possible.
...
This commit should cover the client and manager code.
2013-06-03 20:24:48 -07:00
David Anderson
4434a9dd62
- client: add support for bool <no_project_notices> element
...
in account manager RPC reply.
If set, suppress display of notices from projects
(still display notices from the account manager).
2013-04-19 21:40:10 -07:00
David Anderson
18d0f1f4d9
more GAHP code
2013-03-04 17:24:20 +01:00
David Anderson
32a08d27d9
- C++ code: use MAXPATHLEN for char arrays that hold paths
...
svn path=/trunk/boinc/; revision=25659
2012-05-09 16:11:50 +00:00
David Anderson
bbfbef0fe8
- client: code cleanup. Move RESULT and PROJECT to separate files
...
svn path=/trunk/boinc/; revision=25621
2012-04-30 21:00:28 +00:00
David Anderson
995047c74f
- client: fix bug in notices where, after a notice is deleted,
...
the notices tab refreshes once/second forever after
svn path=/trunk/boinc/; revision=25292
2012-02-20 06:29:46 +00:00
David Anderson
ac2e3581d3
svn path=/trunk/boinc/; revision=24943
2011-12-30 06:18:57 +00:00
David Anderson
a08ab28d1c
- client: parse APP:non_cpu_intensive correctly.
...
This got broken somehow.
- client: don't crash if missing RSS feed file for some reason
svn path=/trunk/boinc/; revision=24942
2011-12-30 06:03:42 +00:00
David Anderson
e8027a224e
- client: isdigit() asserts if its arg is negative (which it can be).
...
Call isascii() first.
- GUI RPC lib: add some consts
svn path=/trunk/boinc/; revision=24726
2011-12-04 19:02:36 +00:00
David Anderson
b16ccf18fc
svn path=/trunk/boinc/; revision=24411
2011-10-18 04:41:13 +00:00
David Anderson
9d2d540267
- client: intermediate checkin for replicated trickle-ups.
...
Not finished yet.
- example app: add --trickle_up and --trickle_down options,
for testing trickle messages
svn path=/trunk/boinc/; revision=24245
2011-09-20 18:49:38 +00:00
David Anderson
c61103ac26
- client: make the attributes of GUI RPCs (network, authentication)
...
explicit rather than determined by position in a list.
- client: add a new "read-only" attribute for GUI RPCs.
This is in preparation for handling GUI RPCs in separate threads.
- client: remove code to support pre-V6 graphics.
svn path=/trunk/boinc/; revision=24232
2011-09-18 21:06:49 +00:00
David Anderson
4f21108bc2
- fix compile warnings
...
svn path=/trunk/boinc/; revision=24212
2011-09-14 23:22:48 +00:00
David Anderson
9dddcdb10c
- XML parsing: do XML unescaping in place rather than allocating
...
a buffer on the stack.
Fixes a Manager crash on the Mac,
where the default thread stack size seems to be 512KB.
svn path=/trunk/boinc/; revision=24206
2011-09-14 17:58:53 +00:00
David Anderson
e9d37aa65e
- client: XML-escape the URLs in RSS feed lists
...
- lib: make xml_unescape work for arbitrarily large strings
svn path=/trunk/boinc/; revision=24154
2011-09-09 20:13:35 +00:00
David Anderson
dde093a021
- client: fix a couple of valgrind warnings
...
svn path=/trunk/boinc/; revision=24076
2011-08-30 15:36:31 +00:00
David Anderson
c5c5975b44
- Improve interface of XML_PARSER.
...
Add parsed_tag and is_tag to the class,
so that parsing functions don't need to declare them
and pass them around.
- Complete the task of using XML_PARSER as the argument
to all parsing functions.
(Internally, many of these functions still use the old XML parser;
that's the next step.)
svn path=/trunk/boinc/; revision=23978
2011-08-10 17:11:08 +00:00
David Anderson
94e8c48220
- client: change --detach_phase_two (??) to --detach_console
...
- eliminate compiler warnings (e.g. shadowed vars)
in various places, mostly in client
svn path=/trunk/boinc/; revision=23710
2011-06-12 20:58:43 +00:00
David Anderson
bb73fd9e4e
- client: equate notices if their text is the same after removing digits,
...
so that "need 25 GB disk" and "need 24 GB disk"
don't result in 2 notices.
svn path=/trunk/boinc/; revision=23611
2011-05-25 22:43:07 +00:00
David Anderson
dc02d192a6
- client: fix bug that cause notice RSS feeds to disappear and reappear,
...
and notices to erroneously be shown as new.
svn path=/trunk/boinc/; revision=23371
2011-04-16 06:15:10 +00:00
David Anderson
ea06547715
- client: discard messages whose create time OR arrival time
...
is more than 30 days ago
svn path=/trunk/boinc/; revision=23319
2011-04-04 17:43:36 +00:00
David Anderson
73dfafde79
- validator: if --credit_from_wu is set, and no credit specified in WU,
...
assign zero credit and keep going
- client simulator work
svn path=/trunk/boinc/; revision=23231
2011-03-14 06:27:51 +00:00
David Anderson
c13d4c6fa9
- client: fix spurious error when removing a notice RSS feed
...
svn path=/trunk/boinc/; revision=23169
2011-03-05 05:49:32 +00:00
David Anderson
fccccd7f97
- client: in deciding whether to remove the "need network" notice,
...
we were using the wrong (too high-level) interface
svn path=/trunk/boinc/; revision=23138
2011-03-03 06:15:20 +00:00
David Anderson
47da4f53b6
- client: when get a bunch of notices from RSS feed,
...
sort them by create time before appending to notice list.
This ensures that, in the Notices tab,
notices are ordered decreasing create time within an RSS feed
(though not necessarily across feeds)
svn path=/trunk/boinc/; revision=23134
2011-03-02 19:15:23 +00:00
David Anderson
81ca21c828
- manager: show notice create time rather than arrival time
...
- client: don't show "need network" notice if we don't need it
svn path=/trunk/boinc/; revision=23133
2011-03-02 18:53:18 +00:00
David Anderson
00f7a7778b
- client: on finish upload, trigger work fetch
...
(since we may have been waiting for upload finish)
- client: fix crash: if remove an RSS feed, remove its active HTTP op if any.
svn path=/trunk/boinc/; revision=23097
2011-02-23 23:11:59 +00:00
Charlie Fenton
0731e726b1
client: fix compiler warning
...
svn path=/trunk/boinc/; revision=23080
2011-02-22 01:07:29 +00:00
David Anderson
151ca04258
- client: more notice-related fixes.
...
I'm working on this case:
- start up
- disconnect (produces notice)
- reconnect (removes notice)
The client is now doing the right thing.
The manager is not.
svn path=/trunk/boinc/; revision=23074
2011-02-19 03:32:26 +00:00
David Anderson
53a514bb1a
- client: when detach project, remove its RSS feeds from list
...
- client: remove once-per-week limit for client-generated notices;
need to show "network connection required" more often
- client: when remove "network conn required" notice
(because now have conn)
set the flag that says complete notice list is being sent
- client: if RSS feed fetch returns <error_num>,
show the corresponding message rather than "XML parse error"
svn path=/trunk/boinc/; revision=23063
2011-02-18 02:00:02 +00:00
David Anderson
05b9c0aa40
- client: show a given system notice at most once a week
...
svn path=/trunk/boinc/; revision=22861
2011-01-03 20:09:52 +00:00