Csv export will fail to send prepared file, when it's name (without extension) will end with one of this symbols: ".", "c", "s", "v"

1 view
Skip to first unread message

Alexander Obuhovich

unread,
Nov 12, 2009, 5:36:05 AM11/12/09
to in-port...@googlegroups.com
Csv export will fail to send prepared file, when it's name (without extension) will end with one of this symbols: ".", "c", "s", "v". This happens because rtrim is used to remove file extension and it will also remove any of extension symbols from end of the filename. Checked other places in system, where rtrim is used and they are fine.

--
Best Regards,

http://www.in-portal.org
http://www.alex-time.com

Dmitry A.

unread,
Nov 18, 2009, 1:47:33 PM11/18/09
to In-Portal Bugs
Good catch! I guess to have noticed that one on some live
project... :)

Do we have a solution/patch for this problem yet?


DA.

Alexander Obuhovich

unread,
Nov 18, 2009, 1:49:28 PM11/18/09
to in-port...@googlegroups.com
Solution is simple: don't use trim, but just cut ending of file using "substr" function as we do during mod-rewrite url parsing, when we cutting ".html" from url.

--

You received this message because you are subscribed to the Google Groups "In-Portal Bugs" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.


Dmitry A.

unread,
Dec 16, 2009, 12:30:47 PM12/16/09
to In-Portal Bugs
Alex,

I suppose we need a task for it? Please correct me if I am wrong and
already has been fixed.


DA.

On Nov 18, 12:49 pm, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> Solution is simple: don't use trim, but just cut ending of file using
> "substr" function as we do during mod-rewrite url parsing, when we cutting
> ".html" from url.
>
>
>
>
>
> On Wed, Nov 18, 2009 at 8:47 PM, Dmitry A. <dandre...@gmail.com> wrote:
> > Good catch! I guess to have noticed that one on some live
> > project... :)
>
> > Do we have a solution/patch for this problem yet?
>
> > DA.
>
> > On Nov 12, 4:36 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> > > Csv export will fail to send prepared file, when it's name (without
> > > extension) will end with one of this symbols: ".", "c", "s", "v". This
> > > happens because rtrim is used to remove file extension and it will also
> > > remove any of extension symbols from end of the filename. Checked other
> > > places in system, where rtrim is used and they are fine.
>
> > > --
> > > Best Regards,
>
> > >http://www.in-portal.orghttp://www.alex-time.com
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "In-Portal Bugs" group.
> > To post to this group, send email to in-port...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go­oglegroups.com>
> > .

Alexander Obuhovich

unread,
Dec 16, 2009, 1:43:09 PM12/16/09
to in-port...@googlegroups.com
I'm pretty sure, that there are no corresponding tasks for all
discussions I've started, because if I find one, then I post link to
it in my first post.
> in-portal-bug...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/in-portal-bugs?hl=en.
>
>
>

--
Sent from my mobile device

Dmitry A.

unread,
Dec 16, 2009, 2:38:48 PM12/16/09
to In-Portal Bugs
New bug reported here:

452: CSV Export fails to send prepared File when it's name (without
extension) will end with one of this symbols: ".", "c", "s", "v"

http://tracker.in-portal.org/view.php?id=452


DA.

On Dec 16, 12:43 pm, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> I'm pretty sure, that there are no corresponding tasks for all
> discussions I've started, because if I find one, then I post link to
> it in my first post.
>
Reply all
Reply to author
Forward
0 new messages