Skip to content

org.apache.dubbo.common.utils.ConfigUtils#loadProperties(java.lang.String, boolean, boolean) miss windows scene #2557

Closed

Description

@SuperDubbo

Environment

  • Dubbo version: dubbo-2.6.4
  • Operating System version: windows 10
  • Java version: JDK1.8

When run the testcase(com.alibaba.dubbo.config.AbstractInterfaceConfigTest#checkApplication1) in windows environment,It will be wrong.

So It should add scene judgement in windows environment(org.apache.dubbo.common.utils.ConfigUtils#loadProperties(java.lang.String, boolean, boolean),Line 220).

if (fileName.startsWith("/")) {

change to

if (fileName.startsWith("/")||fileName.matches("^[A-z]:\\\\\\S+$")) {

the testcase (com.alibaba.dubbo.config.AbstractInterfaceConfigTest#checkApplication1) will go well.

Activity

  1. ralf0131 commented on Sep 25, 2018

    @ralf0131
    Contributor

    Hi, thanks for reporting, would you please send a pull request?

  2. added
    help wanted
    on Sep 25, 2018
  3. ralf0131 commented on Sep 26, 2018

    @ralf0131
    Contributor
  4. SuperDubbo commented on Sep 26, 2018

    @SuperDubbo
    ContributorAuthor

    I have pull a request,Thank You @ralf0131

  5. added a commit that references this issue on Sep 26, 2018
    cd7ba29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions