Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import failed when refreshing subscribed calendars #200

Open
jackmort37 opened this issue Nov 11, 2015 · 3 comments
Open

Import failed when refreshing subscribed calendars #200

jackmort37 opened this issue Nov 11, 2015 · 3 comments

Comments

@jackmort37
Copy link

Hi,
Whenever I try to refresh a susbscribed calendar like this one webcal://www.mozilla.org/projects/calendar/caldata/FrenchHolidays.ics, I get 'Import failed' popup with no other clue.
Trying to debug the issue, I came to find an issue in calendarcontroller.php.
On line 505 :

$aMeta = $this -> stream_last_modified(trim($calendar['externuri']));

This returns NULL as fopen doesn't seem to handle the webcal protocol becasue when removing the error suppression on fopen in stream_last_modified method, I can see this in the log :

{"reqId":"VkMCi8CoAQEAAC0S1qUAAACI","remoteAddr":"xx.xx.xx.xx","app":"PHP","message":"fopen(webcal://www.mozilla.org/projects/calendar/caldata/FrenchHolidays.ics): failed to open stream: No such file or directory at /var/www/localhost/htdocs/owncloud/apps/calendarplus/controller/calendarcontroller.php#832","level":3,"time":"2015-11-11T08:55:40+00:00","method":"POST","url":"/index.php/apps/calendarplus/refreshsubscribedcalendar"}

Any fix possible for this issue ?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@JBScoutBerlin
Copy link

Hi,

why not just using http(s) ? for the example URL above at Mozilla the calendar works fine while using http.

regards
Thomas

@jackmort37
Copy link
Author

Hi,
For the example it may work fine, but :

  • I'm not sure it will for other calendars
  • When I tried with https, refreshing the calendar made all events disappear (still investigating and I will probably open another bug).
    Regards.

@JBScoutBerlin
Copy link

Most public calendars that offer ICS-files can be used via http(s), so mostly it will not to bad that the app doesn't act like a calendar client by using the webcal-protocol. if it will so in the future, it will be more like a new feature ;)

About the problem using https: yes, that looks like a bug, I think also.

Best regards
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants