scieloorg / PC-Programs

SciELO PC Programs
7 stars 24 forks source link

Corrigir o problema que causa exceção que ocorre ao retornar os possíveis intervalos de xref #3320

Closed robertatakenaka closed 4 years ago

robertatakenaka commented 4 years ago

Descrição do problema

Corrigir o problema que causa exceção que ocorre ao retornar os possíveis intervalos de xref. Bug inserido no PR #3315

Traceback (most recent call last):
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/xc.py", line 168, in convert_package
    scilista_items, xc_status, mail_info = self.proc.convert_package(package)
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/processing/pkg_processors.py", line 389, in convert_package
    registered_issue_data, pkg_eval_result = self.evaluate_package(pkg)
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/processing/pkg_processors.py", line 376, in evaluate_package
    self.is_xml_generation, self.config
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/pkg_evaluation.py", line 30, in __init__
    is_xml_generation, config)
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/pkg_articles_validations.py", line 20, in __init__
    self.pkg_articles_validations = pkg_validator.validate_package()
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/article_validations.py", line 262, in validate_package
    self.pkg.outputs[name])
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/article_validations.py", line 275, in validate_package_item
    artval.xml_content_validations, artval.article_display_report = self.xml_content_validator.validate(article, outputs, pkgfiles)
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/article_validations.py", line 226, in validate
    content.append(article_validation_report.validations(display_all_message_types=False))
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/article_data_reports.py", line 622, in validations
    items, performance = self.article_validation.validations
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/article_content_validations.py", line 229, in validations
    self.missing_xref_list,
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/validations/article_content_validations.py", line 1427, in missing_xref_list
    any_xref_ranges = self.article.any_xref_ranges
  File "/home/scielo/xc/app/xc_2020/xml/.venv/src/scielo-production-tools/src/scielo/bin/xml/prodtools/data/article.py", line 597, in any_xref_ranges
    xref_node_items[i], xref_node_items[i+1]])
IndexError: list index out of range

Passos para reproduzir o problema

  1. Executar o xc ou xpm com o pacote 1678-2674-acb-rpass-0420-35-6.zip

Comportamento esperado

Não acontecer a exceção

Screenshots ou vídeos

n/a

Anexos

n/a

Ambiente utilizado

n/a