Ok, Im more than sure this has been covered before.
I just wanna make sure I know what is going on before I start ripping things apart and spending $$$$ fixing this stuff.

Whenever I lock with my key my car it unlocks itself right away, I proceed to lock it again. It usually stays locked.

Now. If I have the trunk in the UNLOCKED position and I unlock the vehicle. It unlocks no problem.
But. If I have the trunk in the LOCKED position and I unlock the vehicle. It locks right away and I have to unlock the vehicle once again.

Is this the trunk harness or microswitch gone bad?

The double lock feature works fine and all the windows and sunroof close normally.

Sorry if this has been covered a million times before.