One of the defining features of a UFD is that any height one prime ideal is principal (see Wikipedia).
Is it also true that any height one (i.e. every prime minimal among those containing it has height $1$) ideal is principal? Is this true even in the case of polynomial rings?
If not, please provide a counterexample.
You can take any UFD of dimension $\geq 2$, an irreducible element $f$ and a maximal ideal $\mathfrak m$ containing $f$. Then $I=(f) \cdot \mathfrak m$ has height $1$ (the only minimal prime over $I$ is $(f)$), but is not principal.
In particular the polynomial ring over a field admits a counterexample, for instance $(X^2+Y^2-1) \cdot (X-1,Y)$.
The counterexample given in the other answer is obtained by the choice $f=X, \mathfrak m=(2,X)$.