Special character (Semicolon) issue in attached file name.

Dec 8, 2014 at 7:51 AM
Edited Dec 8, 2014 at 7:52 AM
Hi Higty,

I have used latest version Higlabo but still while fetching attached file name its not giving proper file name
i.e If i attached file name like "Test123;12.pdf" while debugging its giving me file name like "Test123" only.
please give us solution on this.
Dec 9, 2014 at 4:49 AM
Hi higty,

Please give me reply. I am waiting for your reply.

Here i have attached image please find it.

http://speedy.sh/ZPR6X/Semicolon-Issue-Higlabo.png
Dec 9, 2014 at 12:28 PM
Edited Dec 9, 2014 at 12:29 PM
Hi Higty,
 As per the discussion i have uploaded reproduct code and data with project file.

 Please find below link to download the source code and project.

 https://www.mediafire.com/?kgs3lqgsa2a179e
Coordinator
Dec 9, 2014 at 10:09 PM
Hi.

Thank you for you uploading reproduct code.
But unfortunately, I could not find that link does not work.
Please reupload another one?
Dec 10, 2014 at 6:16 AM
Edited Dec 10, 2014 at 8:16 AM
Hi,
Find new links where you can download the source code and project 
http://www.filedropper.com/higlabolatest

https://www.mediafire.com/?kgs3lqgsa2a179e

This is how it appears when you click mediafire link.

Image
Dec 10, 2014 at 6:32 AM
Edited Dec 10, 2014 at 7:51 AM
Sorry I can't my post.
Coordinator
Dec 10, 2014 at 11:21 PM
Hi Nil_430.

I can download it from filedropper but I could not open it because zipx format.
Please upload as .zip file.

regards.
Dec 11, 2014 at 3:59 AM
Hi,

Rename that file name as .zip after that you can able to open that file.
Coordinator
Dec 11, 2014 at 11:21 PM
Hi.

I can open project file.
And I reproduct bug with it.
I'll modify this bug in next week.


sincerely.
Coordinator
Dec 16, 2014 at 6:44 AM
Hi.

I found this bug is little bit nasty, and now I try to thinking that how the design should be.
Please wait more few days...
Coordinator
Dec 24, 2014 at 6:30 AM
Hi.

I found a way to implement it.
Please wait.

regards.
Coordinator
Dec 26, 2014 at 4:56 AM
Hi.

Finally, I modified bug about this issue.
Now library parse like below.
Name=\"MyFile;01.pdf\" --> MyFile;01.pdf
Name=MyFile\"05.pdf --> MyFile\"05.pdf
And I added test code to HigLabo.Mime.Test project.
            contentType = new ContentType();
            contentType.RawValue = "Image/png;\r\n"
                + "\tName=\"MyFile;01.pdf\";";
            parser.ParseContentType(contentType);
            Assert.AreEqual("MyFile;01.pdf", contentType.Name);

            contentType = new ContentType();
            contentType.RawValue = "Image/png;\r\n"
                + "\tName=MyFile\"05.pdf;";
            parser.ParseContentType(contentType);
            Assert.AreEqual("MyFile\"05.pdf", contentType.Name);

            contentType = new ContentType();
            contentType.RawValue = "Image/png;\r\n"
                + "\tName=\"MyFile\"06.pdf\";";
            parser.ParseContentType(contentType);
            Assert.AreEqual("MyFile\"06.pdf", contentType.Name);

            //Maybe...
            contentType = new ContentType();
            contentType.RawValue = "Image/png;\r\n"
                + "\tName=\"MyFile\"07.pdf;\r\n" 
                + "\tcharset=\"UTF-8\"";
            parser.ParseContentType(contentType);
            Assert.AreEqual("\"MyFile\"07.pdf;", contentType.Name);
Updoad Zip file to here.
https://higlabo.codeplex.com/releases/view/522972

Thank you for your contribution.
Dec 26, 2014 at 10:45 AM
Edited Dec 26, 2014 at 10:45 AM
Thanks Higty for fixing this issue !!! will ping you back if we found any issue !!! Thanks again...
Coordinator
Jan 8, 2015 at 8:24 AM
Hi rickjackson.

I'm glad to help you!