Simple DAV server?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • robert

    #1

    Simple DAV server?

    For testing purposes I'm looking for a simple DAV server - best a python
    thing serving a folder tree. Don't want to install/change/setup the
    complex apache dav ..

    Found PyDav http://www.econetwork.net/~jdavis/So...AV/readme.html,
    but the package is old and (crucial) webdav.ini.temp late is missing in
    that package.

    Found "python davserver" http://www.comlounge.net/webdav/ ,
    but it doesn't run. It uses xml libs which are not anymore in recent
    python's.

    Is there something else? Or a (non-py) binary simple to set it up.

    robert
  • Larry Bates

    #2
    Re: Simple DAV server?

    Zope presents objects/folders via WebDAV. It isn't "simple",
    but it works and is a Python "thing".

    On Windows you can get a demo of GroupDrive here:



    -Larry Bates


    robert wrote:[color=blue]
    > For testing purposes I'm looking for a simple DAV server - best a python
    > thing serving a folder tree. Don't want to install/change/setup the
    > complex apache dav ..
    >
    > Found PyDav http://www.econetwork.net/~jdavis/So...AV/readme.html,
    > but the package is old and (crucial) webdav.ini.temp late is missing in
    > that package.
    >
    > Found "python davserver" http://www.comlounge.net/webdav/ ,
    > but it doesn't run. It uses xml libs which are not anymore in recent
    > python's.
    >
    > Is there something else? Or a (non-py) binary simple to set it up.
    >
    > robert[/color]

    Comment

    • Ivan Voras

      #3
      Re: Simple DAV server?

      robert wrote:[color=blue]
      > For testing purposes I'm looking for a simple DAV server - best a python
      > thing serving a folder tree. Don't want to install/change/setup the
      > complex apache dav ..
      >[/color]

      You can try this one: http://ivoras.sharanet.org/projects/pandav.html

      It's been a while since I last updated it so no guarantees :)

      Comment

      • Kyler Laird

        #4
        Re: Simple DAV server?

        robert <no-spam@no-spam-no-spam.com> writes:
        [color=blue]
        >For testing purposes I'm looking for a simple DAV server - best a python
        >thing serving a folder tree. Don't want to install/change/setup the
        >complex apache dav ..[/color]

        I'm avoiding Apache for this too.

        Today I've been working on PanDAV.

        (Thank, Ivan!)

        I added the ability to create and delete collections (directories),
        delete members (files), authenticate users, and run per-user setuid/
        setgid. It works well with Cadaver but I'm waiting for some MS users
        to report how it works under Windows.

        The only thing on my list right now is to make it report the times for
        collections (directories). Already it's looking like a nice solution
        for my needs. And it was *so* much easier to hack than Apache.

        --kyler

        Comment

        • Ivan Voras

          #5
          Re: Simple DAV server?

          robert wrote:
          [color=blue]
          >
          > thanks, that's exactly to the point:
          >
          > python server.py 8080 mydavrootfolder[/color]

          Thanks for the patch, I assume it's free to incorporate it into the
          original archive?

          Also, see my reply to "Kyler Laird"...

          Comment

          • Ivan Voras

            #6
            Re: Simple DAV server?

            Kyler Laird wrote:
            [color=blue]
            > I added the ability to create and delete collections (directories),
            > delete members (files), authenticate users, and run per-user setuid/
            > setgid. It works well with Cadaver but I'm waiting for some MS users
            > to report how it works under Windows.
            >
            > The only thing on my list right now is to make it report the times for
            > collections (directories). Already it's looking like a nice solution
            > for my needs. And it was *so* much easier to hack than Apache.[/color]

            Thank you for such a nice response :)

            If you or anybory else (robert?) is interested, I can set up a
            SourceForge project for it so patches & contribution can be easily managed?

            Comment

            • robert

              #7
              Re: Simple DAV server?

              Ivan Voras wrote:[color=blue]
              > robert wrote:
              >[color=green]
              >>
              >> thanks, that's exactly to the point:
              >>
              >> python server.py 8080 mydavrootfolder[/color]
              >
              >
              > Thanks for the patch, I assume it's free to incorporate it into the
              > original archive?[/color]

              yes, of course
              [color=blue]
              > Also, see my reply to "Kyler Laird"...[/color]

              maybe thats a good idea to put it on sf.net to boil out all bugs.
              Yet I like it in that simple default manner, maybe switch on those
              additional creation functions with commandline switches (or config class
              instance passed to run..(config=No ne) )

              robert

              Comment

              • Ivan Voras

                #8
                Re: Simple DAV server?

                robert wrote:
                [color=blue]
                > maybe thats a good idea to put it on sf.net to boil out all bugs.
                > Yet I like it in that simple default manner, maybe switch on those
                > additional creation functions with commandline switches (or config class
                > instance passed to run..(config=No ne) )[/color]

                I'm thinking of making a small separation between the actual WebDAV
                server (server.py) and the library/libraries that do the actual protocol
                (davserver.py & fsdav.py). This way, we can still have a simple server
                (server.py), libraries with new features, and possibly an advanced
                server (possibly called server_advanced .py or something like that) that
                can use all those new features.

                I'll submit a project request, and will post here when it's processed,
                so stay tuned :)

                If you don't have it already, you can open a SourceForge.net account now...

                Comment

                • robert

                  #9
                  Re: Simple DAV server?

                  Ivan Voras wrote:[color=blue]
                  > robert wrote:
                  >[color=green]
                  >> maybe thats a good idea to put it on sf.net to boil out all bugs.
                  >> Yet I like it in that simple default manner, maybe switch on those
                  >> additional creation functions with commandline switches (or config
                  >> class instance passed to run..(config=No ne) )[/color]
                  >
                  >
                  > I'm thinking of making a small separation between the actual WebDAV
                  > server (server.py) and the library/libraries that do the actual protocol
                  > (davserver.py & fsdav.py). This way, we can still have a simple server
                  > (server.py), libraries with new features, and possibly an advanced
                  > server (possibly called server_advanced .py or something like that) that
                  > can use all those new features.
                  >
                  > I'll submit a project request, and will post here when it's processed,
                  > so stay tuned :)
                  >[/color]

                  Hello,

                  what is the current status of Pandav?

                  KL wrote, he added some more capabs. I'd need MOVE and saw PUT has bugs
                  to also not respect URL-quoted folders/elements (with spaces, utf-8 etc.)

                  Wanted to ask to not double things?

                  -robert

                  Comment

                  • Kyler Laird

                    #10
                    Re: Simple DAV server?

                    robert <no-spam@no-spam-no-spam.com> writes:
                    [color=blue]
                    >KL wrote, he added some more capabs. I'd need MOVE and saw PUT has bugs
                    >to also not respect URL-quoted folders/elements (with spaces, utf-8 etc.)[/color]

                    I've got MOVE working and I took care of the percent-escaped filenames but
                    UTF-8 stuff is still giving me problems. (I've been testing with Litmus.)
                    I don't recommend it but here's a preview of my simple additions.


                    Ivan's been working on a problem I've been experiencing with Windows XP
                    ("failure to launch"). He sent a new version my way today. I'm going
                    to test it tomorrow when I've got some XP users available. If it works
                    I'm going to work on putting my changes into a subclass.

                    I don't see this being a full-featured fully-compliant DAV server
                    immediately but I'm betting that it will provide adequate service for my
                    users soon.

                    --kyler

                    Comment

                    • Ivan Voras

                      #11
                      Re: Simple DAV server?

                      Kyler Laird wrote:
                      [color=blue]
                      > Ivan's been working on a problem I've been experiencing with Windows XP
                      > ("failure to launch"). He sent a new version my way today. I'm going
                      > to test it tomorrow when I've got some XP users available. If it works
                      > I'm going to work on putting my changes into a subclass.
                      >
                      > I don't see this being a full-featured fully-compliant DAV server
                      > immediately but I'm betting that it will provide adequate service for my
                      > users soon.[/color]

                      Most of the problems are probably because I didn't mean it to be a
                      fully-compliant WebDAV server, but to serve my need at the time :)

                      I'm still waiting for SourceForge to approve the project so there's a
                      proper place to integrate all the patches. One thing I insist on is the
                      separation of davserver and fsdav (e.g. no contamination of knowledge
                      between the two).

                      Comment

                      • robert

                        #12
                        Re: Simple DAV server?

                        Ivan Voras wrote:
                        [color=blue]
                        > Kyler Laird wrote:
                        >[color=green]
                        >> Ivan's been working on a problem I've been experiencing with Windows XP
                        >> ("failure to launch"). He sent a new version my way today. I'm going
                        >> to test it tomorrow when I've got some XP users available. If it works
                        >> I'm going to work on putting my changes into a subclass.
                        >>
                        >> I don't see this being a full-featured fully-compliant DAV server
                        >> immediately but I'm betting that it will provide adequate service for my
                        >> users soon.[/color]
                        >
                        >
                        > Most of the problems are probably because I didn't mean it to be a
                        > fully-compliant WebDAV server, but to serve my need at the time :)
                        >
                        > I'm still waiting for SourceForge to approve the project so there's a
                        > proper place to integrate all the patches. One thing I insist on is the
                        > separation of davserver and fsdav (e.g. no contamination of knowledge
                        > between the two).[/color]

                        I tried a little with that last package from KL (MOVE). Added the
                        missing urllib.unquote' s and sorted few other problems. ok.

                        I now also need PROPPATCH / arbitrary properties. Windows for example
                        stores (original) file time stamps in such properties.
                        Started writing on that, yet not complete - little complex. Properties
                        to go to a ".##dav" folder (copied and moved together with the objects
                        with COPY/MOVE).

                        -robert

                        Comment

                        • Kyler Laird

                          #13
                          Re: Simple DAV server?

                          Ivan Voras <ivoras@__-fer.hr-__> writes:
                          [color=blue]
                          >Most of the problems are probably because I didn't mean it to be a
                          >fully-compliant WebDAV server, but to serve my need at the time :)[/color]

                          I am *so* close to having a WebDAV solution. Unfortunately when I finally
                          moved to using HTTPS, it all broke in MS Windows. (Konqueror handles it
                          beautifully.)

                          If I make a Web Folder with HTTP, Windows displays it (as "\\hostname \")
                          in Windows Explorer. If I make it with HTTPS, it throws me into Internet
                          Explorer (where WebDAV isn't used - I can't even launch files).

                          WTF?! It looks like other people are using WebDAV over HTTPS.
                          Use Web Folders to edit, manage and share files in the internet cloud as if they were in folders on your desktop.

                          Why is Windows kicking me into IE for HTTPS???

                          (I'm tired and frustrated. I hate being forced to deal with proprietary
                          software.)

                          --kyler

                          Comment

                          • robert

                            #14
                            Re: Simple DAV server?

                            Kyler Laird wrote:[color=blue]
                            > Ivan Voras <ivoras@__-fer.hr-__> writes:
                            >
                            >[color=green]
                            >>Most of the problems are probably because I didn't mean it to be a
                            >>fully-compliant WebDAV server, but to serve my need at the time :)[/color]
                            >
                            >
                            > I am *so* close to having a WebDAV solution. Unfortunately when I finally
                            > moved to using HTTPS, it all broke in MS Windows. (Konqueror handles it
                            > beautifully.)
                            >
                            > If I make a Web Folder with HTTP, Windows displays it (as "\\hostname \")
                            > in Windows Explorer. If I make it with HTTPS, it throws me into Internet
                            > Explorer (where WebDAV isn't used - I can't even launch files).
                            >
                            > WTF?! It looks like other people are using WebDAV over HTTPS.
                            > http://www.mydocsonline.com/info_webfolders.html
                            > Why is Windows kicking me into IE for HTTPS???
                            >
                            > (I'm tired and frustrated. I hate being forced to deal with proprietary
                            > software.)
                            >[/color]

                            The Windows Web Folder mapping service is also "proprietar y" : MS
                            It can't handle HTTPS in XP so far.

                            That HTTPS example on this page is from a Mac.

                            -robert

                            Comment

                            • fuzzylollipop

                              #15
                              Re: Simple DAV server?

                              webfolders is broken, I have worked on webdav support at the isp level
                              ( for millions of customers to use ) webfolders is NOT something you
                              should base compliancey on. It is broken so badly that we decided to
                              just not even test against it. We provide our customers with our own
                              application with which to map drive letters to mount webdav our webdav
                              store so we don't have to even worry about Web Folders not working.

                              Comment

                              Working...