Skip to content

Repository: Server error when accessing repo item log #4637

Description

@alainna

Describe the bug
As a Repository Manager, I regularly look at item logs to see whether my colleagues have previously contacted the submitting author. Now accessing certain logs results in errors.

Janeway version
1.7.4

To Reproduce
Steps to reproduce the behavior:

  1. Log in with moderator or admin account and go to Repo Manager: https://dev.eartharxiv.org/repository/manager/
  2. Click an accepted/published preprint to view metadata, e.g. https://dev.eartharxiv.org/repository/manager/2888/
  3. Under Control, click Log: https://dev.eartharxiv.org/repository/manager/2888/log/?return=/repository/manager/2888/
  4. See error. Sentry report: VariableDoesNotExist Failed lookup for key [article] in [{'True': True, 'False': False, 'None': None}, {}, {}, {'preprint': <Preprint: 20240506 - x.15.3 submission test>, 'log_entries': <QuerySet [[Submission] 2024-05-06 16:13:26.870853+00:00 - Researcher [...]

Note: This error does not occur with all repository items. Unable to determine a pattern -- no email to submitting author, no issue? e.g. published items: 2873 log is accessible, 2895 log is not. of new submissions: 2865 log is accessible, 2889 log is not

Expected behavior
Log would be able to be accessed at all times by manager / admin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions