Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The alternate URL for a job (text/html) does not work (404 not found) #29

Closed
Nicolasribot opened this issue Sep 28, 2022 · 5 comments
Closed

Comments

@Nicolasribot
Copy link

Nicolasribot commented Sep 28, 2022

wpsserver 1.8.1 (build 202209270744,commit 0f4908d)

The alternate link in a job status page (jobs/<job_id>) leads to a 404 not found page.
Example of link: /jobs/9e6b0e36-3f42-11ed-9cbb-0242ac130002.html
(an extra / is added to this link in the target page)

/jobs.html also leads to the same error.

The relevant logs entry is:

wps-wps-1    | 2022-09-28 15:31:54,303  [1]     REQ     171.18.2.58     301     GET     /jobs.html      0       0       Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36   
wps-wps-1    | 2022-09-28 15:31:54,645  [1]     REQ     171.18.2.58     404     GET     /jobs.html/     0       69      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36   
wps-wps-1    | 2022-09-28 15:32:02,668  [1]     ERROR   Exception: code: 404, description: Invalid resource path., locator: 
wps-wps-1    | 2022-09-28 15:32:02,668  [1]     DEBUG   Request failed with message: Invalid resource path. HTTP 404: Not Found

@dmarteau
Copy link
Member

I cannot reproduce the problem:

Here is the logs (with empty navigator cache):

test-pyqgiswps-wps-1    | 2022-09-28 15:59:16,123	[1]	REQ	172.25.0.1	301	GET	/jobs.html	0	0	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36	
test-pyqgiswps-wps-1    | 2022-09-28 15:59:16,126	[1]	REQ	172.25.0.1	200	GET	/jobs.html/	0	406

@dmarteau
Copy link
Member

Ok, I reproduce the problem when launching from different setup (running from source work OK). Investigating

@dmarteau
Copy link
Member

This is a packaging problem, html files were not included in the distribution. So tests were ok, but once packaged, it would fail.

I'm releasing a fix right now.

@dmarteau
Copy link
Member

1.8.2 has been released with a fix. You may check then close the issue.

Thanks for bringing this up !

@Nicolasribot
Copy link
Author

Fixed in wpsserver 1.8.2rc0 (build 202209290824,commit 39d1857)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants