#2790 404 not returned for bad urls to files in a pagure repo
Closed: Invalid 6 years ago Opened 6 years ago by bex.

This is a valid url:

https://pagure.io/pagure/blob/master/f/README.rst

This is not:

https://pagure.io/pagure/blob/bexisamazing/f/README.rst

Both appear to return the same content on the same branch (master).


That's because if the identifier is not a blob nor a branch, it defaults to display the content of the master branch.

It is not clear to me that this is a good behavior.

IIRC, this is to keep backward compatibility with an older URL schema that pagure used.

IIRC, this is to keep backward compatibility with an older URL schema that pagure used.

Ok. I'll accept an overheating spacebar :D

By coincidence, this bug/feature also makes a piece of code I am writing easier in one case and bad in another - so I am a lover and a hater :P

Metadata Update from @bex:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata