I was not able to find in the RFC is the content of this field can be on several lines or not, but I think :
1) it's allowed and you might return the entire field
2) it's not allowed and you might return a warning
What do you think ?
Thanks,
Perrine
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
UID property values can be on multiple lines, just like any other property. However, each additional line must be folded, meaning that they must start with a whitespace character. I'm guessing that the lines in your iCalendar file are not folded, which is why it's only reading the first line.
The property should look like this (notice the space characters at the beginning of the second and third lines):
Hello,
when the UID is on several lines, it takes only the first :
UID:040000008200E00074C5B7101A82E0080000000000FA3E125755C5010000000000000=
000100
0000087242B7E2C64C84E84DED6E90ECC946E
System.out.println("UID: "+ical.getEvents().get(0).getUid().getValue());
-> UID: 040000008200E00074C5B7101A82E0080000000000FA3E125755C5010000000000000=
I was not able to find in the RFC is the content of this field can be on several lines or not, but I think :
1) it's allowed and you might return the entire field
2) it's not allowed and you might return a warning
What do you think ?
Thanks,
Perrine
UID
property values can be on multiple lines, just like any other property. However, each additional line must be folded, meaning that they must start with a whitespace character. I'm guessing that the lines in your iCalendar file are not folded, which is why it's only reading the first line.The property should look like this (notice the space characters at the beginning of the second and third lines):
Hello,
you're right, there was no space at the beginnig of the line.
Is it possible to add a warning in this case ?
Thank you for the answer
You should be getting "Skipping malformed line" warnings for those lines.
Thanks,
Mike