chaiall / epidemic-marketplace

Automatically exported from code.google.com/p/epidemic-marketplace
0 stars 0 forks source link

SimpleEMClient: Erro list resources #397

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download da app em DEV
2. authentication with wrong credentials (it retrieved ok)
3. choose l option

What is the expected output? What do you see instead?
It shouldn't be possible to login with wrong credentials, it should display the 
resources list

Traceback (most recent call last):
  File "./SimpleEmClient_v2-2-1.py", line 586, in <module>
    Run()
  File "./SimpleEmClient_v2-2-1.py", line 168, in __init__
    Menu()
  File "./SimpleEmClient_v2-2-1.py", line 552, in Menu
    listResources()
  File "./SimpleEmClient_v2-2-1.py", line 354, in listResources
    xml = ET.fromstring(xmlString)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1301, in XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: syntax error: line 1, column 49

Original issue reported on code.google.com by graca.pa...@gmail.com on 24 May 2013 at 12:09

GoogleCodeExporter commented 9 years ago
Se percebi corretamente, o problema estava em que a ferramenta dizia login 
correcto com credenciais erradas, e de seguida dava erro.

Foi corrigido a parte da autenticação, sendo que quando as credenciais estão 
erradas, a mensagem "Login failed" é mostrada, e o programa não faz mais nada.
Caso as credenciais estejam corretas, a ferramenta mostra a lista de recursos.

Original comment by tiagoposse on 28 May 2013 at 10:10