Trident

Off Topic => Off Topic => Hard-/Soft- und Nerdware => Thema gestartet von: Itchy am 04. Juni 2015, 10:24:07

Titel: Project Spartan und Forums-Avatare
Beitrag von: Itchy am 04. Juni 2015, 10:24:07
Blaukool hat entdeckt, dass mit dem IE-Nachfolger manche Avatar im Forum nicht angezeigt werden. Deswegen brauche ich ExpertenTM-Hilfe.

Meiner funktioniert:
https://www.trident-online.de/smf/index.php?action=dlattach;attach=1373;type=avatar

Abyes funktioniert nicht:
https://www.trident-online.de/smf/index.php?action=dlattach;attach=980;type=avatar

HTTP Header, zuerst mein Avatar (markiert die relevanten Unterschiede):

Zitat
Accept-Ranges: bytes
Cache-Control: max-age=31536000, private
Connection: close
Content-Disposition: inline; filename*=UTF-8''avatar_88.png
Content-Encoding: none
Content-Type: image/png
Date: Thu, 04 Jun 2015 07:17:26 GMT
Etag: "1373avatar_88.png1206833874"
Expires: Fri, 03 Jun 2016 07:17:26 GMT
Last-Modified: Sat, 29 Mar 2008 23:37:54 GMT
Server: Apache/2.4.10 (Debian)
Transfer-Encoding: chunked
X-Frame-Options: SAMEORIGIN
X-Powered-By: PHP/5.6.7-1
x-content-type-options: nosniff
x-xss-protection: 1

Und nun der von Abye:

Zitat
Accept-Ranges: bytes
Cache-Control: no-cache
Connection: close
Content-Disposition: attachment; filename*=UTF-8''avatar_158.png
Content-Encoding: none
Content-Type: application/octet-stream
Date: Thu, 04 Jun 2015 07:20:10 GMT
Etag: "980avatar_158.png1192643551"
Expires: Fri, 03 Jun 2016 07:20:10 GMT
Last-Modified: Wed, 17 Oct 2007 17:52:31 GMT
Server: Apache/2.4.10 (Debian)
Transfer-Encoding: chunked
X-Frame-Options: SAMEORIGIN
X-Powered-By: PHP/5.6.7-1
x-content-type-options: nosniff
x-xss-protection: 1

Die Bilder im Filesystem sind wie folgt:

mail:/srv/www/www.trident-online.de/smf/attachments$ file avatar_88.png avatar_158.png
avatar_88.png:  PNG image data, 80 x 80, 8-bit/color RGBA, non-interlaced
avatar_158.png: PNG image data, 80 x 80, 8-bit/color RGBA, non-interlaced

Sind also beides echte PNGs...

Ich bin ratlos, jemand eine Idee?
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Itchy am 04. Juni 2015, 10:28:45
Ok, direkt nach dem Absenden die zündende Idee gehabt. Im Forum werden die MIME-Types zu den Attachments in einer Tabelle gespeichert. Die waren teilweise kaputt. Habs jetzt gefixt.
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Ronnie Drew am 04. Juni 2015, 10:47:51
Kein Problem, schön dass wir dir helfen konnten!
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Blaukool am 04. Juni 2015, 11:58:27
Danke für deinen Post Ronie ;)

Funktionieren: Abye, Blaukool, B$, Ed, Itchy, Hurz, Skeltem
Funktioniert nicht: Ronnie Drew
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Blaukool am 04. Juni 2015, 12:05:59
Details Ronnie Drew:

http://www.trident-online.de/smf/index.php?action=dlattach;attach=1275;type=avatar

Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Blaukool am 04. Juni 2015, 12:15:05
Details Blaukool:

http://www.trident-online.de/smf/index.php?action=dlattach;attach=1929;type=avatar

Der Empty-Body wird scheints von Project Spartan eingefügt...
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Itchy am 04. Juni 2015, 22:42:41
Hab jetzt auch die kaputten GIF und JPEG gefixt. Beim ersten mal hab ich nur die PNGs gemacht. Sollten jetzt aber alle Bilder sein.
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Blaukool am 04. Juni 2015, 22:56:15
Sieht gut aus :)
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: abye am 04. Juni 2015, 23:23:44
Warum schreibt er denn den falschen content-type in die Tabelle ?
Titel: Re: Project Spartan und Forums-Avatare
Beitrag von: Itchy am 04. Juni 2015, 23:29:15
Das weiß ich nicht. Wahrscheinlich ein SMF Bug? Hab jetzt nicht extensiv danach gegoogled.