On a question of Hartshorne