Corrosion on water pipe fitting occurs when: