Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative directory for file download/upload is using test name #14

Open
ssokolov1 opened this issue Oct 10, 2022 · 0 comments
Open

Relative directory for file download/upload is using test name #14

ssokolov1 opened this issue Oct 10, 2022 · 0 comments

Comments

@ssokolov1
Copy link

NPE issue is fixed. Thank you very much !!! However, sorry to say, there is a new one. That is about destination of saved files. I am running a command in testing directory where file test-api-retention.http is located and there is a subfolder resources

httpx -f rest-api-retention.http -p docker -a

Download random logo to use as attachment to the file

GET {{logo}}

! resources/logo.png
2022-10-10 11:04:07.103 ERROR 29167 --- [ main] org.mvnsearch.http.HttpxCommand : HTX-002-500 - Failed to parse http code!

java.nio.file.FileSystemException: rest-api-retention.http/resources/logo.png: Not a directory
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218) ~[httpx:na]

Here is the problem. It is trying to append script name to the current path, what is wrong in my opinion as rest-api-retention.http is a file, not a directory. IntelliJ internal runner handles it correctly. I can create a new issue if it helps.
And one more time, thank you for your great work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant