webdav interview questions
Top webdav frequently asked interview questions
I just recently learned of SVN's auto-versioning feature for WebDAV. Although I understand this is not replacement for proper versioning, with messages documenting change sets, it strikes me as a solid and safe replacement to Dropbox (minus nice GUIs and web pages). However, since commits in auto-versioning are frequent, I'd imagine that Git or Hg would be better suited for this, just because of their more compact databases (although I wonder if the distributed nature of things could make the automation ugly for resolving conflicts).
Is this a feature that has been implemented using Git or Hg, as far as anyone knows?
Source: (StackOverflow)
I need my .NET application to access content from a variety of CalDAV servers. I have been looking for a good .NET CalDAV client library for a while now, but have been unable to find anything that suits my needs. Does such a library even exist, or is it something that I will need to write from scratch? I'm looking for something like on the iPhone where only a server address, username, and password are required.
Source: (StackOverflow)
That's the question: Which library can help me to access data available via WebDAV in my Java-programs? OpenSource is preferred.
Source: (StackOverflow)
I have to develop a Java application that has to read some files on the network, edit them and put them back.
The problem is that I always did (over the network) file operations through the FTP protocol. But, I recently heard about Webdav which is HTTP based.
Did anyone notice a difference (in terms of speed) between them ? Which one is the best ? Why did they "invent" Webdav if the FTP is good for that?
Source: (StackOverflow)
Does anybody know of an open source library written in C# that makes it easy to communicate with a WebDAV server?
For a project I need to communicate with a server using the WebDAV protocol. I'm using VS 2008 and the .NET framework 3.5. Using Google I found multiple samples written in C# on how to make a WebDAV request. It is simple enough but all the samples are creating their own WebDAV request from the ground up. I don't want to be bothered with all the syntactical details of building a valid WebDAV request.
On the web site of webdav.org I found a lot of links to software and libraries for all kinds of languages but nothing for .NET (C#). There is also an Apache project that looks very interesting (Jakarta Slide) but this project is retired and again... this is all java code.
I know there are commercial libraries available that seem to do just what I need but I prefer an open source alternative if possible. However, if I can't find anything useful I might consider a commercial product so any recommendations are also welcome.
Source: (StackOverflow)
I have a Java application that opens WebDAV files on MS Word. This works successfully on Windows with the next code:
Runtime.getRuntime().exec("cmd /c start winword " + webdavUrl);
But on Mac OSX this is not possible. I tried this function, but it only opens a blank document:
Runtime.getRuntime().exec(new String[]{"open", "-a", "Microsoft Word", webdavUrl});
if I create a file from the URL, I can open the file but I lose its reference to the WebDav URL.
I have found a discussion about a javascript code that can do this process from the browser.
Any thoughts?
Source: (StackOverflow)
I'm working on a custom implementation of a server (VERY basic WebDAV) that accepts Outlook's published calendars.
Outlook seems to have a setting (see the screenshot below) where it accepts a parameter form the server that tells it how often to re-publish the calendar and that's the parameter I'm trying to figure out.
If the setting is not specified Outlook defaults to 60 minutes which doesn't work for me but I cannot find any information on what the parameter might be (I am aware that Outlook's settings can be adjusted within the UI but I need it done automatically via a response from the server). When using Wireshark I see that when first publishing the calendar Outlook sends a PROPFIND
method to the URL of the server:
PROPFIND /path/to/url HTTP/1.1
X-Office-Version: 15.0.4771
Depth: 1
Content-Type: text/xml
User-Agent: Microsoft Office/15.0 (Windows NT 6.3; Microsoft Outlook 15.0.4771; Pro)
Host: example.com
Content-Length: 114
Connection: Keep-Alive
Cache-Control: no-cache
<?xml version="1.0" encoding="utf-8" ?> <D:propfind xmlns:D="DAV:"><D:prop><D:resourcetype/></D:prop></D:propfind>
which then responds with an XML (I'm assuming this is where the setting would be, but cannot find any information on it):
<?xml version="1.0"?><a:multistatus xmlns:a="DAV:"/>
I'm lost at this point and not sure where else to be looking after lots of Googling and traffic sniffing (of Outlook <->Exchange communications but none that I found seem to be using the non-default param). Any suggestion where would be a good idea to look for something like this?
Source: (StackOverflow)
I'd like to implement a piece of functionality in my application that uploads and manipulates files on a WebDAV server. I'm looking for a mature Python library that would give an interface similar to the os.*
modules for working with the remote files. Googling has turned up a smattering of options for WebDAV in Python, but I'd like to know which are in wider use these days.
Source: (StackOverflow)
This error is very common, and I tried all of the solutions and non of them worked. I have disabled WebDAV publishing in control panel and added this to my web config file:
<handlers>
<remove name="WebDAV"/>
</handlers>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule"/>
</modules>
The error still persists. This is the controller:
static readonly IProductRepository repository = new ProductRepository();
public Product Put(Product p)
{
return repository.Add(p);
}
Method implementation:
public Product Add(Product item)
{
if (item == null)
{
throw new ArgumentNullException("item");
}
item.Id = _nextId++;
products.Add(item);
return item;
}
And this is where the exception is thrown:
client.BaseAddress = new Uri("http://localhost:5106/");
client.DefaultRequestHeaders.Accept.Add(
new MediaTypeWithQualityHeaderValue("application/json"));
var response = await client.PostAsJsonAsync("api/products", product);//405 exception
Any suggestions?
Source: (StackOverflow)
I'm writing a CMS application in PHP and one of the requirements is that it must be able to interface with the customer's Exchange server. I've written up this functionality a few times before and have always used WebDAV to do it, but now I'm leaning away from that.
I will be running the site on IIS OR Apache (no preference) on Windows server 2008. A few things I would need to do include adding contacts to a given user's address book, sending emails as a given user and running reports on contacts for a user.
All of this is pretty easy to do with WebDAV, but if there is a better way that doesn't require any functionality that is likely to be deprecated any time soon.
Any ideas?
Update:
Justin, I love the idea of using com objects, I just worry about maintaining a 3rd product to make everything work...
John, I can write a web service in C# to interface with for these functions and access it with my PHP app, but it's also a little bit out of the way.
So far, I'm not 100% convinced that either of these is better than WebDAV...
Can anyone show me where I'm being silly?
Source: (StackOverflow)
I'm aware this question has been asked a lot of times. I believe I understand the answers, but I still had no luck.
I tried both one repo
and multiple repos
configurations, having the same issue for both of them.
So, with the config I'm interested in:
<Location /svn>
DAV svn
#SVNPath /media/ssd/svn/test
SVNParentPath /media/ssd/svn
SVNListParentPath On
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
My repository
luso@bender:/media/ssd/svn$ ls -lart
total 16
drwx------ 7 luso luso 4096 2012-09-15 16:20 ..
drwxr-sr-x 6 www-data svn 4096 2012-09-24 22:13 test
drwxrwsr-x 4 www-data svn 4096 2012-09-24 22:31 .
drwxr-sr-x 6 www-data svn 4096 2012-09-24 22:31 test2
Inside a project
luso@bender:/media/ssd/svn/test$ ls -lart
total 32
-rw-r--r-- 1 www-data svn 229 2012-09-24 22:13 README.txt
drwxr-sr-x 2 www-data svn 4096 2012-09-24 22:13 locks
drwxr-sr-x 2 www-data svn 4096 2012-09-24 22:13 hooks
drwxr-sr-x 2 www-data svn 4096 2012-09-24 22:13 conf
-r--r--r-- 1 www-data svn 2 2012-09-24 22:13 format
drwxr-sr-x 6 www-data svn 4096 2012-09-24 22:13 .
drwxrwsr-x 4 www-data svn 4096 2012-09-24 22:31 ..
drwxr-sr-x 6 www-data svn 4096 2012-09-24 22:40 db
the user luso and www-data are in both the svn and www-data groups. However, when /system/administration/users and groups, if I select the www-data user there is a warning: This account is disabled ¿¿?? If I try to enable it, it asks me to set a password. I didn't do it...
/media/ssd is my /dev/sdc drive (an ssd drive)
I can co using file:// protocol
luso@bender:~$ svn co file:///media/ssd/svn/test test
A test/.classpath
A test/.project
A test/target
A test/target/test-my-app-0.0.1-SNAPSHOT.jar
...
...
However,
luso@bender:~$ svn co http://localhost/svn/test test and
luso@bender:~$ svn co http://localhost/svn/test/trunk test
lead me to:
Authentication realm: <http://localhost:80> Subversion Repository
Password for 'luso':
svn: Could not open the requested SVN filesystem
more precisely
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="13">Could not open the requested SVN filesystem</m:human-readable>
</D:error>
Of course, the same happens if I try to access via web browser...
And the same happens if I change
#SVNPath /media/ssd/svn/test
SVNParentPath /media/ssd/svn
SVNListParentPath On
with:
SVNPath /media/ssd/svn/test
#SVNParentPath /media/ssd/svn
#SVNListParentPath On
and reload/restart apache2
Also, the same happens when trying to access via https:// which is working fine.
I've read something indicating SELinux had something to do, but I don't dare to change this. I don't really know how to...
Might it be some kind of conflict with permissions? The /media/ssd drive is owned by luso... (no idea, just guessing)
So any other clue?
I'm running Ubuntu 10.04, Apache2, and StackOverflow :D
Thank you all.
EDIT: As suggested by p_strand, I've added a line
AuthzSVNAccessFile /etc/apache2/svn-policy-file
in dav_svn.conf config
Now, if I try http://localhost/svn/test
it remains the same, and if I try http://localhost/svn
I get a 403 Forbidden
Source: (StackOverflow)