You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/09/16 10:36:20 UTC

[Bug 63750] New: File upload Crash recording, its not possible continue in scenario..

https://bz.apache.org/bugzilla/show_bug.cgi?id=63750

            Bug ID: 63750
           Summary: File upload Crash recording, its not possible continue
                    in scenario..
           Product: JMeter
           Version: 5.0
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: ruthan@email.cz
  Target Milestone: JMETER_5.2

Hello,
i have similar file upload problem with for long time, its still in 5.0.

 When i trying to upload file during problem, i getting response:
java.io.FileNotFoundException: D:\Jmeter5\Scripts\1MBimage.jpg (The system
cannot find the file specified) at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source) at
java.io.FileInputStream.(Unknown Source) at
org.apache.http.entity.mime.content.FileBody.writeTo(FileBody.java:116) at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$ViewableFileBody.writeTo(HTTPHC4Impl.java:1379)
at
org.apache.http.entity.mime.AbstractMultipartForm.doWriteTo(AbstractMultipartForm.java:134)
at
org.apache.http.entity.mime.AbstractMultipartForm.writeTo(AbstractMultipartForm.java:157)
at
org.apache.http.entity.mime.MultipartFormEntity.writeTo(MultipartFormEntity.java:113)
at
org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156)
at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:160)
at
org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$5.doSendRequest(HTTPHC4Impl.java:388)
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
at
org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:832)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:570)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1231)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:236)

  Path is ok.

Request:
POST https://[ourServer.com]/nahrani-dokumentu/doklad-totoznosti

POST data:
--eRR7W9dDiz5PsLprw4P71sl_y9M2HymCNNEwPU7g
Content-Disposition: form-data; name="__RequestVerificationToken"

CfDJ8FAcB_t-7_5Jvf9XYtr_u2_ZPynFjSW21W0RB4mEB8wYhppJB994NxF9FCA0UiwIVHX5WSHgJSsDJpE8rzIBlejNY9kGZqS-x-WYeCnLveWgCC_cbkesSdrbOyonUYIx6ro0uXFQVqWUe7JYu-x6u2U
--eRR7W9dDiz5PsLprw4P71sl_y9M2HymCNNEwPU7g
Content-Disposition: form-data; name="hcidata"

CfDJ8FAcB_t-7_5Jvf9XYtr_u2_1NsFjhZNur4bG-qO15pcYasQULtq8IjR3Dp3JhnToA4qivVm_ckYySBcMGHdTETGXmNMAwAMyNrUtZXpj8fmK4lpoz95RwMKmLdG3vtEpcdngfAHPsfmMARRZ7-mZPu4k1WfuUeThcbm33y1BjHx2gBT1ijVBEBWiSuRLEy37oYmdSytPCd_xY9eNavCpfvsSbdLFCICP4gfiEMWV_Q389ZRPXZO16LcZO2NZQfJfH9WBVvEmDKfYPaANwZ_iBsJPXe5GE08vpdBh5ujYHmBAMLqdUckVqhPxLIZeBAG_R9QHWNT043fHsft6M-hiKKSxVMSqbfCHL_Q_4V1AWBUVDqsL6fHmKMxnxbX5pwklIQytED37vtxh0RLcfw06DV9RHKvrwAXZyAsI1-N_OA8fFickUlA8lQLv6L1VRemwPuTE7OxO5ctwBEj69LP_GcpXorfm7u02djIi9okv4OEVFwWxKpJOc2PR_WHQur-URcWzfeVk3wN0ZNtnHfmCQReKQvqoEoXEhrlqme9XXR-wXxgfNpGxFVmdE-2DC_fk0QJKX25TDF8STH_Rn8rYMWPNhtM8mH7o1uqBzVzPBPAs
--eRR7W9dDiz5PsLprw4P71sl_y9M2HymCNNEwPU7g
Content-Disposition: form-data; name="files"; filename="1MBimage.jpg"
Content-Type: image/jpeg

<actual file content, not shown here>
--eRR7W9dDiz5PsLprw4P71sl_y9M2HymCNNEwPU7g
Content-Disposition: form-data; name="files"; filename="1MBimage2.jpg"
Content-Type: image/jpeg

<actual file content, not shown here>
--eRR7W9dDiz5PsLprw4P71sl_y9M2HymCNNEwPU7g--

 Its .Net app.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63750] File upload Crash recording, its not possible continue in scenario..

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63750

--- Comment #2 from RuThaNiel van den Naar <ru...@email.cz> ---
For recording im using Firefox portable - 67.0.2

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63750] File upload Crash recording, its not possible continue in scenario..

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63750

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to RuThaNiel van den Naar from comment #4)
> Why is not possible upload it from custom patch?

It can be improved, how would you see this custom path defined ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63750] File upload Crash recording, its not possible continue in scenario..

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63750

RuThaNiel van den Naar <ru...@email.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from RuThaNiel van den Naar <ru...@email.cz> ---
Main problem is that after this crash session is dead and you can record
additional scenario steps.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63750] File upload Crash recording, its not possible continue in scenario..

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63750

--- Comment #6 from RuThaNiel van den Naar <ru...@email.cz> ---
I mean by custom path, any valid local machine path, to bypass that crash at
all. 

If you meant, that jmeter\bin could be changed to one other custom path, its
not big deal. I suppose that it would be nice to add some jmeter.propeties
entry for it and relativne path from Jmeter\bin and absolute path like
D:\jmeter\scripts\Data etc.. would be valid / supported.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63750] File upload Crash recording, its not possible continue in scenario..

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63750

--- Comment #4 from RuThaNiel van den Naar <ru...@email.cz> ---
Why is not possible upload it from custom patch?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63750] File upload Crash recording, its not possible continue in scenario..

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63750

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED
   Target Milestone|JMETER_5.2                  |---

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
You need to put the file to upload in jmeter/bin folder.

See:
https://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder
Paragraph "Uploading files"

If you have an idea to improve this, feel free to open an enhancement request.
Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.