Problem:
Some permalinks lead to wrong attachments.
My WordPress 2.2 configuration:
* Date and time based permalinks
* Uploads organized into month and year based folders
Way to reproduce the problem:
* Write a new post, attach a new file with title of 'one', then publish the post
* Write a second post, attach a new file with title of 'one', then publish the post
* Write a third post, attach a new file with title of 'one', then publish the post
Resulting permalinks for the attachment:
* First post: http://test/2007/06/03/first-post/one/
* Second post: http://test/2007/06/03/second-post/one-2/
* Third post: http://test/2007/06/03/third-post/one-2/
Going to those links shows the correct file for the first and the third post. However the link for the second post shows the file of the third post.
All files are uploaded correctly, the problem is only in the link.