Page 1 of 1

SOLVED: WebDAV calendar

Posted: Sat Apr 05, 2014 11:21 am
by steveblakemore
Hi, I'm runnung Amahi 7 on Fedora19 and can't use it for a webdav server. :(
The Wiki says that the HDA is a webdav server by default, but when I browse to http:/calendar/ I get a 403 error:

Forbidden
You don't have permission to access / on this server.

I get a similar message (403: Forbidden) when trying to publish a calendar to http://calendar/mycal.ics with Thunderbird and Lightning.

Maybe something went wrong with the Express disc install? Looks like its a web server problem, can anyone help me fix it :?:

Thanks,
Steve

Re: WebDAV calendar

Posted: Sat Apr 05, 2014 11:39 am
by bigfoot65
Have you checked out the wiki?
https://wiki.amahi.org/index.php/Calendars

If I am not mistaken, a calendar has to be published to the HDA before you can access that URL.

I have not tested this feature in Amahi 7, so it could be broken.

EDIT: If it's still not working, please submit a bug report.
https://bugs.amahi.org

Re: WebDAV calendar

Posted: Sat Apr 05, 2014 12:00 pm
by bigfoot65
I think this may be the issue:

As root user, edit this file:

Code: Select all

vi /etc/httpd/conf.d/03-calendar.conf
Comment out the following lines:

Code: Select all

AllowOverride AuthConfig Order allow,deny Allow from all
Add these lines afterwards:

Code: Select all

#Options Indexes FollowSymLinks MultiViews AllowOverride AuthConfig Require all granted Addtype text/calendar .ics
Restart the web server:

Code: Select all

systemctl restart httpd.service
Now try to publish a calendar. If that still does not work, uncomment this line we inserted:
Options Indexes FollowSymLinks MultiViews
Restart the web server:

Code: Select all

systemctl restart httpd.service
Try again. If still nothing, then file a bug as we will need to do more research.

Re: WebDAV calendar

Posted: Sat Apr 05, 2014 2:25 pm
by steveblakemore
Hi, I have done what you said, including uncommenting the added line, and it is working - kind of! The publishing works but I didn't get the feedback I expected from Thunderbird, uually I would expect a "Success!" type message. However the ics files do go into the /var/hda/calendar/html folder, and I can subscribe to them from another laptop.
That was all within the LAN.
Outside the LAN, publishing to http://username.yourhda.com/calendar/mycal.ics OR http://username.yourhda.com/mycal.ics generates a failure status code 503: Service unavailable.
Shall I report a bug? Is it a bug? It seems to be a config error, though I suppose you could class it as an installation bug.

Thanks very much for your help, I appreciate it!
Steve

Re: WebDAV calendar

Posted: Sat Apr 05, 2014 2:34 pm
by steveblakemore
If I am not mistaken, a calendar has to be published to the HDA before you can access that URL.
You're right, that url is now working.
Thanks,
Steve

Re: WebDAV calendar

Posted: Sat Apr 05, 2014 2:47 pm
by bigfoot65
The calendar will not work outside your network unless you make special configuration changes.
https://wiki.amahi.org/index.php/Hosting_a_website

Nothing in your network is exposed outside unless you configure it to do so. Keep in mind, this will require modification of the 03-calendar.conf file.

Also only one app can be exposed at a time.

I see no bug here, other that the changes you had to make to get it working. I will file a bug report for that part.

I presume you are good with this now, other than access outside the network.

EDIT: Bug report has been filed. If I have missed anything, please add it.
https://bugs.amahi.org/issues/1339