Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when using the drag and drop attaching documents in the ticket #494

Closed
tacianomittmann opened this issue Feb 25, 2016 · 20 comments
Closed

Comments

@tacianomittmann
Copy link

I use the 0.90.1 version of GLPI .
The ticket screen, the item documents have problems using the drag and drop , works only with a document. While trying to attach two or more documents appear on only one ticket interface.
Anyone ever had this problem and know how to solve ? It's a bug in this release?
PS :
In a new ticket it works perfectly .
In an existing ticket attach only one document
See the test attachments.
Thank you.

drag_and_drop_1
drag_and_drop_2
drag_and_drop_3
drag_and_drop_4
drag_and_drop_5
drag_and_drop_6
drag_and_drop_7
drag_and_drop_8
drag_and_drop_9

Information about system installation and configuration
[code]
GLPI 0.90.1 (/glpi => /srv/www/htdocs/glpi)

Server
Operating system: Linux linux-iqe8 4.1.12-1-default #1 SMP PREEMPT Thu Oct 29 06:43:42 UTC 2015 (e24bad1) x86_64
PHP 5.5.14 apache2handler (Core, PDO, Reflection, SPL, SimpleXML, apache2handler, bz2, ctype, date, dom, ereg, fileinfo, filter,
gd, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, pdo_mysql,
pdo_sqlite, session, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M"
Software: Apache ()
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
Server Software: openSUSE package
Server Version: 10.0.21-MariaDB
Server SQL Mode: STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION
Parameters: root@localhost/chamados
Host info: Localhost via UNIX socket

OK/srv/www/htdocs/glpi/config : OK
OK/srv/www/htdocs/glpi/files : OK
OK/srv/www/htdocs/glpi/files/_dumps : OK
OK/srv/www/htdocs/glpi/files/_sessions : OK
OK/srv/www/htdocs/glpi/files/_cron : OK
OK/srv/www/htdocs/glpi/files/_graphs : OK
OK/srv/www/htdocs/glpi/files/_lock : OK
OK/srv/www/htdocs/glpi/files/_plugins : OK
OK/srv/www/htdocs/glpi/files/_tmp : OK
OK/srv/www/htdocs/glpi/files/_rss : OK
OK/srv/www/htdocs/glpi/files/_uploads : OK
OK/srv/www/htdocs/glpi/files/_pictures : OK
OK/srv/www/htdocs/glpi/files/_log : OK
Web access to the files directory, should not be allowed
Check the .htaccess file and the web server configuration.

Libraries
htmLawed version 1.1.20 in (/srv/www/htdocs/glpi/lib/htmlawed)
phpCas version 1.3.4 in (/srv/www/htdocs/glpi/lib/phpcas)
PHPMailer version 5.2.8 in (/srv/www/htdocs/glpi/lib/phpmailer)
ZetaComponent ezcGraph installed in (/srv/www/htdocs/glpi/lib/zeta/Base): OK
Zend Framework version 2.4.9 in (/srv/www/htdocs/glpi/lib/Zend)
SimplePie version 1.3.1 in (/srv/www/htdocs/glpi/lib/simplepie)
TCPDF version 6.2.12 in (/srv/www/htdocs/glpi/lib/tcpdf)
ircmaxell/password-compat in (/srv/www/htdocs/glpi/lib/password_compat). Compatitility: Ok

Plugins list
dashboard Name: Painel Version: 0.7.1 State: Enabled

@tomolimo
Copy link
Contributor

Hello
What browser do you use?
Do you have SSO?
Architecture of the infrastructure? Windows AD?

@tacianomittmann
Copy link
Author

I used Google Chrome, Mozilla Firefox.
We do not use SSO for access to GLPI.
To make users sign in GLPI use the AD Microsoft.

@tomolimo
Copy link
Contributor

Could you please detail the user connection with GLPi?

@tacianomittmann
Copy link
Author

Authentication LDAP directory: Name - SC
Last synchronization on 25-02-2016 16:56
User DN: CN=Taciano Mittmann,OU=Tecnico,OU=INFORMATICA,OU=SR,OU=Padrao,OU=Usuarios,OU=SC,DC=intranet

Entities Profiles (D=Dynamic, R=Recursive)

Entidade raiz Super-Admin (R)
user

Source ID Date Service Level Message
System 25-02-2016 16:56 Connection 3 taciano.mittmann fez login no IP 10.XXX.XXX.XXX

@tomolimo
Copy link
Contributor

Hello,
Could you send Fiddler traces?
Thank you,
regards,
Tomolimo

@tacianomittmann
Copy link
Author

Hello,
Could you enlighten me what you really have to do to send you this?
I did not understand what you want .

@tomolimo
Copy link
Contributor

To help you to narrow the problem I need to have network trace between your browser and your GLPI server.
For this, I propose you to install Fiddler on your PC, and then to capture network exchanges (reproducing the problem you mentioned), and then to post these in a zip file.

@tacianomittmann
Copy link
Author

Test drag and drp.zip
Hello,
I performed the test with Fiddler
follows the attachment.

@tomolimo
Copy link
Contributor

As far as I can see, there is no network problem in the traces.
Did you reproduce the problem during the session?

@tacianomittmann
Copy link
Author

Yes , I performed the test and the problem occurred again.

@yllen
Copy link
Collaborator

yllen commented Feb 26, 2016

No problem for me with firefox. I can add many documents in an existing ticket.

@tacianomittmann
Copy link
Author

Hello,

I performed the test again , this time I recorded the steps , look at the attachment.

AutoScreenRecorder_05 Feb. 26 15.45.zip

@tacianomittmann
Copy link
Author

Hello,

Note that the opening of the ticket works perfectly , but when the ticket is open only appends the last document in the list. But the document was sent to the server , because when I attach it again appears the "filename ( 2 ) .txt " .
I recorded another video. See the attachment.

AutoScreenRecorder_06 Feb. 26 15.51.zip

@tomolimo
Copy link
Contributor

Hello,
I've got the same problem!
When trying to add several documents by drag/drop into an existing ticket, then only one is really added.
It occurs on GLPi 0.90.1, but not on 0.91: seems like something has been fixed!
Regards,
Tomolimo

@tomolimo
Copy link
Contributor

I made traces for both cases, and I saw that when using 0.90.1 the filename array is malformed in the POST params:

Look into the traces you sent to us: open them with Fiddler, and select the line 40 (/glpi/front/document.form.php POST)

and you'll the following params in the 'TextView' for the POST:

-----------------------------71101354620970
Content-Disposition: form-data; name="documentcategories_id"

0
-----------------------------71101354620970
Content-Disposition: form-data; name="entities_id"

0
-----------------------------71101354620970
Content-Disposition: form-data; name="is_recursive"

0
-----------------------------71101354620970
Content-Disposition: form-data; name="itemtype"

Ticket
-----------------------------71101354620970
Content-Disposition: form-data; name="items_id"

14343
-----------------------------71101354620970
Content-Disposition: form-data; name="tickets_id"

14343
-----------------------------71101354620970
Content-Disposition: form-data; name="filename[]"; filename=""
Content-Type: application/octet-stream

-----------------------------71101354620970
Content-Disposition: form-data; name="_filename[0]"

7.txt
-----------------------------71101354620970
Content-Disposition: form-data; name="_tag_filename[0]"

65df2577-4ad760f9-56d0569685f826.77260442
-----------------------------71101354620970
Content-Disposition: form-data; name="_filename[0]"

6.txt
-----------------------------71101354620970
Content-Disposition: form-data; name="_tag_filename[0]"

65df2577-4ad760f9-56d056969415f4.83550452
-----------------------------71101354620970
Content-Disposition: form-data; name="_filename[0]"

4.txt
-----------------------------71101354620970
Content-Disposition: form-data; name="_tag_filename[0]"

65df2577-4ad760f9-56d05696a24f84.97266971
-----------------------------71101354620970
Content-Disposition: form-data; name="_filename[0]"

5.txt
-----------------------------71101354620970
Content-Disposition: form-data; name="_tag_filename[0]"

65df2577-4ad760f9-56d05696da04d8.76009489
-----------------------------71101354620970
Content-Disposition: form-data; name="add"

Adicionar novo arquivo
-----------------------------71101354620970
Content-Disposition: form-data; name="_glpi_csrf_token"

2167bc11de457ee5bd7ff2ea28aa6056
-----------------------------71101354620970--

The filename array should be incremented like [0], and [1], [2] and so on...
As it stays to [0], only one file will be added to the ticket.

@orthagh
Copy link
Contributor

orthagh commented Feb 29, 2016

On 0.90/bugfixes branches and master, could not replicate issue
Test on 0.90.1, errors is here.

I can't remember changes on document addition recently.
So i suggest you to wait for 0.90.2 who apparently don't have the bug

@tacianomittmann
Copy link
Author

Thank you for the feedback !

Let's wait for the 0.90.2 version, I thank the team for guidance and commitment.
No provision for release of version 0.90.2 ?

@orthagh
Copy link
Contributor

orthagh commented Feb 29, 2016

Asap, I'm currently working on backlog

@orthagh orthagh closed this as completed Feb 29, 2016
@orthagh
Copy link
Contributor

orthagh commented Mar 22, 2016

Finally i retrivied the commit who fixed the issue.
There :
f091703#diff-f6061ea857b63b7935db5eaddac48c64L583

@tacianomittmann
Copy link
Author

Perfect,
I just tested and it works very well.
Thank you for feedback and improvements in the system.
It's really a pleasure to use GLPI .

:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants