SOLVED: WebDAV calendar

steveblakemore
Posts: 38
Joined: Tue Jan 19, 2010 11:41 am
Location: Spain

SOLVED: WebDAV calendar

Postby steveblakemore » Sat Apr 05, 2014 11:21 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: WebDAV calendar

Postby bigfoot65 » Sat Apr 05, 2014 11:39 am

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
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: WebDAV calendar

Postby bigfoot65 » Sat Apr 05, 2014 12:00 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

steveblakemore
Posts: 38
Joined: Tue Jan 19, 2010 11:41 am
Location: Spain

Re: WebDAV calendar

Postby steveblakemore » Sat Apr 05, 2014 2:25 pm

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

steveblakemore
Posts: 38
Joined: Tue Jan 19, 2010 11:41 am
Location: Spain

Re: WebDAV calendar

Postby steveblakemore » Sat Apr 05, 2014 2:34 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: WebDAV calendar

Postby bigfoot65 » Sat Apr 05, 2014 2:47 pm

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
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 24 guests