epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
482 stars 163 forks source link

Convert error appears when trying to open a file saved in 'InchiAuxInfo' format #777

Closed vitalgerko closed 3 years ago

vitalgerko commented 3 years ago

Steps to Reproduce

  1. Click the 'Open From File' button.
  2. Choose inchi-file (cyclopentyl.inchi). cyclopentyl.zip
  3. Click the 'Open' button.
  4. In the 'Open File' dialog click the 'OK' button.
  5. Click the 'Save as...' button.
  6. Chouse 'InchiAuxInfo' format.
  7. Click the 'Save To File' button.
  8. Click the 'Open From File' button.
  9. Choose a previously saved file in 'InchiAuxInfo' format.
  10. Click the 'Open' button.

Expected behavior File in 'InchiAuxInfo' format opens correctly.

Actual behavior Сonvert error appears. File does not open. "Convert error! Given string could not be loaded as (query or plain) molecule or reaction, see the error messages: 'scanner: appendLine(): end of stream', 'scanner: appendLine(): end of stream', 'RXN loader: bad header InChI=1S/C12H16/c1-10-7-8-12(9-10)11-5-3-2-4-6-11/h2-6,10,12H,7-9H2,1H3', 'RXN loader: bad header InChI=1S/C12H16/c1-10-7-8-12(9-10)11-5-3-2-4-6-11/h2-6,10,12H,7-9H2,1H3'" Convert error appears when trying to open a file saved in 'InchiAuxInfo' format' https://user-images.githubusercontent.com/90637536/133969334-bd428c3e-2cf3-4ffc-a6fa-f211e0fa973d.mp4

Desktop:

OS: Windows Browser: Chrome Version 93.0.4577.63, Firefox Version 92.0, Microsoft Edge Version 93.0.961.47

vitalgerko commented 3 years ago

Bug closed due to duplication https://github.com/epam/ketcher/issues/667