Configuring a WebDAV client for confluence

Deleted user August 20, 2019

Hello, Community!


I'm trying to develop a WebDAV client for our confluence, but I'm geting a MissingSchema error. I'm not pretty sure about the URL, I'm following this article to help me develop the client.


Can anyone help me to determinate the URL I have to use to connect to our confluence? Is it the URL of my Space home or is it other?


What I want to do is to send files from my client to Confluence and viceversa, but I cannot use other client or My networks drive in Microsoft.

2 answers

1 accepted

1 vote
Answer accepted
Deleted user August 23, 2019

Hello, Community!

 

I solved the error. I was using:

url = 'http://myurl/chup/plugins/servlet/confluence/default'

 But that was a mistake, so I add the '/plugins/servlet/confluence/default' to the beginning of the root var. Also, my confluence has two folders named Global and Personal, finally the folder chup (the root path of my WebDAV Client) was inside the Global folder, so for now my vars are something like this:

url = 'my_url'
root
= '/plugins/servlet/confluence/default/Global/chup/ChupiBox/Prueba2/'

 

Thanks for the help, @Slava

 

Have you all a good day.

Slava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2019

Hi Daniel, glad it worked out for you!

Cheers,

Sveatoslav

0 votes
Slava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2019

 

Hello Daniel,

The default URL is:

http://<confluence base URL>/plugins/servlet/confluence/default

For example if your Confluence URL is http://ourconfluence.sample.com/wiki you would enter:

http://ourconfluence.sample.com/wiki/plugins/servlet/confluence/default

For more details please see: https://confluence.atlassian.com/doc/configuring-a-webdav-client-for-confluence-148044.html

 

Cheers,

Sveatoslav

Deleted user August 20, 2019

Hello Sveatosav,

 

Using that URL when my client do client.list() the string (which would bring me a list with the nested files or directories) is empty, when it's not.

 

Here is my code, I'm using the webdav3 library, (I delete the rest of the URL because I'm not authorized to shared it):

 

from webdav3 import client
url = 'http://myurl/chup/plugins/servlet/confluence/default'

usr = 'soporte'

key = '123'

root = '/'

cliente = client.Client(({'webdav_hostname':url,'webdav_login':usr,'webdav_password':key,'webdav_root':root}))cliente.list()

 

Am I putting the URL properly?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events