These are various examples or counterexamples to the slogan “total space = base × fiber”.
General linear group over projective space
Here we fix an isomorpism P1≅Proj(k[x,y]), and similarly fix coordinates for
GL2,k after discussing the definition thereof. I believe this example holds in positive
characteristic, but I generally have been thinking about the characteristic zero case.
The general linear group is a group scheme by this example on the stacks
project, and is given by GL2=Spec(Z[x,y,z,w,1/(xw−zy)]). Base changing to a field k gives GL2,k=Spec(k[x,y,z,w,1/(xw−zy)])
(this is effectively the classical definition). Consider the map ψ1:GL2,k→U1≅A1 given by the ring morphism k[x]→k[x,y,z,w,1/(xw−zy)],x↦(xw−yz) and the map
ψ2:GL2,k→U2≅A1 given by the ring morphism k[x]→k[x,y,z,w,1/(xw−zy)],x↦1/(xw−yz). Viewing U1→P1 and U2→P1 as affine patches, we see that
U1×P1U2≅Speck[x,x−1]; under this isomorphism, we see that ψ1 and
ψ2 agree on U1×P1U2, the overlap. This means that we can glue them to a map
ψ:GL2,k→P1.
We now seek to compute the fiber ψ−1(p)=GL2,k×P1Speck(p) for a point
p∈P1. Let U≅Speck[x] be an affine patch containing p. Then we may instead
compute the fiber product ψ−1(p)=GL2,k×A1Speck(p), which is affine. Thus
this map is a map who’s source and fiber are affine, but who’s target is not.