An exclusion process on a ring is studied in this paper, where the presence of a defect particle immersed in a bath of normal particles leads to phase transitions between localized and shock phases. The authors use the functional Bethe ansatz to analytically compute the mean current and, for the first time, the diffusion constant, and report good agreement with Monte Carlo simulations.