1. Justin Sheehy
  2. webmachine
Issue #7 resolved

webmachine_multipart fails all included tests

Anonymous created an issue

Transcript below says it all.

$ erl -pa ebin Erlang R13B03 (erts-5.7.4) [source] [64-bit] [rq:1] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.4 (abort with ^G) 1> webmachine_multipart:test_body(). exception error: no match of right hand side value [<<"------------ae0gL6gL6Ij5KM7Ef1KM7ei4ae0cH2">>] in function webmachine_multipart:cheap_parse_header/1 in call from webmachine_multipart:make_headers/4 in call from webmachine_multipart:make_part/1 in call from webmachine_multipart:stream_parts/1 in call from webmachine_multipart:get_all_parts/2 in call from webmachine_multipart:test_body/0 2> webmachine_multipart:test_body2(). exception error: no match of right hand side value [<<"-----------------------------89205314411538515011004844897">>] in function webmachine_multipart:cheap_parse_header/1 in call from webmachine_multipart:make_headers/4 in call from webmachine_multipart:make_part/1 in call from webmachine_multipart:stream_parts/1 in call from webmachine_multipart:get_all_parts/2

Comments (2)

  1. Anonymous

    Should be noted this is the latest trunk version 862bf88a5c02 . Also, a better formatted transcript:

    $ erl -pa ebin
    Erlang R13B03 (erts-5.7.4) [source] [64-bit] [rq:1] [async-threads:0] [hipe] [kernel-poll:false]
    
    Eshell V5.7.4  (abort with ^G)
    1> webmachine_multipart:test_body().
    ** exception error: no match of right hand side value [<<"------------ae0gL6gL6Ij5KM7Ef1KM7ei4ae0cH2">>]
         in function  webmachine_multipart:cheap_parse_header/1
         in call from webmachine_multipart:make_headers/4
         in call from webmachine_multipart:make_part/1
         in call from webmachine_multipart:stream_parts/1
         in call from webmachine_multipart:get_all_parts/2
         in call from webmachine_multipart:test_body/0
    2> webmachine_multipart:test_body2().
    ** exception error: no match of right hand side value [<<"-----------------------------89205314411538515011004844897">>]
         in function  webmachine_multipart:cheap_parse_header/1
         in call from webmachine_multipart:make_headers/4
         in call from webmachine_multipart:make_part/1
         in call from webmachine_multipart:stream_parts/1
         in call from webmachine_multipart:get_all_parts/2
    3> 
    
  2. Log in to comment