lovele0107 / signatures-conformance-checker

7 stars 0 forks source link

XAdES Conformance Checker not working #37

Open quamis opened 2 years ago

quamis commented 2 years ago

After I upload a file, the link that should open the report returns 404. It was working yesterday.

lovele0107 commented 2 years ago

I have just tried and had no issue. Could you please try again or at least could you share the signature that created error ?

quamis commented 2 years ago

I get this for any kind of file. In this example I've uploaded an unrelated csv file. I get the same behaviour for xml files also.

https://user-images.githubusercontent.com/2966084/195841846-cf357d68-1662-43e3-85ab-a618d27fd422.mp4

quamis commented 2 years ago

Hello, I found the issue. If I login with my username + a space character, the login is succesfull, but the upload paths contain the username's space in it. That means that the report path will look like this:

https://signatures-conformance-checker.etsi.org/protected/XAdESConf/TestCases/username _041234567890/123456789/index.html (notice the space after username. That path does not exist on server, so the 404 appears.

lovele0107 commented 2 years ago

Sorry for this. Please provide me your username and I will recreate it without space

quamis commented 2 years ago

It's ok, I changed the username in the password manager, not sure how it got there with the space in the first place. But it's an easy error to make that will apparently break the upload process. Seems to me that the upload process and the generated links in the page simply needs to happen without the space chars at the end of the username, so it would probably be 1-2 lines of code to fix.

I can close this issue from my POV.