Not actually a bug, just an irritation. It is an irritation nearly everyone complains about when they notice a miner walk half way around the world to stand next to his target when all he needed to do was take 1 step.
I am posting this more as a suggestion, and posting it here because the behavior does qualify as a bug under the concept of "not the intended result".
The logic is actually very simple. We can not path from the dwarf to his mining target because the mining target is not an available place to step. We do not want to path from the dwarf to each square around the mining target because that takes too long and does not actually assure that the target is reachable from that location.
What can be done is reverse logic. Path from the mining target to the dwarf. This gives use a shortest route and ensures reachability. Then remove the first step and reverse the path. This provides a route for the dwarf to travel and the final location to stand.
This particular logic design works with a dwarf just finished mining a tile and his new target tile selected him, as well as mining a new channel. It can work with workshops and picking up items, those require standing on instead of standing next to and would not remove the first step prior to path reversal.