Overview
Artifact ID: | b411eb97ea5d2aa860f4c69b38394c38d3053c56 |
---|---|
Ticket: | a534227710d3e560aa47499e6f80f764a6444f7d
Web UI "Admin -> Sync Now" should be removed except maybe for "fossil ui" |
User & Date: | anonymous 2010-04-22 14:56:25 |
Changes
- comment changed to:
The fossil web interface provides a "Sync Now" option on the Admin page. However, in order for this to work correctly, the following must all be true: <ol> <li>The running fossil serving the request must have a current directory within a "fossil open" checkout or exactly one repository must be specified on the command line (not a directory). [<font size="-1">It appears that a single-repository cgi script is no longer good enough as the repository is closed by the time the process_sync_args function runs and since no repository name is available in the options list (it's embedded in the script instead) fossil fails to find the repository.</font>] <li>The environment must have a HOME (or equivalent) variable set to a path that allows writing/creating both .fossil and .fossil-journal files. [<font size="-1">This may be a particularly challenging requirement to satisfy in a secure manner when the fossil cgi is running as the www user on a web server. Although certainly using the /usr/bin/env command in the #! line of a fossil cgi script to set HOME then run fossil may be of some help here, but that seems clumsy.</font>] </ol> This breaks down if fossil was started with the "fossil server directory" option (or the corresponding fossil cgi "directory: ..." option). Which repository will get sync'd when you select "Sync Now"? In fact it looks like if the above conditions are true, you'll always sync the same repository which may or may not be related at all to the the repository being viewed via the web ui. However, for the "fossil ui" command only, none of the above applies since a single repository must be specified and it's reasonable to expect the conditions listed above to always be satisfied correctly. Is it possible to just suppress the "Sync Now" option unless the command that started the server was "fossil ui"? P.S. Even when using "fossil ui" to run the "Sync Now" option (and it does work) the sync progress output corrupts the content being returned -- all the progress details from the sync are output before the initial "HTTP/1.0 200 OK" response so it's kind of surprising that the browser even displays the real html content correctly at all (after the mash of sync progress output at the top of the page). It might be simpler just to get rid of the web interface to "Sync Now" completely.
- foundin changed to: "[7c37b46b12] 2010-04-15 23:53:15"
- private_contact changed to: "ae1a74676bb0d1ac520802109f926567b1637ac7"
- severity changed to: "Minor"
- status changed to: "Open"
- title changed to:
Web UI "Admin -> Sync Now" should be removed except maybe for "fossil ui"
- type changed to: "Code_Defect"