Skip to content

export_local creates file with double file extension #139

Description

@cb1kenobi

Bug Summary

When filename is specified, it appends .json regardless if the file already has the extension

Reproduction Repository (if applicable)

No response

Steps to Reproduce

Call export_local with a filename such as test.json and it will produce a file called test.json.json.

req()
	.send({
		operation: 'export_local',
		path: './',
		filename: 'test.json',
		format: 'json'
	});

Expected Behavior

Should only append the format file extension if the filename doesn't have the extension already.

Actual Behavior

Export will create a file with double extension (e.g. test.json.json).

Platform

Harper 5 (main branch)

Console Errors

No response

Screenshots or Videos

No response

Additional Context

This issue was found while running integration tests, namely 7_jobsAndJobRoleTesting.mjs.

Are you planning to fix this issue?

No, just reporting the issue

First-time contributor support

  • I'm new to contributing and would appreciate guidance on the process
  • I'd like help understanding the project structure
  • I need assistance with setting up the development environment
  • I'm comfortable contributing, but new to this project specifically

Activity

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

    bugSomething isn't working

    Type

    Fields

    Priority

    P3

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions