Open phlegx opened 5 years ago
GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/8698 (need a group or folder for all user), https://github.com/nextcloud/server/issues/7340 (Show circle name in details of a shared file (group user)), https://github.com/nextcloud/server/issues/866 (Calendar Share Functionality missing), https://github.com/nextcloud/server/issues/10347 (Make shares visible to other users), and https://github.com/nextcloud/server/issues/3801 (Adding appointment into shared calendar fails).
cc @georgehrke
any further activity on this one? We badly need this feature (and was surprised not to see other similar comments here). Open to give bounty for this.
Nope, biggest help here would be someone sending a pull-request. Happy to give instructions.
Ok I'll try to understand if it's possible for me to help (in a few days) and submit a pull request, thanks.
Ideally it'd be possible to do this for calendar links as well. (And to be able to generate links for both full access and free/busy simultaneously.) Google Calendar for example only lets you do one or the other at any given time.
@stefanoco Would you like add to my bounty on this? I have a couple of freelance programers who I am working with on other projects, they might be able to contribute on short notice....
@georgehrke Could we setup a group chat somewhere for us and the programers, to discuss scope and for you to give clear directions? Could make life easier, in the end...
This would be really important to avoid accidentally publishing event details to a shared calendar. Right now, events seem to default to "when shared, show full event". This may accidentally expose private information when creating an event from a phone or app that doesn't expose the "when shared show" field.
Is it possible to change the default value for "when shared show" field to "when shared, show only busy"?
Hello, any news on this feature? @stefanoco would you still be ready to work on this great feature? Thank you in advance!
Unfort I didn't have time to look after this and don't see any possibilities in the near future so I'd like to add to the bounty. Anyone willing to solve?
As a workaround, and within our organisation, I use the free-busy feature of caldav within Thunderbird: https://docs.nextcloud.com/server/latest/admin_manual/groupware/calendar.html#freebusy
As a workaround, and within our organisation, I use the free-busy feature of caldav within Thunderbird: https://docs.nextcloud.com/server/latest/admin_manual/groupware/calendar.html#freebusy
This sounds interesting, but I do not understand directly how that works. Could you please briefly give an idea of your setup?
I suppose this is still valid on NC21.0.2?
As a workaround, and within our organisation, I use the free-busy feature of caldav within Thunderbird: https://docs.nextcloud.com/server/latest/admin_manual/groupware/calendar.html#freebusy
Did anyone figure out, how this works? Unfortunately is very little information online about this workaround… All I could find out so far is that this feature is probably used when creating a new appointment and then pressing the "Invite Attendees" button.
This is it @trevor87 ! Nothing more to do
OK, thanks I think I figured it out now. So for everyone who runs into this problem, the workaround is simply the following:
If you use thunderbird and want to see whether your colleagues are available just doubleclick in the Thunderbird Calendar to create a new event and then in the next view click on "Invite Attendees". When you enter a mail address of someone who is also using your nextcloud instance, it will show when the other person has appointments. In my case for some reason it shows the other people's appointments as "no information", which I find rather confusing.
Otherwise: Still trying to figure the rest out. Hope this helps!
@trevor87 Thanks. That is about what Outlook does. My issue with this approach is that I don't only need my employees using NC and TB to be able to see when they may invite me, but also my customers. Therefore I'd like two things to be available: a NC web interface "free only" view for those who have an account on my server, and a publicly sharable calendar (similar to what Google Calendar provides). But maybe this is not the right place to ask for the latter.
I also would like to stress what @nursoda mentioned recently: I also need it to be able to publish a calendar externally, but I want all the time slots to simply say "busy" so that I can share my calendar anywhere with clients without revealing what I'm doing
If there is any work already going on, I'm happy to contribute, but this ticket doesn't mention a branch or any work in progress. Let me know... would be happy to participate
@qq7te we'll soon look into https://github.com/nextcloud/calendar/issues/1023. This might be necessary for that but maybe it's not. I'll let you know if we have to work on this specific ticket.
We'll soon look into nextcloud/calendar#1023. This might be necessary for that but maybe it's not.
Well, "appointments" were implemented, but nothing to help "share/show busy only".
I try to sum up my understanding of this issue and my needs in more detail: We need a new? endpoint that returns only pruned events matching restrictions which a user should be able to set. Such filters might be
/settings/user/groupware
The OP's request was to be able to share such restricted view within the nextcloud instance. I second that. This probably would be a checkbox "show only as busy" in the calendar's prefs. Since such restricted calendar view should be available to other clients such as Thunderbird, too, just a restricted view within the calendar app doesn't seem sufficient from a security perspective.
My usecase is an enhancement to the OP's request: In the Calendar app, a user should be able to "Share free/busy link" (below "Share link"); an URL that renders a web view with buttons to switch view and move in time, but without e.g. the possibility to download that calendar, that renders the filtered/pruned events.
For me, any web view would suffice. A further enhancement would be have a user setting that either renders a full-fledged view with top bar (cloud and/or calendar name, etc.) or just a minimal (embed-style) view.
I was happy to see this OP request, as this is exactly what's missing to make Nexcloud the Google Calendar successor.
For now, it is not possible to have a private Calendar shared with team-mates as "show only busy times". (A second "private" calendar is needed as CalendarApps using CalDAV do not support the per-appointment-setting "show full details / as busy / not at all").
Is there any active development for this feature? (Or a workaround to for private entries via CalendarApps?)
Thanks everyone for contributing to Nextcloud! paradeiser
I just wonder if this would be better off at https://github.com/nextcloud/calendar ? Does it make sense to cross post it there as well?
There is https://github.com/nextcloud/calendar/issues/1044 and https://github.com/nextcloud/calendar/issues/725 which point to this issue
Maybe a workaround could be found with the Calcleaner project : see my open issue here https://github.com/flozz/calcleaner/issues/3
In short: automate a caldav tool (in python) to add "visibility settings" to created events (CLASS:CONFIDENTIAL). Thus a standard NC share of the calendar would show only date/time.
I have similar issue ...we want to share calendar inside NC instance and we want that always the shared calendar show the events as 'Busy'.. i know that exist de free/busy option when you create and event...but sometimes is more easy that multiple users share the calendar to me and i can found a slot very fast in the 'calendar page'. i don't need to create an event, add attendants, find free slot for everyone etc..
I'm testing this stupid workaround that i make:
Edit file apps/dav/lib/CalDAV/CalendarObject.php search get() function.. in this version i have something like this:
// shows as busy if event is declared confidential
if ($this->objectData['classification'] === CalDavBackend::CLASSIFICATION_CONFIDENTIAL) {
$this->createConfidentialObject($vObject);
}
if you remove this if clause (keeping $this->createConfidentialObject($vObject);
obviously) you'll see all events as Busy at shared calendars.
If someone knows if this is a very bad idea please tell me :D , I can't find any bugs or problems so far.
Hi, The per-event and per-calendar workaround isn't really the same feature. In my use case, i need to share the free/busy for users that use multiple calendars for multiple projects. Currently, the free/busy info are taken from all the cal a user own (if i have good information), so it is far most complete than just share one cal. Is the per-user free/busy share the same issue, from an internal Nextcloud point-of-view ?
For detail my previous comment (i've found it when searching again for this feature :) : My use case : i work with many music / theater shows. One calendar each (that i'm or not owner), but not all want to use NC. I also have many other shared calendars for associative life etc, that don't should be used for free/busy... So, many frends, productions and tour managers need to know when i'm available (sometime from goo**e things).
That i can imagine a good way :
The "confidential trick" said before can't work for me (already tried) because if i add an event in a shared cal, only the cal owner can see it. In my case, a "personal / user point-of view" of the free/busy information, and all information are not necessarily in one calendar.
I think that the current state of calendar sharing work well for a monolitic organization (one NC instance / one orga) but is complicated for one-by-one (inter-users or user-to-external-world) organization.
Thanks a lot for all the work in all cases !
Yes, I'm agreed, that would be a nice and important('must have') feature. I want to add that the workaround above have a bug with recurrent events. i created an issue here: https://github.com/nextcloud/calendar/issues/5555
+1
Is this still open for NC28?
To whom it may concern.
We have a Nextcloud setup in use and a lot of different user clients including MS Outlook and Thunderbird (with CalDav).
Finding free meeting slots was constantly hard to manage because of hidden "private" events of MS Outlook users. The behaviour is described a lot in different issues here on github.
With the hint of @section1 (thanks alot here) we managed to extend his solution to show all events as "Busy"-timeslot. So this includes "confidential" and "private" types.
Here is the solution:
In /nextcloud/apps/dav/lib/CalDAV/CalendarObject.php
we handled private events separatly with
class CalendarObject extends \Sabre\CalDAV\CalendarObject {
public function get() {
// ... other code of the function
// shows as busy if event is declared confidential
if ($this->objectData['classification'] === CalDavBackend::CLASSIFICATION_CONFIDENTIAL) {
$this->createConfidentialObject($vObject);
}
// code added here !!!!!!!!!!!!!!!!!!!!
// shows as busy if event is declared private
if ($this->objectData['classification'] === CalDavBackend::CLASSIFICATION_PRIVATE) {
$this->createConfidentialObject($vObject);
}
// ... other code of the function
}
To get this working we had to drop the filters for private event in /nextcloud/apps/dav/lib/CalDAV/Calendar.php
as well.
We changed the behaviour in the following functions.
Simply by commenting out the CLASSIFICATION_PRIVATE
test/condition for every section/function like below:
//if ($obj['classification'] === CalDavBackend::CLASSIFICATION_PRIVATE && $this->isShared()) {
// return false;
//}
So the filtering is done in the CalendarObject.php
only
If you interested in this. You can test this in your live system directly without any restart. Please be careful to do not mess up with the other code. Please also tell your thunderbird users about the visibility of "private" events as well.
As a result nextcloud will show every event in the Nextcloud calendar. It works even with the sync by Thunderbird and Outlook (CalDav) showing "Busy" slots (maybe a solution for the workflow of @wargreen . This does the trick for us and we are really happy with the solution.
For your decission to patch, please mention that this is a workaorround only and it may leak out data like e.g. described in https://github.com/nextcloud/calendar/issues/5555
If anyone can help me to make an option in the admin setting (or even calendar wise) i am interested to make a Pull-request to have a general opt-in solution for all nextcloud users.
@mdrobisch thank you for your input, this was not the intention of the ticket.
We want to modify the sharing options in a way, so that the sharing user can decide to hide all events, no matter, what kind and just provide the busy information. Modifying each and every event can cause quite a huge security risk.
Sure thing. Maybe https://github.com/nextcloud/calendar/issues/4782 fits better, or even one of the other issues. They imho describe all some different aspects of the same topic. So for me it is hard to figure out where my findings fits best. Hopefully my workarround here can help people that also want a more "MS Outlook/Exchange" like behaviour of showing/hiding private events.
UPDATE: This might be especially interesting for people using nextcloud as a company/enterprise solution.
If i can help please let me know.
Modifying each and every event can cause quite a huge security risk.
Please let me put one addition here to clear things out. My approach do not alter events. It is just about change the filter to let "private" events to be shown as "busy" events in CalendarObject.php
.
yes totally get that, but all non "private" events will be shown - right?
and yes https://github.com/nextcloud/calendar/issues/4782 seems to be the very same issue ...
yes totally get that, but all non "private" events will be shown - right?
Yes, all events that are not "private" nor "confidential" are shown/shared as normal (with all informations).
Thank you for the hint. You are right. This solution fits best with https://github.com/nextcloud/calendar/issues/4782 not with this one here.
Steps to reproduce
Expected behaviour
After the steps to reproduce the behavior I want to choose an option "show only as busy". So, that the selected user or group can see my complete calendar but without details. This option is missing.
I know that it is possible for a single event to "show only as busy". But what if I want to have this for a specific user or group for the complete calendar?
Actual behaviour
After the steps to reproduce the behavior there is only an option "can edit" for the chosen user or group.
Server configuration
Nextcloud version: 13.0.6 Nextcloud calendar version: 1.6.1