Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#103 getDisplayablePath corrupts path

0.7.0
open
nobody
None
5
2012-10-29
2006-04-20
Matthias K
No

getDisplayablePath seems to corrupt the path if there
is no password but a username given. e.g.
ftp://anonymous@ftp.somehost.de/ becomes
ftp@somehost.de/. This is because of the regular
expression which tests for (:([^@:]*)@), i.e. from ":"
to "@". I have not that much experience with regulare
expressions, otherwise I would fix it on my own...

Discussion

  • sky_HALud
    sky_HALud
    2006-04-25

    Logged In: YES
    user_id=940779

    Yes, I can reproduce this. While the end result of the user
    friendly display is nice to have, the implementation with
    regular expressions is tricky. I instead proposed this
    feature request in the Commons Bugzilla database:
    http://issues.apache.org/bugzilla/show_bug.cgi?id=39399

    Let's see how things go with that feature request and see
    after that how we deal with the present bug and feature.