[WIP] Set expiration date by default when creating a share

Fix #4823