You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-06-06 00:10:44

arrow15
Member
Registered: 2008-06-05
Posts: 4

Localhost vs. Explicit Address -- malfunctioning images w/ explicit

So this is a bit of an odd situation that I'm hoping I can get some input on. Two images (there may be more, that's all I've found so far) in GLPI, options_search.png and aide.png, are expanding to massive sizes under a specific condition. They are usually tiny icon images, but in this situation they become 1000px in width, so they are just these giant blobs of HUGE pixels on screen in GLPI.

Let me describe my setup. I have a Linux and Windows machine side by side and they're both on the network with a proxy. The Linux machine is hosting the test-GLPI server I'm trying out. Both computers have subdomain names in the network. So when I visit GLPI from either of them, I reference the linux machine, which I'll call linux. The machine's address is formatted like "linux.domain.com." My hostname for mysql and any settings is the hostname in that format. Here are the scenarios:

From the Windows machine (eg: windows.domain.com):
- In Firefox and IE everything works flawlessly. The address I use is linux.domain.com/glpi.

From the Linux machine:
- In FF and Kon I get those major image problems when I visit linux.domain.com/glpi.
- In FF, everything works when I visit localhost/glpi (Kon wouldn't let me use localhost)

Here is the difference in one image between working and blown up.
Working:

<img alt='' src='/glpi/pics/aide.png' onmouseout="cleanhide('comments_default_rubdoc_tracking169624094')" ......

Blown up:

<img src='/glpi/pics/aide.png' width=1000 alt='' onmouseout="cleanhide('comments_default_rubdoc_tracking2013488958')" ......

So this "width=1000" is actually showing up in the code, but only in that one circumstance. I find this so strange. Any ideas and what is causing this unusual behavior? Otherwise everything seems to be fine (even clicking the images brings up the same pop-up as normal), but these images sprawl all over their pages, so it makes things hard to read. Thanks in advance for help.

Offline

#2 2008-06-06 00:44:38

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Localhost vs. Explicit Address -- malfunctioning images w/ explicit

no idea for me.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2008-06-06 02:19:35

arrow15
Member
Registered: 2008-06-05
Posts: 4

Re: Localhost vs. Explicit Address -- malfunctioning images w/ explicit

I looked at the source code more carefully, and I realized what is going on. It was mere coincidence the way the behavior worked out. Here's what I found in the source code:

'height=400, , top=100, left=100,

in the window open area, rather than

'height=400, width=1000, top=100, left=100,

The width=1000 was being stripped from this and placed out front of the line, into the img code area. What was the culprit? The proxy...

My proxy settings in windows FF were auto, so LAN addresses automatically didn't use proxy. IE is able to recover from that sort of error, so it displayed properly even with the bad code. Both Linux browsers had manual proxy settings, so ALL connections went through the proxy, and neither browser could recover. Localhost never even left my system, so the proxy didn't touch it. That is why the behavior was so peculiar... it all depended on signal routing and random settings.

The proxy replaces all window.opens with PrivoxyWindowOpen to track pop-ups or something, and the proxy itself must have a parsing bug that causes the width=1000 to move places. An amazing reason for the bug, but you guys don't have to worry cause it has nothing to GLPI! lol As for that proxy...  mad roll

Last edited by arrow15 (2008-06-06 02:20:58)

Offline

#4 2008-06-06 19:14:41

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Localhost vs. Explicit Address -- malfunctioning images w/ explicit

Thanks for the return, i close.


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

Board footer

Powered by FluxBB