•  
      story #8597 have a recent version of ViewVC
    Summary
    svn developer
    have a recent version of ViewVC
    I can leverage on the newsest features (esp. see svn properies)

    Site admin can "hot swap" viewvc to either have:

    • Tuleap's viewvc (viewvc-tuleap)
    • EPEL, stock viewvc

    Admin can got back and forth with those packages (allow to rollback in case of issues)

    When EPEL viewvc (1.1.24 ATM) is installed, the whole page is rendered inside Tuleap, according to current user's credentials. Please note that with this story, the layout is the default one, there is a dedicated story (story #8610) to have an integrated layout.

    Technical side:

    • There is a viewvc.cgi inside Tuleap sources that does what viewvc.cgi do + allow to inject our config
    • Tuleap wraps access to this viewvc to inject the "good values"
    • Try, as much as possible, to not touch existing viewvc integation and to redirect to new display script and classes.
    Empty
    Nouha Terzi (terzino), Salma MOAKHAR (moakhars), Denis PILAT (denis_pilat)
    Status
    Empty
    Done
    Development
    • [ ] Does it involves User Interface? 
    • [ ] Are there any mockups?
    • [ ] Are permissions checked?
    • [ ] Does it need Javascript development?
    • [ ] Does it need a forge upgrade bucket?
    • [ ] Does it need to execute things in system events?
    • [ ] Does it impact project creation (templates)?
    • [ ] Is it exploratory?

    ViewVC was historically patched for:

    • Deploy specific configuration
      • Where CVS & SVN repo are
      • Default values about language, cvsgraph, enscript & co
    • Management of users and permissions
    • Specific management of "roottype" for CVS (???)
    • Custom template (remove footer & co)

    Tests made

    • No modification of viewvc
    • Wrap access to SVN repositories and CVS 
      • Works (only simple tests made)
    • SVN actions tested
      • Browse files and directory
      • Check permissions (out of the box!)
      • annotate file
      • get original "raw" file
      • inspect file history
      • have cross ref in tree
      • view diff between files

    Open questions

    • "co" (d/l files) is disabled by default for security questions
    • need to remove existing viewvc-tuleap (conflicts) how to make progressive deployement (or ease rollback in case of issues)
    • very dependant of "viewvc.conf" (actually impossible so far to have a common config tha display both cvs and svn)
      • idea: write our own viewvc.cgi (a few lines) to ovverride the variables that are of interest for us
    • how to properly render the view
      • write our own template ?

    State of tests

    Code in git: https://tuleap.net/plugins/git/tuleap/u/vaceletm/tuleap/dev?p=u%2Fvaceletm%2Ftuleap%2Fdev.git&a=shortlog&h=refs/heads/bump_viewvc

    • Need to install viewvc from epel (rpm --nodep -e viewvc-tuleap first)
    • You should install viewvc-httpd as well (for tests), to access this after you go at http://localhost/viewvc (you probably need to paste some apache authentication conf in /etc/httpd/conf.d/viewvc.conf (take one from codendi_svnroot.conf) and remove the "Allow from 127.0.0.1"
    • At sources root you have viewvc.conf.svn and  viewvc.conf.cvs, copy one of them in /etc/viewvc/viewvc.conf

     

    Details
    #8597
    Manuel Vacelet (vaceletm)
    2016-09-30 11:02
    2015-11-13 15:32
    4600

    References

    Follow-ups

    User avatar
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    • CC list set to Denis PILAT (denis_pilat), Salma MOAKHAR (moakhars), Nouha Terzi (terzino)
    User avatar
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    • Technical informations
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes
    User avatar
    • I want to
      -have a recent version of viewVC 
      +have a recent version of ViewVC 
    • Acceptance criteria
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes