Opened 6 years ago

Closed 6 years ago

#1797 closed defect (fixed)

rasdapy prints binary data in an exception message

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: blocker Milestone: 9.7
Component: rasdapy Version: development
Keywords: Cc:
Complexity: Medium

Description

This should NOT happen, not even in logs.

Old logfile found, copying it to /opt/rasdaman/source/systemtest/testcases_mandatory/test_rasdapy/test.log.save
test.sh: starting test at Wed Jun 13 11:47:02 UTC 2018
test.sh:
test.sh: Testing service: rasdapy
test.sh: Cleaning output directory... Done.
test.sh: creating collection... ok.
test.sh: creating collection... ok.
test.sh: creating collection... ok.
test.sh: inserting data... Traceback (most recent call last):
  File "/opt/rasdaman/source/systemtest/util/../testcases_mandatory/test_rasdapy/rasql.py", line 268, in <module>
    main.execute()
  File "/opt/rasdaman/source/systemtest/util/../testcases_mandatory/test_rasdapy/rasql.py", line 136, in execute
    self.validator.mdddomain, self.validator.mddtype)
  File "/opt/rasdaman/source/applications/rasdapy/rasdapy/query_executor.py", line 114, in execute_update_from_file
    res = self.ras_oqlquery.execute()
  File "/opt/rasdaman/source/applications/rasdapy/rasdapy/ras_oqlquery.py", line 130, in execute
    res = query.execute_write_with_file()
  File "/opt/rasdaman/source/applications/rasdapy/rasdapy/cores/core.py", line 445, in execute_write_with_file
    self.query_str)
  File "/opt/rasdaman/source/applications/rasdapy/rasdapy/cores/remote_procedures.py", line 418, in rassrvr_begin_streamed_http_query
    raise Exception("Error executing query (first 300 characters) '{}'. Reason '{}'".format(query, error_message))
Exception: Error executing query (first 300 characters) 'Command=11&ClientID=1713439803&QueryString=insert into test_grey values decode(#MDD1# )&Endianess=0&NumberOfQueryParameters=1&BinDataSize=45478&BinData=^@^@^@^AGreyString^@^@^@^@^@^A[0:22687]^@[0:127999]^@||0.0^@^@^@X <89>PNG^M
^Z
^@^@^@^MIHDR^@^@^A^@^@^@^@Ó^H^@^@^@^@KÄ<92><8f>^@^@^@^AsBIT^Hæ
[<99>^@^@^@'tEXtDescription^@rasdaman MDD encoded as PNGâ¬<88>Á'. Reason 'rasdaman error 381: Execution error 381 in line 1, column 30, near token decode: Error in convertor of the selected data exchange format.'
failed.
test.sh: creating collection... ok.

Change History (1)

comment:1 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.