[Mono-dev] Problem with PackagePart URI containing spaces

mhartmann mhartmann at vr-web.de
Mon Nov 23 12:21:21 EST 2009


Hi,

I entered a new bug entry :
https://bugzilla.novell.com/show_bug.cgi?id=557797 Bug 557797 

Best regards,
Martin


Alan McGovern-2 wrote:
> 
> You want to file it under Mono: Class Libaries product. Unfortunately
> there's no component for the WindowsBase dll, so for the moment just use
> 'System'. I'm going to get in touch with our bugzilla guy and try to get a
> WindowsBase component put up there. If you are filing bugs, do look out
> for
> it as it should be there within a day or so.
> 
> Thanks,
> Alan.
> 
> p.s. You forgot to hit 'reply-all' with your last email. I've added the
> mailing list back into the CC but just look out for that in future.
> 
> On Mon, Nov 23, 2009 at 2:51 PM, <mhartmann at vr-web.de> wrote:
> 
>> Hi,
>>
>> can you give me a hint which Product / Component shall I use when I'm
>> entering a new bug?
>>
>> Thanks,
>> Martin
>>
>> Alan McGovern-2 wrote:
>> >
>> > Hi,
>> >
>> > Thanks for the bug report. Would you be able to file the issue on
>> bugzilla
>> > (with the testcase) and assign it to me (amcgovern at novell.com). That
>> way
>> I
>> > can fix it and have the paper trail to verify the fix works.
>> >
>> > If you come across any other issues, just assign them directly to me on
>> > bugzilla.
>> >
>> > Thanks,
>> > Alan.
>> >
>> > On Mon, Nov 23, 2009 at 11:53 AM, mhartmann <mhartmann at vr-web.de>
>> wrote:
>> >
>> >>
>> >> Hi,
>> >>
>> >> I'm trying to read packages that were created with System.IO.Packaging
>> on
>> >> a
>> >> Windows machine using .NET.
>> >>
>> >> It seems that that there is a problem with PackageParts that contain
>> >> spaces
>> >> in the specified package URI.
>> >>
>> >> Using the following code produces different results on .NET / Mono:
>> >>
>> >> string fileName = "Test.zip";
>> >> Uri uri = PackUriHelper.CreatePartUri(new Uri("/My Folder/Test.txt",
>> >> UriKind.Relative));
>> >>
>> >> using (Package package = Package.Open(fileName, FileMode.Create))
>> >> {
>> >>    PackagePart part = package.CreatePart(uri,
>> >> System.Net.Mime.MediaTypeNames.Text.Plain);
>> >>    using (StreamWriter sw = new StreamWriter(part.GetStream()))
>> >>    {
>> >>        sw.WriteLine("Hello World");
>> >>    }
>> >> }
>> >>
>> >> On Linux using Mono the ZIP file contains a folder "My Folder", but
>> with
>> >> Windows and .NET the name of the folder is escaped ("My%20Folder").
>> >>
>> >> Best regards
>> >> Martin
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26476712.html
>> >> Sent from the Mono - Dev mailing list archive at Nabble.com.
>> >>
>> >> _______________________________________________
>> >> Mono-devel-list mailing list
>> >> Mono-devel-list at lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> >>
>> >
>> > _______________________________________________
>> > Mono-devel-list mailing list
>> > Mono-devel-list at lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> >
>> >
>> Quoted from:
>>
>> http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26478275.html
>>
>>
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 

-- 
View this message in context: http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26482340.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list