GithubHelp home page GithubHelp logo

ericferon / glpi-archimap Goto Github PK

View Code? Open in Web Editor NEW
19.0 5.0 10.0 80.05 MB

GLPI plugin for drawing architecture maps (based on draw.io)

License: GNU General Public License v2.0

PHP 1.63% JavaScript 87.24% Java 8.05% HTML 1.15% CSS 0.53% Gherkin 0.06% PLSQL 0.04% Shell 0.01% Ruby 0.05% Mustache 0.01% EJS 0.01% TypeScript 1.10% Vue 0.07% Hack 0.06%

glpi-archimap's Introduction

Archimap

Archimap plugin for GLPI

This plugin enables you to create Visio-like (architecture) diagrams with elements of the inventory (computers, databases, applications, dataflows, locations, suppliers).
The plugin implements the Draw.io's graphical tool in the GLPI context.
Compared to the standard draw.io tool, one tab has been added, containing the GLPI assets.
You can add these shapes to the drawing pane as any other shape (archimate, uml, etc).
But these shapes are each linked to an inventory class : when you type a label in the shape, an autocomplete function is looking into GLPI for inventory assets containing this label and these items can be chosen in a dropdown list. When one item of the list is selected, its GLPI properties are linked to the graphical object.
Based on these GLPI properties, the appearance of the object on the drawing pane can be modified (background color, contour line) or some additional properties can be displayed in the graphical object (description, type, status, ...) When these properties are changed in the inventory, the label and/or appearance of the graphical object is also adapted : so, when you change the name of an application in GLPI, all the graphical objects in all the diagrams are adapted, or when you change the status of an application, its appearance changes in all diagrams too. Consequently, your diagrams are centralized in the GLPI database, and have a uniform presentation, with up to date information and appearance.
You can add new GLPI assets by creating a new library or by modifying the provided default one.
You can find more details in the wiki (https://github.com/ericferon/glpi-archimap/wiki).
Per diagram, you can specify which are your display preferences (look in the menu File->Preferences) : you can choose which properties are displayed as label (name, description, ...) and whether icons are also displayed to further identify the graphical objects.
Contributions for translation in your language are welcome to https://explore.transifex.com/ericferon/glpi-archimap/

glpi-archimap's People

Contributors

dependabot[bot] avatar ericferon avatar hountez avatar p-bo avatar rafaeldomi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

glpi-archimap's Issues

BUG ?

Hello

When linking a draw to a 'structure application' : some applications miss.
I don't know why. because i list 2 of them and I don't see difference .

SQL: engine type MyISAM should be InnoDB

in archimap/sql/empty-1.0.0.sql - the engine-type for create table statements is explicitly set to MyISAM

It should be InnoDB - this probably applies to all your plugins.

Adding custom shapes

Hi,
is there any ability to integrate custom generated shapes permanently to the list of available shapes?

sql-errors.log throws an error

[2019-06-13 15:53:18] glpisqllog.ERROR: DBmysql::query() in /var/www/html/inc/dbmysql.class.php line 177
*** MySQL query error:
SQL: INSERT IGNORE glpi_plugin_archimap_graphs_items (plugin_archimap_graphs_id,items_id,itemtype) values
Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Backtrace :
...ww/html/plugins/archimap/front/linkgraph.php:52
{"user":"7@localhost"}

Error message happens when I save the drawing pan diagram only. It doesn't seem to cause any known issue.

Currently running GLPI 9.4.2 and archimap v2.1.0

Don't succeed to run with Archimap/Draw IO GLPI 9.2.3 and archimap 2.0.1

Hello

I don't suceed to run Draw IO in glpi. The "diagrams" option appears in server, database : ok.
No menu in GLPI to launch Drawio ?
I try in searching index.html in web-app : \plugins\archimap\drawio\src\main\webapp\index.html : but error (chekc if javascript enabled) and look the error : twices the same path ?
plugins/archimap/drawio/src/main/drawio/src/main/webapp/mxgraph/css/common.css

Thanks

Embed preview diagram in issue

Maybe my use case is a little different.

I would like to add informal diagrams to issues with these features:

  • Preview of the diagram inside the issue
  • Easy editing of the diagram (not having to export and upload to the issue again)

Want to try to upgrade version of draw.io to latest

I would like to fork this version and try to include the latest version of draw.io into the plugin so that we can take advantage of new features. Can you provide your ant build folder and some notes on your configuration so that I can have a go at this.

PHP error: illegal string offset "name"

After installation, when opening Assets -> Diagrams for the first time.

[2019-01-31 23:26:54] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /usr/share/glpi/inc/toolbox.class.php line 657
*** PHP Warning(2): Illegal string offset 'name'
Backtrace :
inc/commondbtm.class.php:3610
inc/search.class.php:5761 CommonDBTM->searchOptions()
inc/search.class.php:5568 Search::getOptions()
inc/search.class.php:5424 Search::getCleanedOptions()
inc/search.class.php:74 Search::manageParams()
plugins/archimap/front/graph.php:33 Search::show()
{"user":"[email protected]","mem_usage":"0.002", 12.04Mio)"}
[2019-01-31 23:26:54] glpiphplog.ERROR: CommonDBTM::searchOptions() in /usr/share/glpi/inc/commondbtm.class.php line 3613
Duplicate key common (D/Characteristics) in PluginArchimapGraph searchOptions! {"user":"[email protected]","mem_usage":"0.000", 12.04Mio)"}
[2019-01-31 23:26:54] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /usr/share/glpi/inc/toolbox.class.php line 657
*** PHP Warning(2): Illegal string offset 'name'
Backtrace :
inc/commondbtm.class.php:3617
inc/search.class.php:5761 CommonDBTM->searchOptions()
inc/search.class.php:5568 Search::getOptions()
inc/search.class.php:5424 Search::getCleanedOptions()
inc/search.class.php:74 Search::manageParams()
plugins/archimap/front/graph.php:33 Search::show()
{"user":"[email protected]","mem_usage":"0.000", 12.04Mio)"}

Stockage

Hello !
or are the diagrams stored online or on the glpi server?

Cannot download from Marketplace

When trying to download from Marketplace, I'm getting this error:

Uncaught Exception RuntimeException: Cannot access phar file entry '/archimap/drawio/src/main/java/com/mxgraph/layout/hierarchical/model/mxGraphAbstractHierarchyCell.java' in archive '/var/www/html/glpi/files/_tmp/archimap-v3.2.2.tar.gz' in /var/www/html/glpi/vendor/wapmorgan/unified-archive/src/Formats/Tar.php at line 377

image

GLPI Version: 9.5.7

Aide à la configuration du plugin

Bonjour,
J'ai installé le plugin sur GLPI (version 9.5.7), jusque là tout est OK.

J'ai généré un client API pour Diagrams et j'ai générer une clé que j'ai remis dans la configuration (APP_TOKEN).

Lorsque je tente d'éditer un diagramme que je viens de créer, la page n'affiche rien :

image

Pourriez-vous m'aider à configurer le plugin afin qu'il soit fonctionel ?

Erreur table a dessin

image
Bonjour,

dès que je clique sur la table à dessin, j'arrive sur la page ci-dessus.

Blank screen while loading/edit diagram

GLPI 10.0.0, PHP7.4.29, Firefox 100
blank screen if trying ti load/edit a diagram. the dev/debug browser console provides the following output
optimus-screenshot-023
optimus-screenshot-024
optimus-screenshot-025
Setting up the "key" field in plugin API config (for example "app_token", or any other value) results in
optimus-screenshot-026

Unrecognized function: FieldExists

Hello,
We wanted to test your module. During the installation we had a blank screen. Regarding the PHP logs we have this message:
PHP Fatal error: Uncaught Error: Call to undefined function FieldExists() in /var/www/glpi/plugins/archimap/hook.php:56

Our GLPI environment is 9.4.2.
We assumed by looking at the setup.php file that our GLPI version could be compatible.
is plugin requires GLPI >= 9.2 and < 9.5', 'archimap').

Thanks for your help

Vincent

Probleme avec les components GLPI

Bonjour

Quand je crée un diagram avec le profil GLPI je peux ajouter les objects GLPI (viaOpen Library from then Central Repository puis je selectionne GLPI) et je peux ajouter les objets au diagramme

image
image

Mais si je change de profil, et meme si je donne tous les droits sur ce profil pour le plugin je ne peux plus ajouter d'éléments de GLPI

image

Ais-je loupé qq chose dans le paramétrage ?

Merci par avance

Autocompletion does not work

Hello,
for me the function of automatic completion does not work. My GLPI version is 9.4. Browser is Chrome. Firefox there is the same problem. Do any settings need to be set?
Thanks for your help,
Bill

php fatal Error, glpi 10.0 , php 8.0 running on debian

Hi, I get php fatal error:
[Mon May 23 10:06:48.408346 2022] [php:error] [pid 30598] [client 192.168.5.86:54437] PHP Fatal error: Declaration of PluginArchimapDiagram::showForm(CommonGLPI $item, $options = []) must be compatible with CommonDBTM::showForm($ID, array $options = []) in /var/www/html/glpi/marketplace/archimap/inc/diagram.class.php on line 77, referer: http://192.168.5.45/marketplace/archimap/front/graph.form.php
[Mon May 23 10:06:56.571150 2022] [php:error] [pid 29087] [client 192.168.5.86:54438] PHP Fatal error: Declaration of PluginArchimapDiagram::showForm(CommonGLPI $item, $options = []) must be compatible with CommonDBTM::showForm($ID, array $options = []) in /var/www/html/glpi/marketplace/archimap/inc/diagram.class.php on line 77, referer: http://192.168.5.45/marketplace/archimap/front/graph.php
[Mon May 23 10:10:03.876781 2022] [php:error] [pid 11101] [client 192.168.5.86:54550] PHP Fatal error: Declaration of PluginArchimapDiagram::showForm(CommonGLPI $item, $options = []) must be compatible with CommonDBTM::showForm($ID, array $options = []) in /var/www/html/glpi/marketplace/archimap/inc/diagram.class.php on line 77, referer: http://192.168.5.45/marketplace/archimap/front/graph.php

running on debian, php 8.0 recently upgraded to glpi 10.0 from 9.5
Any help would be greatly appreciated ;)

Fails to install on 10.0.0 - The action you have requested is not allowed

Plugin version: 3.2.6
GLPI version: 10.0.0
PHP version: 7.4

Manual installation via plugins folder on 10.0.0 (with existing config, so upgrade of plugin) produces a single error during install "The action you have requested is not allowed" from page front/plugin.form.php.

Related log file entries below.

[2022-04-21 18:51:57] glpiphplog.WARNING:   *** PHP Warning (2): Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\glpi10x\src\Application\ErrorHandler.php:533) in C:\inetpub\wwwroot\glpi10x\src\Html.php at line 1187
  Backtrace :
  src\Html.php:1187                                  header()
  src\Html.php:1746                                  Html::includeHeader()
  front\plugin.php:43                                Html::header()
  
[2022-04-21 18:51:57] glpiphplog.WARNING:   *** PHP Warning (2): Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\glpi10x\src\Application\ErrorHandler.php:533) in C:\inetpub\wwwroot\glpi10x\src\Html.php at line 1189
  Backtrace :
  src\Html.php:1189                                  header()
  src\Html.php:1746                                  Html::includeHeader()
  front\plugin.php:43                                Html::header()
  
[2022-04-21 18:51:57] glpiphplog.WARNING:   *** PHP Warning (2): Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\glpi10x\src\Application\ErrorHandler.php:533) in C:\inetpub\wwwroot\glpi10x\src\Html.php at line 2207
  Backtrace :
  src\Html.php:2207                                  header()
  src\Html.php:1192                                  Html::header_nocache()
  src\Html.php:1746                                  Html::includeHeader()
  front\plugin.php:43                                Html::header()
  
[2022-04-21 18:51:57] glpiphplog.WARNING:   *** PHP Warning (2): Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\glpi10x\src\Application\ErrorHandler.php:533) in C:\inetpub\wwwroot\glpi10x\src\Html.php at line 2208
  Backtrace :
  src\Html.php:2208                                  header()
  src\Html.php:1192                                  Html::header_nocache()
  src\Html.php:1746                                  Html::includeHeader()
  front\plugin.php:43                                Html::header()
  
[2022-04-21 18:52:11] glpiphplog.NOTICE:   *** PHP Notice (8): Undefined variable: CFG_GLPI in C:\inetpub\wwwroot\glpi10x\inc\includes.php at line 155
  Backtrace :
  plugins\archimap\scripts\copystylestodb.php:35     include()
  plugins\archimap\hook.php:78                       include()
  src\Plugin.php:773                                 plugin_archimap_install()
  front\plugin.form.php:49                           Plugin->install()
  
[2022-04-21 18:52:11] glpiphplog.NOTICE:   *** PHP Notice (8): Trying to access array offset on value of type null in C:\inetpub\wwwroot\glpi10x\inc\includes.php at line 155
  Backtrace :
  plugins\archimap\scripts\copystylestodb.php:35     include()
  plugins\archimap\hook.php:78                       include()
  src\Plugin.php:773                                 plugin_archimap_install()
  front\plugin.form.php:49                           Plugin->install()

Error when exporting to pdf

When exporting the diagram to PDF it returns error 404.

See below the message:

image

The error occurs in all browsers (Chorme, Edge, Firefox, Safari).

In the logs do not show any errors

Any advice to solve this problem?

SQL: Residual installation problems (glpi_displaypreferences)

If Archimap has been previously installed then is uninstalled and cleaned, there are parts remaining in glpi_displaypreferences which causes INSERT statements to fail when reinstalling.

changing these from "INSERT" to "REPLACE" solves this error.

Blank screen when "Drawing pane" is clicked : DOM Exemption

Hi
blank page when opening drawing page.

GLPI 9.5.7
archimap 3.2.6
Ubuntu 20.04 LTS
a2enmod headers is on
add this on *.conf apache2/sites-enabled

Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
Header always set Access-Control-Allow-Credentials "true"
Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding, App-Token, Session-Token"

APP_TOKEN with value = CrwzaZni7aWu5XAjitjEHctdxIW6yrON3HNBPJoa and key = empty

on Chrome 100.0.4896.88
error link with the code : xhr2.setRequestHeader("App-Token", user.app_token);
debug :
Uncaught DOMException: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'CrwzaZni7aWu5XAjitjEHctdxIW6yrON3HNBPJoa
TXI3oHkmyFU98T46pO8msrNpfoIhRBwTsnRqZIsz
TXI3oHkmyFU98T46pO8msrNpfoIhRBwTsnRqZIsz' is not a valid HTTP header field value.
at XMLHttpRequest.xhr.onreadystatechange (:286:10)

I don't know what is the TXI3oHkmyFU98T46pO8msrNpfoIhRBwTsnRqZIsz API token ? not user API or App token

I see this DOM exemption that can be due to a \n on field value

Thanks for support.
Best,

Bug with layout vertical split in Diagrams

Hello,

I use vertical split layout's in glpi 9.5.3, Diagrams 2.2.1.

When i create a new diagram, part of the screen is blocked by a window, as seen on the screenshot.

Best regards
diagrams

GLPI 9.5 Support

Are you able to add support for the latest release candidate of GLPI. v9.5

Link to preferences are empty, Central repository, Diagram preferences show as "undefined"

If glpi using language that dont have translation in "locales", in open library "Central repository" appears as "undefined" (but still possible to select glpi from it), "link to repository " button - as "undefined" too and windows with settings are empty, so no way to change anything (substitution for existiong objects still works)

Please change it to use english if translation are unavaillable. or option to change language "default" in plugin settings because language selector inside diagram doesnot work.

Drawing Pane does not launch MS Edge 92 and IE11

Using Microsoft Edge Version 92.0.902.55 (Official build) (32-bit) and IE 11 with Diagrams (archimap) 3.1.2 and GLPI 9.5.4, the Drawing pane does not launch fully, only the border displays. Whereas with Chrome it launches fine.
archimap-edge

archimap-edge

No package to install directly from the release page.

https://github.com/ericferon/glpi-archimap/releases
there is no archive with the plugin version for direct download in a given version and unpacking to the plugins directory in GLPI.

E.g. like here:
https://github.com/fusioninventory/fusioninventory-for-glpi/releases

where it is ready to be installed directly from the network package:

https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.3%2B1.1/fusioninventory-9.3.1.1.tar.bz2

This makes it difficult for example to install / update automatically when re-installing glpi in docker containers.

Error while installing on 9.2.4

Hi,
i encounter following error
Parse error: syntax error, unexpected 'showForItem' (T_STRING), expecting '(' in /var/www/html/glpi9.2.4/plugins/archimap/inc/graph_item.class.php on line 27

Display BUG

Hi,

I have this bug when i open a new Diagram !

image

Maybe i have forget somethings to configure ?

Thanks for your help.

Jeff

Auto complete error

I'm using GLPI ver 9.5.3 & archimap ver 2.2.1 and getting an error while adding computer asset:
mxClient.js/autocomplete error (when getting source) : parsererror : SyntaxError: Unexpected token < in JSON at position 0
image

image
@ericferon

3.2.7 on GLPI 10.0.0-rc3 - Drawing Pane empty : php errors

Plugin version: 3.2.7
GLPI version: 10.0.0-rc3
PHP version: 7.4.28

Opening a diagram, clicking on the Drawing Pane tab give an empty page with following php errors :

[proxy_fcgi:error] [pid 4547:tid 140466007754496] [client 192.168.1.1:65283] AH01071: Got error 'PHP message: PHP Warning:  Declaration of PluginArchimapDiagram::showForm(CommonGLPI $item, $options = Array) should be compatible with CommonDBTM::showForm($ID, array $options = Array) in /srv/glpi/marketplace/archimap/inc/diagram.class.php on line 77PHP message: PHP Deprecated:  Autocompletion feature has been removed. in /srv/glpi/src/Toolbox.php on line 543PHP message: PHP Deprecated:  Autocompletion feature has been removed. in /srv/glpi/src/Toolbox.php on line 543PHP message: PHP Deprecated:  Autocompletion feature has been removed. in /srv/glpi/src/Toolbox.php on line 543', referer: https://glpi.lan/marketplace/archimap/front/graph.form.php?id=1

[proxy_fcgi:error] [pid 4547:tid 140466108466944] [client 192.168.1.1:65288] AH01071: Got error 'PHP message: PHP Warning:  Declaration of PluginArchimapDiagram::showForm(CommonGLPI $item, $options = Array) should be compatible with CommonDBTM::showForm($ID, array $options = Array) in /srv/glpi/marketplace/archimap/inc/diagram.class.php on line 77', referer: https://glpi.lan/marketplace/archimap/front/graph.form.php?id=1

Network elements

Can not add network elements to GLPI Asset tab.
Only items that are able to be Associated with a Drawing are Computers and Software.

Not found dropdownTypeGraphs.php

Hi.

GLPI 9.5
Downloaded archimap-v3.0.3.tar.gz
Enabled plugin, but some errors appears

/glpi/plugins/archimap/ajax/dropdownTypeGraphs.php' not found or unable to stat,

There is no "dropdownTypeGraphs.php" file

Any ideas ?
Thanks in advance

Evolution / Issue

Hello

  1. I want to add 'network' shapes in default. when adding it : it's ok, but reopening a new diagram network menu disappeared...Perhaps I didn't find the right way to do it ?

  2. How is it possible to backup the diagram created into a folder of the plugin itself ? We don't want to use github, neither using device (which would be a laptop for instance) and diagram would n't be shared for all people...

  3. I found some mistakes in app.min.js about image_path which seems to target on img and not images?

  4. I added the objects linked to web-application, application using the same structure : it's ok. but I didn't find how to add 'diagrams' menu in web-application and application :( so it's half done !

Is it possible to use autocomplete for standart stencils?

Hi. There are several questions related to this product:

  1. Is it possible to use autocomplete for standard stencils? Id like to use autocomplete for non-glpi stencils
  2. Can I link glpi assets to non-glpi stencils? For example use "Class 4 5 Switch" item that is in Cisco/Switches, link it to the network asset from glpi (Asset - Network Devices )
  3. Is it possible to open asset page by clicking on the stencil?

Thank you for the answers!

GLPI 9.4 Support

Hello,

Are you planning on developing archimap to work with GLPI 9.4?

Love this plugin's integration into GLPI!

Thanks

non-ansi characters in 'selection criteria' field

Is it possible to use non-ansi characters in 'selection criteria' field? I'm trying to filders computers by type "Сервер" ('server'):
Selection criteria: glpi_computers.type='"Сервер"
image

but SQL statement "dont see" that word"
image

Errors in URL path and plugin path

Hello,

I have a rare error that I do not know if it is a bug. I also indicate how to solve it temporarily until some solution or suggestion is found.

I have my application GLPI in Ubuntu-apache exposed to the internet from the firewall with NAT and HA-proxy. In the internal GLPI network it can be seen like this: http://10.30.1.75/glpi

From the internet it can only be seen with FQDN in HTTPS, like this: https://glpi.FQDN.TLD without the /glpi part.

When I try to open a diagram in Drawing Pane from the internal network there is no problem, it is displayed correctly:

image

But when I try to do it from the internet, I cannot and the following errors appear:

image

image

image

image

I add the file:
this.frame.txt

So I have my Apache configured:

  • glpi_FQDN.TLD_http.conf
<VirtualHost *:80>
        Include /etc/apache2/le_http_01_challenge_pre.conf
        ServerAdmin [email protected]
        ServerName glpi.FQDN.TLD
        DocumentRoot /var/www/html/glpi
        ServerAlias glpi.FQDN.TLD
        Alias "/.well-known" "/var/www/html/.well-known"

        RewriteEngine on
        RewriteCond %{SERVER_NAME} =glpi.FQDN.TLD
        RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
        Include /etc/apache2/le_http_01_challenge_post.conf
</VirtualHost>
  • glpi.FQDN.TLD_https.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerAdmin [email protected]
        ServerName glpi.FQDN.TLD
        ServerAlias glpi.FQDN.TLD
        Alias "/.well-known" "/var/www/html/.well-known"

        DocumentRoot /var/www/html/glpi
        SSLCertificateFile /etc/apache2/certs/Cert.crt
        SSLCertificateKeyFile /etc/apache2/certs/Cert.key
</VirtualHost>
</IfModule>

Then checking I realized that the URL was /front/drawio but that path or folder does not exist in the path of the plugin in linux:

image

Rather, it is in the main root of the plugin /archimap/drawio folder:

image

So what I did was create a symbolic link from the main drawio folder to front, with the following command in /var/www/html/glpi/plugins/archimap/front

ln -s ../drawio .

image

And in that way the diagram is already presented, although with certain errors, which are solved in the same way as above, since there are certain URL paths that do not exist in the plugin path: /front/drawio-integration and /drawio/src/main/drawio/src/main (this repeats) for example.

image

image

So i did the following:

  • At /var/www/html/glpi/plugins/archimap/front

ln -s ../drawio-integration/ .

image

  • At /var/www/html/glpi/plugins/archimap/drawio/src/main

ln -s ../../../drawio .

image

With that the diagram appears correctly, although at the js level there are other errors that I am not aware of, it seems that it does not affect the diagram.

image

image

Is there a way to correct this so that my method is not so complicated?

drawio won't open

Hello, great job. I am trying to use this plugin. In stable version 2.2.1, I fall into problem #34 already solved.
When upgrading to the newer version 3.0.2, I can add a new diagram, but when I click on the drawing panel, it presents a screen that does nothing next.
GLPI version 9.5.5
PHP: 7.4.9
MariaDB: 10.5.4
There are no errors in the log files

image

No release file for version 3.0.3

Can you please form release file for version 3.0.3 as is stated here

<download_url>//github.com/ericferon/glpi-archimap/releases/download/3.0.3/archimap-3.0.3.tar.gz</download_url>

Also is it necessary to add screenshots from the root of the repository to release archive?

PHP Compile Error (64): require_once(): Failed opening required

GLPI Version: 9.5.7
Plugin version: 3.2.4 (in GLPI it show as 3.2.3) and 3.2.2

I'm getting this error in the last both versions:

[2022-03-31 09:52:37] glpiphplog.WARNING:   *** PHP Warning (2): require_once(/var/www/html/glpi/plugins/archimap/drawio-integration/ext/js-fileexplorer/server-side-helpers/file_explorer_fs_helper.php): failed to open stream: No such file or directory in /var/www/html/glpi/plugins/archimap/inc/diagram.class.php at line 114
  Backtrace :
  plugins/archimap/inc/diagram.class.php:114         require_once()
  plugins/archimap/inc/diagram.class.php:59          PluginArchimapDiagram->showForm()
  inc/commonglpi.class.php:637                       PluginArchimapDiagram::displayTabContentForItem()
  ajax/common.tabs.php:106                           CommonGLPI::displayStandardTab()

[2022-03-31 09:52:37] glpiphplog.ALERT:   *** PHP Compile Error (64): require_once(): Failed opening required '/var/www/html/glpi/plugins/archimap/drawio-integration/ext/js-fileexplorer/server-side-helpers/file_explorer_fs_helper.php' (include_path='.:/usr/share/php') in /var/www/html/glpi/plugins/archimap/inc/diagram.class.php at line 114

And the screen stuck in blank:

image

For sure, that file doesn't exist:

/var/www/html/glpi/plugins/archimap/drawio-integration/ext/js-fileexplorer/server-side-helpers/file_explorer_fs_helper.php

Problem with HTTPS (FQDN)

After I resolved: #55

I'm facing a new problem, maybe I guess, with HTTPS when FQDN is specified, the drawing doesn't show up:

image

But in HTTP with IP and /glpi/ in the URL it's show OK. What could be do?

image

Glpi Version: 9.5.7
Plugin Version: 3.2.3

My apache conf for:

HTTP: "sites-enabled/glpi.conf"

<VirtualHost *:80>
        Include /etc/apache2/le_http_01_challenge_pre.conf
        ServerAdmin [email protected]
        ServerName FQDN
        DocumentRoot /var/www/html/glpi
        ServerAlias FQDN
Alias "/.well-known" "/var/www/html/.well-known"
#        ProxyPass / http://localhost/glpi/
#        ProxyPassReverse / http://localhost/glpi/
RewriteEngine on
RewriteCond %{SERVER_NAME} =FQDN
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Include /etc/apache2/le_http_01_challenge_post.conf
</VirtualHost>

HTTPS: "sites-enabled/glpi-ssl.conf"

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerAdmin [email protected]
        ServerName FQDN
        ServerAlias FQDN
        Alias "/.well-known" "/var/www/html/.well-known"
#        ProxyPass / http://localhost/glpi/
#        ProxyPassReverse / http://localhost/glpi/
        DocumentRoot /var/www/html/glpi
SSLCertificateFile /etc/apache2/certs/GLPI-OCS.crt
SSLCertificateKeyFile /etc/apache2/certs/GLPI-OCS.key
#Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
#<IfDefine IgnoreBlockComment>
#<IfModule mod_headers.c>
#        Header set Content-Security-Policy "script-src 'strict-dynamic' 'nonce-rAnd0m123' 'unsafe-inline' http: https:; frame-ancestors; 'self';object-src 'none';base-uri 'none'; require-trusted-types-for 'script';"
 #       Header set X-XSS-Protection "1; mode=block"
 #       Header always append X-Frame-Options SAMEORIGIN
 #       Header set X-Content-Type-Options nosniff
#        Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains"
#</IfModule>
#</IfDefine>

Change default styles (for new drawing, Import or Cut Paste)

Version 3.1.2

When I create a new drawing, the default style for shapes is:

Shapes
Fill colour: #E1D5E7
Line colour: #9673A6
Text Colour: #774400

and the default style for connectors is:

Connectors
Line colour: #6482B9
Text colour: #446299

I expected the default styles to be black on white (as per draw.io and draw.io desktop).

There appears no way to change this. I looked at the file drawio/src/main/webapp/styles\default.xml and these are not the styles defined there:

	<add as="defaultVertex">
		<add as="shape" value="label"/>
		<add as="perimeter" value="rectanglePerimeter"/>
		<add as="fontSize" value="12"/>
		<add as="fontFamily" value="Helvetica"/>
		<add as="align" value="center"/>
		<add as="verticalAlign" value="middle"/>
		<add as="fillColor" value="#ffffff"/>
		<add as="strokeColor" value="#000000"/>
		<add as="fontColor" value="#000000"/>
	</add>
	<add as="defaultEdge">
		<add as="shape" value="connector"/>
		<add as="labelBackgroundColor" value="#ffffff"/>
		<add as="endArrow" value="classic"/>
		<add as="fontSize" value="11"/>
		<add as="fontFamily" value="Helvetica"/>
		<add as="align" value="center"/>
		<add as="verticalAlign" value="middle"/>
		<add as="rounded" value="1"/>
		<add as="strokeColor" value="#000000"/>
		<add as="fontColor" value="#000000"/>
	</add>

I can modify the default styles for these on a per diagram basis by editing a shape/line and clicking the Save as Default Style" button. A pain, but not too much of an issue.

However, when I import or cut/paste a diagram from the desktop version of draw.io or even another diagram in GLPI, any shapes or lines without a defined colour get the same unexpected default values. This happens even if I have first saved a new default style in the diagram:

Shapes
Fill colour: #E1D5E7
Line colour: #9673A6
Text Colour: #774400

Connectors
Line colour: #6482B9
Text colour: #446299

Any ideas? Is there a way to change this?

There also does not appear to be a way to change the theme back to the Default from the Minimal theme.

Problem with network device name

Hello when I was created in diagrams network device and set up my network device, everything is correct but when I want to update name on my network device I don't see any changes and I've old name, glpi_id is correct but device name is still old. I can only manually search again and then I find a correct new name of my network device. My question is, this works only manually? I want to automaticly update new name of my network devices.
Przechwytywanie1 -- old name
Przechwytywanie2 -- and when I was search again my network device manually have a latest new name.

.

3.2.6 on GLPI 10.0.0 - Exit from drawing pane does not show GLPI menu etc

Plugin version: 3.2.6
GLPI version: 10.0.0
PHP version: 7.4

Opening a diagram, clicking on the Drawing Pane tab and then using Exit to leave the drawing pane does not refresh GLPI to show the GLPI menus etc. Nor does it appear to return the focus to the Diagram tab, as expected. Exit from the drawing pane should, I suspect, trigger a redirect to something similar to the following:

plugins/archimap/front/graph.form.php?_itemtype=PluginArchimapGraph&_glpi_tab=PluginArchimapGraph$main&id=14&withtemplate=

This is what I see.

archimapexit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.