Step to reproduce:
- select a File document in a content view and push the Copy button
- push the Paste button
- a new document is created in the same folder: get its id (cd551cce-5322-4368-b045-e13086f250bb in my example)
- edit the new document and increment the minor version
- run the following SQL query against your database
=> the label value is empty
This value is returned when calling session.getLastVersion(docRef).getLabel().