-
Notifications
You must be signed in to change notification settings - Fork 233
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
Setting own ProductId or Version has no effect #531
Comments
@axunonb Closing without any comment on this? Can you say if it is a bug or do I make something wrong? If it is a bug is it fixed, will be it fixed or don't? Thank you in advance. |
We closed the issue after 3 years of inactivity. |
So the |
Correct. To clean up, we could make |
I would rather prefer to be able to override the properties with my own values. If the properties are not overridden then the library default values could be used. The specification don't states that it cannot be set to user values. At the moment it is an limitation by the library. What do you think? |
Changing the |
Ok, that makes sense. Then the
So it would be ok for you if the property could be set to a custom value? |
@minichma As there was no PR submitted by @akordowski I'll do that today. |
Issue: `Calendar` has setters for `ProductId` and `Version` which are overridden with fixed values when serializing. - Update the default `PRODID` property `LibraryMetadata.ProdId` to include the ical.net assembly version. Example: "PRODID:-//github.com/ical-org/ical.net//NONSGML ical.net 5.4.3//EN" - Modified `CalendarSerializer.SerializeToString` so that the `ProdId` or `Version` set by users do not get overridden - Add an xmldoc description about the purpose of `ProdId` and `Version`, and about the risks when modified Resolves ical-org#531
Issue: `Calendar` has setters for `ProductId` and `Version` which are overridden with fixed values when serializing. - When creating a new `Calendar` instance, `ProductId` and `Version` contain default values - When Deserializing an iCalendar, `ProductId` and `Version` will be taken from the input - `ProductId` and `Version` can be overridden by user code. An attempt to set as an empty string will throw. - Update the default `PRODID` property `LibraryMetadata.ProdId` to include the ical.net assembly version. Example: "PRODID:-//github.com/ical-org/ical.net//NONSGML ical.net 5.4.3//EN" - Modified `CalendarSerializer.SerializeToString` so that the `ProdId` or `Version` set by users do not get overridden - Add an xmldoc description about the purpose of `ProdId` and `Version`, and about the risks when modified - Add unit tests Resolves ical-org#531
Setting a own ProductId or Version on the Calendar has no effect. The ProductId and Version properties are replaced on the serialization with the library meta data.
https://github.com/rianjs/ical.net/blob/6c03c42bd9e040622ffaa240be856dc531a20823/src/Ical.Net/Serialization/CalendarSerializer.cs#L25-L38
The text was updated successfully, but these errors were encountered: