Dienstag, 1. März 2016

WAP und Wildfly und JSESSIONID

Ein Windows Server 2012 R2 als WAP vor einem Wildfly.
Jeder erste Request einer Seite führte zu fehlerhaften Bildern.

Stellte sich heraus, beim ersten Aufruf setzt der Wildfly einen Session Cookie "JSESSIONID".

Im Response dieser ersten Seite werden die URLs auf Objekte aber auch mit der SessionID in der URL versehen.

Sieht dann so aus <img src="/irgendeinbild.jpg;JSESSIONID=lkdfksadhfhui34h">.
Das geht ohne WAP super. Das geht auch mit IIS und ARR super.

Stellt sich heraus ein Bug beim Encoding.

Scheint auch nicht nur Java Appserver zu treffen sondern Outlook Web Apps.

https://support.microsoft.com/en-us/kb/3042127

Der Hotfix soll auch das JSESSIONID Problem beheben.

Siehe auch: https://social.technet.microsoft.com/Forums/windowsserver/en-US/108a3fe5-be53-40b3-a3a8-f37263987755/web-application-proxy-and-urlencode-problem-with-repsonse-from-appliation?forum=winserver8gen


Da der Browser selbst nach dem ersten Request den Session Cookie an den Server sendet wird beim wiederholten Request auch auf den Session Cookie in der URL verzichtet (außer der Browser hat Cookies aus...).

Mittwoch, 3. Februar 2016

HP Pavilion x2 Probleme bei Reinstallation Windows 10 Enterprise

Für ein Projekt benötigten wir ein kleines Tablet mit der Möglichkeit dieses in die Domain zu integrieren.

Die HP Produktseite beschreibt das Gerät mit "Windows 10 Home Edition 64 bit". Das ist jedoch falsch. Installiert ist 32 Bit.

Der Versuch ein 64 Bit Betriebssystem zu installieren scheitert dann auch zusätzlich weil das UEFI Bios auch nur 32 Bit ist.

Damit blieb nur das Erstellen eines UEFI USB Installationsmedium mit "Windows 10 Enterprise 32 Bit". Das funktionierte dann auch problemlos.

Fast alle Treiber fanden sich beim Hersteller unter der entsprechenden Produktseite.
Es fehlte jedoch noch ein "Bosch Multisensor" Treiber. Diesen fand man dann bei älteren Pavilion Geräten als "Bosch Multisensor Driver - sp71466.exe" für Windows 8.1 32 Bit. Dieser funktioniert ebenfalls.

Jetzt konnte der Kiosk Mode in Windows 10 mit klassischer Shell genutzt werden (benötigt Windows 10 Enterprise) https://technet.microsoft.com/de-de/library/mt219051(v=vs.85).aspx um die Nutzung auf eine Anwendung zu beschränken.

Dienstag, 19. Januar 2016

IIS ARR and WAP on the same 2012 R2 server

http redirect should be in WAP on Windows Server 2016. But what until then?

I did not see any official statement about running ARR with IIS and WAP on the same 2012 R2 server, so I just tried and it seems to work fine.

I use the IIS only for http redirect and WAP for https.

And I use the IIS for some http -> https redirects. That was another thing I missed in the WAP.
For this you only need the IIS role and "HTTP Redirect" feature. The redirected request does to the WAP and will be forwarded to the internal server.

Just installed the IIS Role and got the ARR Components from:



Manual x64 downloads at the bottom.

When creating a Server farm, you still see the https destination Port, but if you didn't create a https Binding in IIS it will not be used.

As far I did not see any problems with that.


With Powersehll "Get-Webbinding" you could see what Bindings you have in the IIS.
With "netsh http show sslcert" you see the SSL Cert Bindings (from WAP and/or IIS).
Keep in mind that WAP and IIS use the same http.sys kernelmode service.