10

Possible Duplicate:
Please prevent creation of tags that could trigger the IIS file extension filter

There’s a tag on SO [r.java] (created by this question) that can’t be browsed — the server just returns an empty 404 page.

5
  • The same happens with the [asp.net] tag.
    – ChrisF Mod
    Nov 30, 2010 at 13:42
  • @ChrisF: No, you can browse (visit) the tag page for asp.net but not for r.java
    – Jonas
    Nov 30, 2010 at 13:54
  • @Jonas - it didn't use to be the case - I can't find the reference though. Obviously the same fix needs applying in the [r.java] case.
    – ChrisF Mod
    Nov 30, 2010 at 13:58
  • @ChrisF: Ok, I understand. However, see my answer below, I have renamed the tag to [r.java-file].
    – Jonas
    Nov 30, 2010 at 14:04
  • @Jonas - I did see, however it would be better to implement a generic solution.
    – ChrisF Mod
    Nov 30, 2010 at 14:05

2 Answers 2

9

this is a file extension issue. ASP.NET is refusing to serve a *.java file - same as if you wanted to check the tag soapi.cs on stackapps.

I have covered this in another post over on stackapps - What's the difference between tags soapi.cs and soapi.js to get a bug triggered by the former?

There are some very simple ways to handle this, but the issue has not gotten much attention.

A workaround, posited by systempuntoout, is to append an underscore, https://stackoverflow.com/questions/tagged/r.java_ , as padding that will be converted to space and subsequently trimmed off AFTER the request gets past ASP.NET.

1
  • 1
    +1 Thanks for the underscore-workaround. I decided to rename the tag to [r.java-file] because of this issue, but I was struggling to find all questions that used the tag since I couldn't see the tag-page. But with this workaround I could re-tag them all.
    – Jonas
    Nov 30, 2010 at 13:19
2

I created the [r.java] tag because R.java is a specific auto-generated file in Android projects. Many people is having problem with this file so a tag is helpful.

I didn't know this issue with *.java files/URIs. But I recongniced it myself a few days ago, when I clicked on the tag.

Now I have renamed the tag to [r.java-file] which works better. I have also retagged the other few questions that used the [r.java] tag.

Not the answer you're looking for? Browse other questions tagged .