Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after submit a report on 5.0.48 #4398

Open
andreagigliola opened this issue Feb 11, 2025 · 2 comments
Open

Error after submit a report on 5.0.48 #4398

andreagigliola opened this issue Feb 11, 2025 · 2 comments

Comments

@andreagigliola
Copy link

What version of GlobaLeaks are you using?

5.0.48

What browser(s) are you seeing the problem on?

All

What operating system(s) are you seeing the problem on?

All

Describe the issue

Hi to all,
after submitting a new report, the system return this error

Image

The log report this exception

2025-02-11 13:59:58+0000 [-] [E] Unhandled exception raised:2025-02-11 13:59:58+0000 [-] [E] NameError Name not found globally.\n\nTraceback (most recent call last):\n\n File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 250, in inContext\n result = inContext.theWork()\n\n File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>\n inContext.theWork = lambda: context.call(ctx, func, *args, **kw)\n\n File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext\n return self.currentContext().callWithContext(ctx, func, *args, **kw)\n\n File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext\n return func(*args,**kw)\n\n File "/usr/lib/python3/dist-packages/globaleaks/orm.py", line 185, in _wrap\n result = function(session, *args, **kwargs)\n\n File "/usr/lib/python3/dist-packages/globaleaks/handlers/whistleblower/submission.py", line 304, in create_submission\n return db_create_submission(session, tid, request, user_session, client_using_tor, client_using_mobile)\n\n File "/usr/lib/python3/dist-packages/globaleaks/handlers/whistleblower/submission.py", line 183, in db_create_submission\n elif encryption.update_date != datetime_null():\n\nNameError: name 'encryption' is not defined\n

Proposed solution

No response

evilaliv3 added a commit that referenced this issue Feb 11, 2025
Since too much time passed since we activated encryption it is fine to stop delivering plaintext submissions if administrators have not updated their users to use encryption
@evilaliv3
Copy link
Member

thank you for reporting this @andreagigliola

I expect you could be coming from a verious old setup and running with no encryption.

We are issuing a release 5.0.49 that will make your system work, but actually your recipients will stop receiving reports and you will need to first enable encryption at system level and then perform a new login to enable their account to use encryption.

@evilaliv3
Copy link
Member

@andreagigliola : would you please try updating to release 5.0.50?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants