D 2010-04-22T14:56:25
J comment The\sfossil\sweb\sinterface\sprovides\sa\s"Sync\sNow"\soption\son\sthe\sAdmin\spage.\s\sHowever,\sin\sorder\sfor\sthis\sto\swork\scorrectly,\sthe\sfollowing\smust\sall\sbe\strue:\r\n\r\n
\r\n- The\srunning\sfossil\sserving\sthe\srequest\smust\shave\sa\scurrent\sdirectory\swithin\sa\s"fossil\sopen"\scheckout\sor\sexactly\sone\srepository\smust\sbe\sspecified\son\sthe\scommand\sline\s(not\sa\sdirectory).\s\s[It\sappears\sthat\sa\ssingle-repository\scgi\sscript\sis\sno\slonger\sgood\senough\sas\sthe\srepository\sis\sclosed\sby\sthe\stime\sthe\sprocess_sync_args\sfunction\sruns\sand\ssince\sno\srepository\sname\sis\savailable\sin\sthe\soptions\slist\s(it's\sembedded\sin\sthe\sscript\sinstead)\sfossil\sfails\sto\sfind\sthe\srepository.]\r\n\r\n
- The\senvironment\smust\shave\sa\sHOME\s(or\sequivalent)\svariable\sset\sto\sa\spath\sthat\sallows\swriting/creating\sboth\s.fossil\sand\s.fossil-journal\sfiles.\s\s[This\smay\sbe\sa\sparticularly\schallenging\srequirement\sto\ssatisfy\sin\sa\ssecure\smanner\swhen\sthe\sfossil\scgi\sis\srunning\sas\sthe\swww\suser\son\sa\sweb\sserver.\s\sAlthough\scertainly\susing\sthe\s/usr/bin/env\scommand\sin\sthe\s#!\sline\sof\sa\sfossil\scgi\sscript\sto\sset\sHOME\sthen\srun\sfossil\smay\sbe\sof\ssome\shelp\shere,\sbut\sthat\sseems\sclumsy.]\r\n
\r\n\r\nThis\sbreaks\sdown\sif\sfossil\swas\sstarted\swith\sthe\s"fossil\sserver\sdirectory"\soption\s(or\sthe\scorresponding\sfossil\scgi\s"directory:\s..."\soption).\s\sWhich\srepository\swill\sget\ssync'd\swhen\syou\sselect\s"Sync\sNow"?\s\sIn\sfact\sit\slooks\slike\sif\sthe\sabove\sconditions\sare\strue,\syou'll\salways\ssync\sthe\ssame\srepository\swhich\smay\sor\smay\snot\sbe\srelated\sat\sall\sto\sthe\sthe\srepository\sbeing\sviewed\svia\sthe\sweb\sui.\r\n\r\nHowever,\sfor\sthe\s"fossil\sui"\scommand\sonly,\snone\sof\sthe\sabove\sapplies\ssince\sa\ssingle\srepository\smust\sbe\sspecified\sand\sit's\sreasonable\sto\sexpect\sthe\sconditions\slisted\sabove\sto\salways\sbe\ssatisfied\scorrectly.\r\n\r\nIs\sit\spossible\sto\sjust\ssuppress\sthe\s"Sync\sNow"\soption\sunless\sthe\scommand\sthat\sstarted\sthe\sserver\swas\s"fossil\sui"?\r\n\r\nP.S.\sEven\swhen\susing\s"fossil\sui"\sto\srun\sthe\s"Sync\sNow"\soption\s(and\sit\sdoes\swork)\sthe\ssync\sprogress\soutput\scorrupts\sthe\scontent\sbeing\sreturned\s--\sall\sthe\sprogress\sdetails\sfrom\sthe\ssync\sare\soutput\sbefore\sthe\sinitial\s"HTTP/1.0\s200\sOK"\sresponse\sso\sit's\skind\sof\ssurprising\sthat\sthe\sbrowser\seven\sdisplays\sthe\sreal\shtml\scontent\scorrectly\sat\sall\s(after\sthe\smash\sof\ssync\sprogress\soutput\sat\sthe\stop\sof\sthe\spage).\s\sIt\smight\sbe\ssimpler\sjust\sto\sget\srid\sof\sthe\sweb\sinterface\sto\s"Sync\sNow"\scompletely.
J foundin [7c37b46b12]\s2010-04-15\s23:53:15
J private_contact ae1a74676bb0d1ac520802109f926567b1637ac7
J severity Minor
J status Open
J title Web\sUI\s"Admin\s->\sSync\sNow"\sshould\sbe\sremoved\sexcept\smaybe\sfor\s"fossil\sui"
J type Code_Defect
K a534227710d3e560aa47499e6f80f764a6444f7d
U anonymous
Z b6182780dedc19b4efe1c9971d3e0077