Open vandman opened 5 months ago
I get a black screen (I have a dark theme). What I see in firefox is that some js script are blocked. Look at the screenshot. I have no other log in nexcloud.log. I have Firefox 127.0 (64 bits) in ArchLinux. Regards
I can confirm this issue, I am also getting a black screen. EDIT: I have just found out that the issue only occurs for me when the directory is external storage (other local directory in my case). When I copy the directory to the Nextcloud data directory, it works just fine.
I also receive a CSP error:
This is on NC 28.
i have the same issue on Nextcloud Hub 8
sudo -u www-data php8.2 /var/www/nextcloud/occ config:list system
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.0.12",
"***REMOVED SENSITIVE VALUE***"
],
"default_phone_region": "ISO_3166-2:GR",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "29.0.2.2",
"overwrite.cli.url": "http:\/\/192.168.0.12",
"overwriteprotocol": "https",
"overwritehost": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"theme": "",
"loglevel": 2,
"filelocking.enabled": false,
"app_install_overwrite": [
"duplicatefinder",
"deckimportfromtrello",
"dicomviewer",
"files_rightclick"
],
"memcache.local": "\\OC\\Memcache\\Memcached",
"memcached_servers": [
[
"localhost",
11211
]
],
"mail_smtpmode": "smtp",
"mail_smtpauth": 1,
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"maintenance_window_start": 1,
"apps_paths": [
{
"path": "\/var\/www\/nextcloud\/apps",
"url": "\/apps",
"writable": true
}
]
}
}
Enabled:
- activity: 2.21.1
- camerarawpreviews: 0.8.5
- circles: 29.0.0-dev
- cloud_federation_api: 1.12.0
- comments: 1.19.0
- contactsinteraction: 1.10.0
- dashboard: 7.9.0
- dav: 1.30.1
- deck: 1.13.1
- dicomviewer: 2.1.2
- drawio: 3.0.2
- federatedfilesharing: 1.19.0
- federation: 1.19.0
- files: 2.1.0
- files_downloadlimit: 2.0.0
- files_external: 1.21.0
- files_pdfviewer: 2.10.0
- files_reminders: 1.2.0
- files_sharing: 1.21.0
- files_trashbin: 1.19.0
- files_versions: 1.22.0
- firstrunwizard: 2.18.0
- logreader: 2.14.0
- lookup_server_connector: 1.17.0
- mail: 3.7.6
- maps: 1.4.0
- music: 2.0.0
- nextcloud_announcements: 1.18.0
- notifications: 2.17.0
- oauth2: 1.17.0
- password_policy: 1.19.0
- photos: 2.5.0
- previewgenerator: 5.6.0
- privacy: 1.13.0
- provisioning_api: 1.19.0
- recommendations: 2.1.0
- related_resources: 1.4.0
- serverinfo: 1.19.0
- settings: 1.12.0
- sharebymail: 1.19.0
- spreed: 19.0.7
- support: 1.12.0
- survey_client: 1.17.0
- systemtags: 1.19.0
- text: 3.10.0
- theming: 2.4.0
- twofactor_backupcodes: 1.18.0
- unroundedcorners: 1.1.3
- updatenotification: 1.19.1
- user_status: 1.9.0
- viewer: 2.3.0
- weather_status: 1.9.0
- workflowengine: 2.11.0
Disabled:
- admin_audit: 1.19.0
- bruteforcesettings: 2.9.0
- encryption: 2.17.0
- files_rightclick: 0.15.1 (installed 0.15.1)
- suspicious_login: 7.0.0
- twofactor_totp: 11.0.0-dev
- user_ldap: 1.20.0
When i open with dicom viewer i just get black screen...
I can confirm this issue, I am also getting a black screen. EDIT: I have just found out that the issue only occurs for me when the directory is external storage (other local directory in my case). When I copy the directory to the Nextcloud data directory, it works just fine.
Same for me... it seems external storage is getting handled by apps with other permissions than the nc data dir... A similar issue can be seen with a shared draw.io file. It can't get opened if the file is saved in external storage.
@DerP4si
Same for me... it seems external storage is getting handled by apps with other permissions than the nc data dir... A similar issue can be seen with a shared draw.io file. It can't get opened if the file is saved in external storage.
I indeed have my DICOMs on external storage i too get a black screen when i "open with DCOM viewer" , as a matter of fact all my files , but the mentioned draw.io works just fine
Now i tested again , moved one small folder containing DICOM files to local , not external , storage , it was able to load the app's GUI (in contrast to when i open files from external storage) . But it never loaded the images...
these were the logs on the browser console:
Now i tested again , moved one small folder containing DICOM files to local , not external , storage , it was able to load the app's GUI (in contrast to when i open files from external storage) . But it never loaded the images...
Same error as me: UI chrome loads, contents fail to load due to CSP errors.
HI, thanks for this app. This will be very useful for me to navigate and visualise those CDs received from the hospitals!
I'm having the similar error as show in https://github.com/ayselafsar/dicomviewer/issues/120#issuecomment-2276655009.
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src http: * 'unsafe-eval' 'wasm-unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-vXVuQCdE0e+lN0aBlYXq4nQs56d9JdqUWqMItRpGEs0='), or a nonce ('nonce-...') is required to enable inline execution.
More over, my nextcloud 29 installation is under the /nextcloud
folder, ie. not directly on the web root. It looks like that the URLs requested from the page dont take that into accountt.
I'd expect that the request URL are /nextcloud/{assets|benchmark}/...
instead of {assets|benchmark}/...
/assets/android-chrome-144x144.png:1 :Failed to load resource: the server responded with a status of 404 ()
Error while trying to use the following icon from the Manifest: https://my.domain.tld/assets/android-chrome-144x144.png (Download error or resource isn't a valid image)
/benchmarks/d-intel.json:1 :Failed to load resource: the server responded with a status of Failed to load resource: the server responded with a status of 404 ()
HI, thanks for this app. This will be very useful for me to navigate and visualise those CDs received from the hospitals!
I'm having the similar error as show in #120 (comment).
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src http: * 'unsafe-eval' 'wasm-unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-vXVuQCdE0e+lN0aBlYXq4nQs56d9JdqUWqMItRpGEs0='), or a nonce ('nonce-...') is required to enable inline execution.
More over, my nextcloud 29 installation is under the
/nextcloud
folder, ie. not directly on the web root. It looks like that the URLs requested from the page dont take that into accountt. I'd expect that the request URL are/nextcloud/{assets|benchmark}/...
instead of{assets|benchmark}/...
/assets/android-chrome-144x144.png:1 :Failed to load resource: the server responded with a status of 404 () Error while trying to use the following icon from the Manifest: https://my.domain.tld/assets/android-chrome-144x144.png (Download error or resource isn't a valid image) /benchmarks/d-intel.json:1 :Failed to load resource: the server responded with a status of Failed to load resource: the server responded with a status of 404 ()
I encountered the same error-message
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src http: * 'unsafe-eval' 'wasm-unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-vXVuQCdE0e+lN0aBlYXq4nQs56d9JdqUWqMItRpGEs0='), or a nonce ('nonce-...') is required to enable inline execution.
in NC29 but in the end, my problem was caused by #119. I renamed the folder to avoid special characters and it worked. The mentioned error still applies tho.
Hi, When I want to view a scan, I get a blank screen whenever I launch the dicom viewer.
It looks like one of the dicom scrip violate the Content Security Policy directive (CSP), so it is not loaded. It does that on Firefox, Edge and Chrome. Regards Pierre