question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after reinstall: empty lists, template bugs

See original GitHub issue

Impacted versions

  • Modoboa: 1.10.2
  • installer used: Yes
  • Webserver: h2o

Steps to reproduce

I reinstalled modoboa, coming from a very old version (see https://github.com/modoboa/modoboa/issues/1401). In the process I recreated the whole database and copied the “old” content into the new database (aliases, domains, accounts). I’m on a very very small database.

Current behavior

modoboapython manage.py migrate at this moment shows No migrations to apply. and the frontend opens as expected. However if I go to domains or identities there are no lists. If I click anything on those sites (the links with the lists) I get to an empty template:

{"headers": "\n<th width=\"50%\" class=\"sortable\" data-sort_order=\"name\">Domain</th>\n<th class=\"sortable\" data-sort_order=\"quota\">Limit</th>\n<th class=\"sortable\" data-sort_order=\"quota_value__used\">Used</th>\n<th class=\"sortable\" data-sort_order=\"allocated_quota\">Allocated</th>\n<th class=\"sortable\" data-sort_order=\"quota_usage\" id=\"quotabar\">Verwendung (%)</th>\n", "length": 0}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tonioocommented, Mar 2, 2018

I guess a django app already exists for that. I’m going to close this issue but you can can open a new one regarding security headers.

0reactions
basbebecommented, Mar 2, 2018

I already deleted the cache an logged out several times. But I found the problem.

Shame on me – it was my fault all along.

I set a Content-Security-Policy http header but I was missing the 'inline' part for script-src. This is what my header looks like and it seems to work now:

"Content-Security-Policy: default-src 'self'; style-src 'self'; script-src 'self' 'unsafe-inline'"

I should have checked the browser console earlier: 🙄

Maybe modoboa could utilize Content-Security-Policy headers in the future and manage this by itself? They are a valid security feature I guess.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing customizations in Office Word after an update
After installing the latest update for Microsoft Office (6366.xxxx), ... Press Windows + R and type in %appdata%\Microsoft\Templates and press Enter.
Read more >
Page templates missing from page attributes after 5.8
So, templates are registered and working, but no way to bring back the select under “Page Attributes” in the Gutenberg Editor. All the...
Read more >
How do I make empty lists in MATLAB Live Script and append ...
I want to make 3 empty list, in which I can append values to as shown in the following (The code is written...
Read more >
list, else, items, sep, break, continue - Apache FreeMarker
The simplest form for listing a sequence (or collection) is: ... The else part is optional, and is only supported since FreeMarker 2.3.23....
Read more >
Template not provided using create-react-app - Stack Overflow
There seems to be a bug where create-react-app isn't properly uninstalled and using one of the new commands lead to: A template was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found