Skip to content

Bug: Invalid Log File Path Construction on Windows (v7.0.1) #67

@dsantananet

Description

@dsantananet

When launching behave-v7.0.1.jar on Windows, the application crashes due to a malformed log path.

Details 📊

  • OS: Windows 10/11
  • Java: OpenJDK 17
  • Version: Behave v7.0.1
  • Error Log Extract:
Logging to: C:\Users\DSANT\Downloads\C:Users\DSANT\.behave\logs
FileNotFoundException: ... (The filename, directory name, or volume label syntax is incorrect)

Cause 🔍

Absolute paths are being treated as relative and concatenated with the working directory, producing invalid Windows file paths.

Expected

The logger should treat absolute paths properly without appending them to user.dir.

Impact

This prevents Behave v7.0.1 from running on Windows, blocking all users on that platform.

Thanks for your work on this great tool. Happy to test a fix if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions