I purchased a new Glock 17 Gen 4 and it has been the most unreliable out-of-the-box gun I have ever bought, and I have many (Glock 19 Gen 3, S&W M&P 9, HK P30, Kahr PM9 and P.380, Les Baer Premier II, Ed Brown, Kimber Ultra CDP II).
The Gen 4 Glock now has 500 rounds through it, and continues...