CarnetApp / CarnetNextcloud

GNU Affero General Public License v3.0
157 stars 29 forks source link

CSS Problem #17

Open guissmo opened 6 years ago

guissmo commented 6 years ago

Hi, I'm having a CSS problem with Carnet.

screenshot from 2018-10-28 14-58-06


Debug gives me this.

Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src”). Source: (function (NAVIGATOR, OBJECT) {

OBJ.... carnet:1

Content Security Policy: The page’s settings blocked the loading of a resource at self (“script-src”). Source: (function (DOCUMENT, dispatchEvent, CUST.... carnet:1 Loading mixed (insecure) display content “https://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_search_white_24px.svg” on a secure page[Learn More] carnet Loading mixed (insecure) display content “https://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_remove_white_24px.svg” on a secure page[Learn More]

PhieF commented 6 years ago

Hi

how did you install nextcloud ? docker ? Snap ? Thanks for your report, are you using at least 0.8.9 version of Carnet ?

guissmo commented 6 years ago

The CSS works when I have https://domain.com/cloud/index.php/XXX but it doesn't work (i.e. looks like the screenshot) when I visit https://cloud.domain.com/XXX. I installed it manually.

Here are some lines in my config that might help. 'overwrite.cli.url' => 'https://domain.com/cloud/', 'htaccess.RewriteBase' => '/',

Thanks for the reply!

aaronjlawson commented 6 years ago

@guissmo So doesn't work when pretty urls are enabled?

Did you change your config like this?

'htaccess.RewriteBase' => '/',

to get rid of the index.php? Just curious, I didn't have the same issue. Phief is pretty good at getting stuff resolved, I'm sure he'll figure it out.

guissmo commented 6 years ago

@guissmo So doesn't work when pretty urls are enabled?

Did you change your config like this?

'htaccess.RewriteBase' => '/',

to get rid of the index.php? Just curious, I didn't have the same issue. Phief is pretty good at getting stuff resolved, I'm sure he'll figure it out.

Yeah. I have a feeling I misconfigured something somehow. As I said above, I do have htaccess.RewriteBase set to '/', but the URL that works still has "index.php" for some reason. If I remove "index.php", it just says Forbidden. I don't have the problem, however, if I access the site from the subdomain.

Whenever I update the config.php, do I have to do something? I run sudo -u www-data php occ maintenance:update:htaccess every time I do that.

I'm quite new here but I hope I managed to make the situation clear.

Here is another copy-paste of what the console is telling me: Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/browsers/design.css (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/firstlaunch/slide.css (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/libs/material.indigo-pink.min.css (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/libs/polyfill.css (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/libs/material-icons.css (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_search_white_24px.svg (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_remove_white_24px.svg (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_aspect_ratio_white_24px.svg (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_close_white_24px.svg (“default-src”). JQMIGRATE: Migrate is installed, version 1.4.0 core.js:7:542 is electron ?false compatibility.js:5:9 cache loaded browser.js:20:1 listing path recentdb:// browser.js:378:5 getting recent file-browser.js:16:9 getFullDB keywords_db_manager.js:6:5 pet browser.js:534:1 Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_create_new_folder_black_24px.svg (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ic_note_add_black_24px.svg (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/assets/images/QuickDoc.png (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/ui.png (“default-src”). Content Security Policy: The page’s settings blocked the loading of a resource at http://cloud.domain.com/apps/carnet/templates/CarnetElectron/img/sync.svg (“default-src”). [Show/hide message details.] TypeError: $(...).tooltip is not a function[Learn More] backgroundjobs.js:26:2 TypeError: "this._$el.find(...).tooltip is not a function" mountedhttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:14:13009xehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:14727inserthttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:23207khttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:56131kihttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:57521_updatehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:31625mounthttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:64060gethttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:15941runhttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:16832jehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:14970eehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:11420Gthttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:10922 notifications.js:7:10806 TypeError: "this._$el.find(...).tooltip is not a function" mountedhttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:14:13009xehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:14727inserthttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:23207khttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:56131kihttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:57521_updatehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:31625mounthttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:64060gethttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:15941runhttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:16832jehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:14970eehttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:11420Gthttps://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0:7:10922 notifications.js:7:10806 Object { data: (4) […] } keywords_db_manager.js:12:9 width 1588 note_card_view.js:114:5 stopping and starting task browser.js:431:9 0 browser.js:37:5 data [object Object] browser.js:56:9 current path untitled.sqd browser.js:59:13 1 browser.js:37:5 save cache browser.js:39:9 Source map error: TypeError: NetworkError when attempting to fetch resource. Resource URL: https://cloud.domain.com/apps/notifications/js/notifications.js?v=13354fb1-0 Source Map URL: notifications.js.map[Learn More]

guissmo commented 6 years ago

I reinstalled the SSL certificate and it got fixed. My bad.

EDIT: Everything's working now. Except the three vertical dots icon for the options. I don't know why. Just thought I should write it here in case someone has the same problem.