OTTAA-Project / Realiser

Repository for OTTAA's realiser algorithm, previously known as NLG, used for the OTTAA Labs option on the app.
GNU General Public License v3.0
0 stars 0 forks source link

[Bug]: Unable to access docs #19

Closed lopezjuanma96 closed 1 year ago

lopezjuanma96 commented 1 year ago

Contact Details

No response

What happened?

The url for docs is opening a Google Authentication page and after logging in returns a 403 Forbidden

Version

6.7.x (Production)

Where are you seeing the problem on?

Chrome (WebApp)

Relevant log output

No response

Code of Conduct

lopezjuanma96 commented 1 year ago

For some reason if the URL does not add a '/' after docs it redirects to BaseUrl/docs, meaning:

https://us-central1-ottaaproject-flutter.cloudfunctions.net/realiser/docs

redirects to

https://us-central1-ottaaproject-flutter.cloudfunctions.net/docs

which leads to Firebase thinking we want to access some specific Cloud Functions URL since there's no Cloud Function on our project called 'docs', it asks for authentication but since there's nothing at 'docs' or if there is we don't have access, it returns 403. For some reason, this is solved adding a forward slash at the end of the URL:

https://us-central1-ottaaproject-flutter.cloudfunctions.net/realiser/docs/

Still did some correcting on the files, will do the same on other docs on the OTTAA set