CDR Tickets

Issue Number 4570
Summary Fix Module cdr.py to be Python 3 compatible
Created 2019-02-04 11:25:59
Issue Type Bug
Submitted By Englisch, Volker (NIH/NCI) [C]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2019-08-01 07:35:22
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.239588
Description

When running a job from ones workstation (a.k.a. DEV-VM) the username authentication produces an error when running Python 3.

Comment entered 2019-02-04 11:28:39 by Englisch, Volker (NIH/NCI) [C]

Error message when running the following command:

C:\cygwin64\home\volker\CDR\git\cdr-server\Filters>python ..\..\cdr-tools\DevTools\Utilities\UpdateFilter.py --user volker --comment "Restore Filter Test" --tier DEV CDR0000315893.xml

Error message:

Traceback (most recent call last):
  File "..\..\cdr-tools\DevTools\Utilities\UpdateFilter.py", line 161, in <module>
    main()
  File "..\..\cdr-tools\DevTools\Utilities\UpdateFilter.py", line 112, in main
    error_message = cdr.checkErr(session)
  File "C:\cdr\lib\Python\cdr.py", line 4888, in checkErr
    errors = getErrors(resp, **opts)
  File "C:\cdr\lib\Python\cdr.py", line 4967, in getErrors
    errors = Error.getPattern().findall(xmlFragment)
TypeError: cannot use a string pattern on a bytes-like object

Running the command with a session ID instead of a username is working properly.

Comment entered 2019-08-01 07:35:22 by Kline, Bob (NIH/NCI) [C]

Fixed as part of work on Joule.

Elapsed: 0:00:00.000502