SemanticMediaWiki / KnowledgeGraph

Visualize the knowledge graph within Semantic MediaWiki
https://www.mediawiki.org/wiki/Extension:KnowledgeGraph
GNU Affero General Public License v3.0
3 stars 0 forks source link

bug (designer): export graph fails with TypeError: Cannot read properties of undefined (reading 'writeText') #1

Open gesinn-it-gea opened 2 months ago

gesinn-it-gea commented 2 months ago

Existing graph for a page: image

Click on "export graph" leads to JS errors:

Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
    at Tool.onSelect (load.php?lang=en&modules=ext.KnowledgeGraph%7Cext.bootstrap.scripts%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced&skin=chameleon&version=171ex:504:25)
    at Tool.onSelect (load.php?lang=en&modules=ext.KnowledgeGraph%7Cext.bootstrap.scripts%7Cjquery%2Coojs-ui-core%2Coojs-ui-widgets%7Coojs-ui.styles.icons-editing-advanced&skin=chameleon&version=171ex:505:817)
    at OO.ui.ToolGroup.onMouseKeyUp (<anonymous>:366:413)
    at OO.ui.ToolGroup.onDocumentMouseKeyUp (<anonymous>:366:148)
gesinn-it-gea commented 1 month ago

@thomas-topway-it can you have a look at this issue please?

thomas-topway-it commented 4 weeks ago

for now I have only added this check https://github.com/SemanticMediaWiki/KnowledgeGraph/commit/f4c5b7f0dfb5960a28ac3d6f659da410aaf5b8a3

it occurs when navigator.clipboard is used in insecure environment