[Yanel-usage] Calendar Bug

Darius Miliauskas dariui.miliauskui at gmail.com
Fri Jun 28 12:23:30 CEST 2013


Dear Michael,

I tried to play with Lithuanian characters.

the case of '&' is different:

*new-host:yanel kristinaslekyte$ xmllint
/Users/kristinaslekyte/src/yanel/src/realms/use-cases/yanel/data/fcb484fb-c5a5-44d4-9869-84bbb519c99b
*
*/Users/kristinaslekyte/src/yanel/src/realms/use-cases/yanel/data/fcb484fb-c5a5-44d4-9869-84bbb519c99b:4:
parser error : EntityRef: expecting ';'*
*  <cal:summary>I&You</cal:summary>*
*                    ^*

I tried several encoding (ISO-8859-1, UTF-16, UTF-8 etc.), it does not
solve the problem as well.
So, I need to modify the code in order to solve the problem of characters,
don't I?

but the new created XML files are found in the
"src/realms/use-cases/yanel/data" directory. The content of the Calendar
directory is always the same - the same three files for old events (old, I
mean, these which I did not create, they came with installation), including
3d05ae36-b8a3-4149-9f8b-fcf0203b52b9.xml, which you mentioned. I checked
the data-path/calendar directory, there are folders created for every event.


BW,

Darius



2013/6/27 Michael Wechner <michael.wechner at wyona.com>

>  Dear Darius
>
> Am 27.06.13 13:58, schrieb Darius Miliauskas:
>
>  Dear Michael,
>
>  yes, I got it. I added the ending ".xml", and it did not work. There
> were two problems:
>
>  a) when I create a new event, a new file for the calendar event is
> created not in the directory of Calendar, but in the directory of Data.
>
>
> The realm "use-cases" is using a special repository implementation which
> is adding references into
>
> src/realms/use-cases/yanel/data-paths
>
> like for example
>
>
> src/realms/use-cases/yanel/data-paths/calendar/3d05ae36-b8a3-4149-9f8b-fcf0203b52b9.xml/.yarep-uid
>
> and when you open this file, then you will see a reference
> /calendar/3d05ae36-b8a3-4149-9f8b-fcf0203b52b9.xml
> which means the actual content can be found at
>
>
> src/realms/use-cases/yanel/data/calendar/3d05ae36-b8a3-4149-9f8b-fcf0203b52b9.xml
>
> which means I am very sure there exists for each event a reference inside
> the directory
>
> src/realms/use-cases/yanel/data-paths/calendar/
>
>
>  b) it's created without the ending ".xml" despite the fact that it is an
> xml type file. Therefore, I shouldn't add the ending ".xml".
>
>
> an XML file does not have to have the suffix ".xml", only the content
> itself counts
>
>
>
>  The problem regarding the calendar. Yes, I see that strange symbols are
> given instead of the symbol "ü <http://en.wikipedia.org/wiki/%C3%9C>" in
> the event.
>
>  My tests are given below:
>
>  1) testing the file frm the Calendar directory:
> new-host:yanel kristinaslekyte$ xmllint
> /Users/kristinaslekyte/src/yanel/src/realms/use-cases/yanel/data/calendar/3d05ae36-b8a3-4149-9f8b-fcf0203b52b9.xml
> <?xml version="1.0"?>
> <cal:event xmlns:cal="http://..." <http://...> created="20061205T225120Z"
> last-modified="20061205T225120Z" dtstamp="20061205T225120Z"
> uid="3d05ae36-b8a3-4149-9f8b-fcf0203b52b9" class="PUBLIC"
> categories="Conference">
>   <cal:summary>Yulup/Neutron Presentation at XML Conference
> 2006</cal:summary>
>   <cal:location>Sheraton Boston Hotel</cal:location>
>   <cal:dtstart value="DATE" tzid="Europe/Zurich:20061206T133000"/>
>   <cal:dtend value="DATE" tzid="Europe/Zurich:20061206T143000"/>
> </cal:event>
>
>   2) testing a new created file frm the Data directory:
> new-host:yanel kristinaslekyte$ xmllint
> /Users/kristinaslekyte/src/yanel/src/realms/use-cases/yanel/data/2043476d-8fd7-4a89-adfd-e98428e74324
> <?xml version="1.0"?>
> <cal:event xmlns:cal="http://..." <http://...> created="20130624T160555Z"
> last-modified="20130624T160702Z" dtstamp="20130624T160702Z"
> uid="0c212c78-c68f-0848-9515-7aed78258a11">
>   <cal:summary>St. John Day</cal:summary>
>   <cal:location>Lithuania</cal:location>
>   <cal:dtstart value="DATE" tzid="Europe/Vilnius:20130623T190000"/>
>   <cal:dtend value="DATE" tzid="Europe/Vilnius:20130624T225900"/>
> </cal:event>
>
>  3) testing another new created file frm the Data directory:
>  new-host:yanel kristinaslekyte$ xmllint
> /Users/kristinaslekyte/src/yanel/src/realms/use-cases/yanel/data/b7594997-6a29-4382-b1ed-d380eb6af7aa
> <?xml version="1.0"?>
> <cal:event xmlns:cal="http://..." <http://...> created="20130624T161605Z"
> last-modified="20130624T161711Z" dtstamp="20130624T161711Z"
> uid="d1499b44-8792-4041-9750-ec0ff8734ffd">
>   <cal:summary>A Day of &#x221A;&#xBA;!</cal:summary>
>   <cal:location>Z&#x221A;&#xBA;rich!</cal:location>
>   <cal:dtstart value="DATE" tzid="Europe/Vilnius:20130624T200000"/>
>   <cal:dtend value="DATE" tzid="Europe/Vilnius:20130624T210000"/>
> </cal:event>
>
>
> which means you cannot reproduce generating a not well-formed XML.
>
> Have you tried characters like '&'?
>
> Thanks
>
> Michael
>
>
>  BW,
>
>  Darius
>
>
> 2013/6/26 Michael Wechner <michael.wechner at wyona.com>
>
>> Dear Mirek
>>
>> I am not sure what you are refering to by saying "I think it could be a
>> problem with paths (absolute or relative)"...?
>>
>> Are you able now to run xmllint?
>>
>> When I run xmllint on an existing file, then I receive the following
>> output:
>>
>> xmllint
>> src/realms/use-cases/yanel/data/calendar/3d05ae36-b8a3-4149-9f8b-fcf0203b52b9.xml
>>
>> <?xml version="1.0"?>
>> <cal:event xmlns:cal="http://..." <http://...>created="20061205T225120Z" last-modified="20061205T225120Z"
>> dtstamp="20061205T225120Z" uid="3d05ae36-b8a3-4149-9f8b-fcf0203b52b9"
>> class="PUBLIC" categories="Conference">
>>   <cal:summary>Yulup/Neutron Presentation at XML Conference
>> 2006</cal:summary>
>>   <cal:location>Sheraton Boston Hotel</cal:location>
>>   <cal:dtstart value="DATE" tzid="Europe/Zurich:20061206T133000"/>
>>   <cal:dtend value="DATE" tzid="Europe/Zurich:20061206T143000"/>
>> </cal:event>
>>
>> Can you reproduce this?
>>
>> Thanks
>>
>> Michael
>>
>> Am 26.06.13 07:30, schrieb Darius Miliauskas:
>>
>>> Dear Michael,
>>>
>>>  thanks, I read the information about xmllint you gave! I tried:
>>>
>>> new-host:yanel kristinaslekyte$ xmllint
>>> src/realms/use-cases/yanel/data/2043476d-8fd7-4a89-adfd-e98428e74324.xml
>>> warning: failed to load external entity
>>> "src/realms/use-cases/yanel/data/2043476d-8fd7-4a89-adfd-e98428e74324.xml"
>>>
>>> I think it could be a problem with paths (absolute or relative).
>>>
>>>
>>> BW,
>>>
>>> Darius
>>>
>>>
>>>
>> --
>> Yanel-usage mailing list Yanel-usage at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage
>>
>
>
>
>
>
> --
> Yanel-usage mailing list Yanel-usage at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-usage
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-usage/attachments/20130628/ca63fed2/attachment.html>


More information about the Yanel-usage mailing list