Comments (8)
@branflake2267 The link is the official one but it seems that it is broken.
from gwt-site.
You will always get a HTTP 301 (Moved Permanently) response if you request a file other than html (which is true for dtd-files).
The cause for this issue is the server code of the gwt-site-webapp:
if (!fullPath.endsWith("/")) {
fullPath = fullPath + ".html";
e = getResourceByKey(fullPath);
if (e != null) {
// redirect so we use correct urls!
resp.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
resp.setHeader("Location", "/" + fullPath);
return;
}
}
So someone has to fix this code to solve this issue, but for repo 'gwt-site-webapp' it is not clear if contributions are welcome and the official code isn't hosted @ Github:
https://gwt.googlesource.com/gwt-site-webapp
from gwt-site.
Nope, this code is only triggered if the resource cannot be found in the data store. So if DTD links don't work, then it should mean they're not in the data store. Possibly a deployment problem then.
from gwt-site.
Their hashes are in the DocHash collection: http://www.gwtproject.org/hash?count=0, that probably means they'll never going to be uploaded again, so if they're missing in the actual document store then redeploying the site won't fix it.
from gwt-site.
Nope, this code is only triggered if the resource cannot be found in the data store. So if DTD links don't work, then it should mean they're not in the data store. Possibly a deployment problem then.
I suppose you are wrong. Have a look at this point in the code:
fullPath = fullPath + ".html";
For all paths the String ".html" is added before searching in the datastore. This ends up in the following I think when searching for dtd file: "doctype/2.7.0/gwt-module.dtd.html" which of course can't be found.
from gwt-site.
You omitted the lines just above 😉
String fullPath = normalizePath(req.getRequestURI());
Entity e = getResourceByKey(fullPath);
if (e == null) {
// temporary try to find the resource with .html appended
// due to redirects from developers.google.com
from gwt-site.
Hm, right! The classic if-cascade. Whatever happened here it ends in a HTTP 301:
Don't know if the code alone can explain this behaviour.
from gwt-site.
If you use these links it works:
http://www.gwtproject.org/doctype/2.7.0/gwt-module.dtd
http://www.gwtproject.org/doctype/2.8.2/gwt-module.dtd
comparing to these which redirect to gwt-project page:
http://gwtproject.org/doctype/2.7.0/gwt-module.dtd
http://gwtproject.org/doctype/2.8.2/gwt-module.dtd
Ommitting 'www' will break the links.
Don't know if this knowledge is sufficiant to close this issue. In my opinion it should also work without 'www'.
from gwt-site.
Related Issues (20)
- RPC Tutorial - Issue with Serialization
- GWT Surveys not available HOT 1
- Google no longer using GWT in a Number of referenced Projects
- Google+ is no longer available, remove the link HOT 1
- Build doesn't work anymore HOT 1
- gwt 2.9.0 release notes update HOT 3
- RefJreEmulation doc need update for GWT 2.9 HOT 3
- 404: Gitter Logo not found
- No GDPR compliance
- GWT 2.9 JavaDoc HOT 2
- Remove outdated GWT surveys page HOT 1
- Documentation license HOT 1
- Confusing statement re: Documentation published "under" HOT 1
- Build the gwt-site with Maven doesn't work HOT 6
- JsInterop javadoc HOT 1
- Remove __gwt_historyFrame from website
- Update historical release links to use https
- Add issue templates
- improvements HOT 7
- check and update the using Eclipse set up page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-site.