SFTP Bookmark URLs changed

Notes, tips, and other usefull things on how to use LogMX

Moderator: admin

Post Reply
isheedm
Posts: 109
Joined: Wed Sep 12, 2007 2:16 pm

SFTP Bookmark URLs changed

Post by isheedm »

In LogMX v4.0.2, my SFTP bookmark URLs are missing the leading "/" character. I noticed this after upgrading. If I fix them, the changes are kept. It may be an upgrade issue, I'm not sure. Local URLs are OK.
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: SFTP Bookmark URLs changed

Post by admin »

Hello,

Since LogMX v4.0.1, all SCP/SFTP URLs created with LogMX < v4.0.1 are converted according to the new URL format that can now support IP v6 addresses:

old format:

Code: Select all

PROTOCOL://LOGIN@HOST:[PORT:]FILE
new format:

Code: Select all

PROTOCOL://LOGIN@HOST[:PORT]/FILE
You're right, the v4.0.0 URL:
"sftp://user@host:/home/user/file.log" is converted by LogMX v4.0.1 (and v4.0.2) to:
"sftp://user@host/home/user/file.log", which means path "home/user/file.log" and not "/home/user/file.log".
I think it is a bug, but I'm not sure: during our tests, several SFTP servers managed to open the converted URLs. Surely because these SFTP servers make the assumption that the given path is absolute even if not starting with "/"... :?: Do your converted URLs work? If it doesn't: which STFP server are you using?

Xavier
isheedm
Posts: 109
Joined: Wed Sep 12, 2007 2:16 pm

Re: SFTP Bookmark URLs changed

Post by isheedm »

The converted URLs don't work for me, that is how I found the issue.

I'm connecting to a Red Hat Linux machine with OpenSSH_4.3p2 installed.
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: SFTP Bookmark URLs changed

Post by admin »

OK. Sorry for the inconvenience. We will then fix this conversion procedure.
But only pre-v4.0.1 URLs conversion can be fixed, since already converted URLs can't be fixed anymore (some users may have already added the missing trailing "/", or maybe someone has created a new URL like "mydir/myfile" to use a relative path...).

Xavier
isheedm
Posts: 109
Joined: Wed Sep 12, 2007 2:16 pm

Re: SFTP Bookmark URLs changed

Post by isheedm »

That is OK. I fixed the issue in my Bookmarks already. I wanted to report the issue though.
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: SFTP Bookmark URLs changed

Post by admin »

OK thanks. We will fix it though, so that users upgrading from pre-v4.0.0 to v4.1.x+ will not have this issue :wink:
Last edited by admin on Sun Sep 08, 2013 7:40 pm, edited 1 time in total.
Reason: Fixed targeted new version (v4.1.0)
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: SFTP Bookmark URLs changed

Post by admin »

Hello,

LogMX v4.1.0 is now released and includes a fix for this bug.
Post Reply