Changes between Version 3 and Version 4 of RemoteInputFiles


Ignore:
Timestamp:
Feb 5, 2013, 12:04:38 AM (11 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RemoteInputFiles

    v3 v4  
    1212job submitters to place files on the BOINC server.
    1313
    14 Each of these mechanisms deals with two issues:
     14Each of these mechanisms deals with several issues:
    1515
    1616 * '''File immutability''': BOINC requires that a file
     
    2222 * File cleanup: There must be some way to clean up
    2323  files on the server when they are no longer needed.
     24 * Authorization: only users authorized to submit jobs
     25  should be able to move files to the server.
     26
     27Note: both mechanisms upload files via PHP.
     28PHP's default max file upload size is 2MB.
     29To increase this, edit /etc/php.ini, and change, e.g.
     30{{{
     31upload_max_filesize = 64M
     32post_max_size = 64M
     33}}}
    2434
    2535== Content-based file management ==
     
    5767Inputs:
    5868 * '''project_url''': the project's master URL
    59  * '''authenticator''': the job submitter's authenticator
     69 * '''authenticator''': the job submitter's authenticator.
    6070 * '''paths''': a list of file paths on the calling host.
    6171 * '''md5s''': a list of the MD5s of the files.
    6272 * '''batch_id''': the ID of a batch whose jobs will reference the files
    6373  (these jobs need not exist yet).
     74  The operation will fail if the user is not authorized to
     75  submit jobs to the batch's application.
    6476
    6577Action: for each file, see if it exists on the server.
     
    8597 * '''paths''': a list of paths of files to be uploaded
    8698 * '''md5s''': a list of MD5 hashes of these files
    87  * '''batch_id''': the ID of a batch with which the files are associated
     99 * '''batch_id''': the ID of a batch with which the files are associated.
     100  The operation will fail if the user is not authorized to
     101  submit jobs to the batch's application.
    88102
    89103Action: Upload the files, and create associations to the given batch.
     
    99113== Per-user file sandbox ==
    100114
     115This mechanism allows job submitters to explicitly
     116upload files via a web interface: PROJECT_URL/sandbox.php.
     117
     118Links to the files are stored in a "sandbox directory"
     119PROJECT_ROOT/sandbox/USERID/.
     120The entries in this directory have contents
     121{{{
     122size MD5
     123}}}
     124
     125The actual files are stored in the download directory,
     126under the name '''sb_userid_MD5'''.
     127
     128Currently, files in the sandbox are not cleanup up automatically.
     129The web interface allows users to delete their files.