WUI links to pages using configured port #2299

Closed
opened 2014-09-17 03:54:52 +00:00 by dsoprea · 2 comments
dsoprea commented 2014-09-17 03:54:52 +00:00
Owner

I'm forwarding :3456 to my local machine as :34561 via SSH, but whenever I click a link/button, like "View File or Directory" or "Recent and Active Operations", I get redirected to a page at :3456 and hit a 404. In the case of the "Recent and Active Operations" link, the anchor-tag just specifies "status" for the href and I don't think it's being preempted in JS (the next JS that runs seems to be something like "unloadEvent"). Therefore, it might be getting redirected at the web-server or the backend.

I'm forwarding :3456 to my local machine as :34561 via SSH, but whenever I click a link/button, like "View File or Directory" or "Recent and Active Operations", I get redirected to a page at :3456 and hit a 404. In the case of the "Recent and Active Operations" link, the anchor-tag just specifies "status" for the *href* and I don't think it's being preempted in JS (the next JS that runs seems to be something like "unloadEvent"). Therefore, it might be getting redirected at the web-server or the backend.
tahoe-lafs added the
website
normal
defect
1.10.0
labels 2014-09-17 03:54:52 +00:00
tahoe-lafs added this to the undecided milestone 2014-09-17 03:54:52 +00:00

Updating component (the "website" component is actually for https://tahoe-lafs.org, but "code-frontend-web" is for the WUI).

Hrm, I thought we'd fixed all of the href targets and form/button targets to use relative URLs. Originally there were lots of absolute URLs (which caused exactly this problem: we had some AllMyData servers that basically reverse-proxied requests into a localhost:3456 URL, and every once in a while the internal host+port would leak). I remember that some of the absolute URLs were not easy to fix (but I don't remember the reaons right now).

Nothing should be getting updated with JS.. it should all be the responsiblity of the HTML-generating code in src/allmydata/web/directory.py .

Updating component (the "website" component is actually for <https://tahoe-lafs.org>, but "code-frontend-web" is for the WUI). Hrm, I thought we'd fixed all of the href targets and form/button targets to use relative URLs. Originally there were lots of absolute URLs (which caused exactly this problem: we had some [AllMyData](wiki/AllMyData) servers that basically reverse-proxied requests into a localhost:3456 URL, and every once in a while the internal host+port would leak). I remember that some of the absolute URLs were not easy to fix (but I don't remember the reaons right now). Nothing should be getting updated with JS.. it should all be the responsiblity of the HTML-generating code in src/allmydata/web/directory.py .
warner added
code-frontend-web
and removed
website
labels 2014-09-19 21:50:05 +00:00
daira commented 2014-09-26 23:15:00 +00:00
Author
Owner

Duplicate of #1928.

Duplicate of #1928.
tahoe-lafs added the
duplicate
label 2014-09-26 23:15:00 +00:00
daira closed this issue 2014-09-26 23:15:00 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#2299
No description provided.