Menu

#1461 colon not working as fs separator

version 2.4.x
open-fixed
text table (1)
1
2019-06-04
2016-12-28
No

A text table named hello.txt containing only "hello:world" returns "Access is denied" or "constraint violation" when
SET TABLE iedict SOURCE "hello.txt;fs=:"
is executed. Changing only the colon in hello.txt and the fs value in SET TABLE to another separator, e.g., "!" or "\semi", succeeds.

2 Attachments

Discussion

  • Fred Toussi

    Fred Toussi - 2016-12-28

    When parsing the text source string, it checks for the colon character as a filepath character and disallows it to avoid absolute references to files such as
    SET TABLE iedict SOURCE "c:hello.txt;fs=|"
    Knowing that, you should be able to get it to work by setting the system property allow_full_path which is documented in the Guide, Properties chapter

     
    • George Herson

      George Herson - 2016-12-28

      Hi Fred,
      I had tried that, and just tried again.  I get the same error, Access denied.
      I referenced the bare filename as shown below, and attempted again with the full filespec (both forward and backward slashes).  All attempts return Access denied.

      Does it work for you?
      May be worth enabling a \colon special indicator.
      Thank you,George H

       

      Last edit: Fred Toussi 2016-12-28
  • Fred Toussi

    Fred Toussi - 2016-12-28

    Thanks for reporting it. We've had text tables for 14 years and this is the first time someone has tried to use the colon as separator. I will enable \colon escape as you suggested.

     

    Last edit: Fred Toussi 2016-12-28
  • Fred Toussi

    Fred Toussi - 2016-12-28

    In the meantime, use allow_full_path as suggested in the Guide as a system property (not a connection property). You do this by adding a -D switch to the Java command.

    Or better, use the \u003A unicode escape sequence

    SET TABLE iedict SOURCE "c:hello.txt;fs=\u003A"

     

    Last edit: Fred Toussi 2016-12-28
    • George Herson

      George Herson - 2016-12-28

      clever, thanks.

       
  • Fred Toussi

    Fred Toussi - 2016-12-29
    • status: open --> open-fixed
    • assigned_to: Fred Toussi
    • Priority: 5 --> 1
     
  • Fred Toussi

    Fred Toussi - 2016-12-29

    Support for \colon escape for separators added to SVN.

     
  • Fred Toussi

    Fred Toussi - 2017-03-05
    • Group: current-release --> version 2.3.5 - 2.4.0
     

Log in to post a comment.