|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
12 May 2020, Ruslan Podviianiuk, Forum, List of sequencer files
|
13 May 2020, Stefan Ritt, Forum, List of sequencer files
|
18 May 2020, Ruslan Podviianiuk, Forum, List of sequencer files
|
19 May 2020, Ruslan Podviianiuk, Forum, List of sequencer files
|
20 May 2020, Konstantin Olchanski, Forum, List of sequencer files
|
|
Message ID: 1912
Entry time: 20 May 2020
In reply to: 1910
|
Author: |
Konstantin Olchanski |
Topic: |
Forum |
Subject: |
List of sequencer files |
|
|
>
> We have a custom webpage and trying to get list of files from the custom webpage and need jrpc command to show it
> in custom page. Is there a jrpc command to get this file list?
>
The rpc method used by sequencer web pages is "seq_list_files". How to use it, see resources/load_script.html.
To see list of all rpc methods implemented by your mhttpd, see "help"->"json-rpc schema, text format".
As general explanation, so far we have successfully resisted the desire to turn mhttpd into a generic NFS file
server - if we automatically give all web pages access to all files accessible to the midas user account, it is easy
to lose control of system security (i.e. bad things will happen if web pages can read the ssh private keys ~/.ssh/id_rsa and
modify ~/.ssh/authorized_keys). Generally it is impossible to come up with a whitelist or blacklist of "secrets" that
need to be "hidden" from web pages. But we did implement methods to access files from specific subdirectory trees
defined in ODB which hopefully do not contain any "secrets".
K.O. |