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

Cannot login to locally hosted web manually (latest commit) #6010

Closed
sakshamgurung opened this issue Nov 10, 2021 · 16 comments · Fixed by #6031
Closed

Cannot login to locally hosted web manually (latest commit) #6010

sakshamgurung opened this issue Nov 10, 2021 · 16 comments · Fixed by #6031
Labels
Type:Bug Something isn't working

Comments

@sakshamgurung
Copy link
Contributor

sakshamgurung commented Nov 10, 2021

Steps to reproduce

  1. Pull the latest commit id of master branch 1155e0011e8fa711c7574cb12564980ddb1246ff
  2. Install dependencies: yarn install
  3. Serve from web folder: OCIS_INSECURE=true yarn serve
  4. Open browser and goto url: http://localhost:9100/

Expected behaviour

In my browser I want to login and see my files page.

Actual behaviour

Login credentials -> Authorize user -> Stuck with loading icon. I have one older branch which is working fine but latest commit is not.

Hnet-image

Server configuration

Operating system:
Ubuntu 20.04.3 LTS
Web server:
Apache
Database:
mysql Ver 8.0.26-0ubuntu0.20.04.2 for Linux on x86_64 ((Ubuntu))
PHP version:
PHP 7.4.3
ownCloud version: (see ownCloud admin page)
Latest master branch from github repo 1155e0011e8fa711c7574cb12564980ddb1246ff
Updated from an older ownCloud or fresh install:
Fresh install
Where did you install ownCloud from:
Github

@sakshamgurung sakshamgurung added the Type:Bug Something isn't working label Nov 10, 2021
@sakshamgurung
Copy link
Contributor Author

sakshamgurung commented Nov 12, 2021

@phil-davis After running git bisect it is found that this issue starts after the introduction of "public-token-features" commit id: 936a57b merged on 8 Nov 2021. Please checkout the problem.

@phil-davis
Copy link
Contributor

That commit is of PR #5924

@phil-davis
Copy link
Contributor

phil-davis commented Nov 12, 2021

@sakshamgurung Is this related to owncloud/ocis#2745 and the dev doc PR owncloud/ocis#2746 ?

Set env var OCIS_INSECURE=true to make the dev environment work.

@pascalwengerter
Copy link
Contributor

Documented here, @phil-davis can we close the issue then? 🤗

@sakshamgurung
Copy link
Contributor Author

@pascalwengerter This solve my problem with web + ocis which was prompting message You are not allowed to use this application..
But with web + oc10 the problem still persist. I am using this command:OCIS_INSECURE=true yarn serve from /web directory.

@pascalwengerter
Copy link
Contributor

@pascalwengerter This solve my problem with web + ocis which was prompting message You are not allowed to use this application.. But with web + oc10 the problem still persist. I am using this command:OCIS_INSECURE=true yarn serve from /web directory.

What are you doing/trying to achieve? I've been using a dockerized OC10 using the web master's dist folder yesterday without any issues

@sakshamgurung
Copy link
Contributor Author

sakshamgurung commented Nov 12, 2021

What are you doing/trying to achieve? I've been using a dockerized OC10 using the web master's dist folder yesterday without any issues

I am manually trying to use the web (not docker) for some inspection with failed webUI tests.

@pascalwengerter
Copy link
Contributor

What are you doing/trying to achieve? I've been using a dockerized OC10 using the web master's dist folder yesterday without any issues

I am manually trying to use the web (not docker) for some inspection with failed webUI tests.

Running them according to https://owncloud.dev/clients/web/testing/ on current master? Could you send me the tests that are failing, too?

@sakshamgurung
Copy link
Contributor Author

sakshamgurung commented Nov 12, 2021

What are you doing/trying to achieve? I've been using a dockerized OC10 using the web master's dist folder yesterday without any issues

I am manually trying to use the web (not docker) for some inspection with failed webUI tests.

Running them according to https://owncloud.dev/clients/web/testing/ on current master? Could you send me the tests that are failing, too?

Ok I will try. Here is the test yarn test:acceptance:oc10 features/webUISharingInternalGroups/shareWithGroups.feature:255
PR: #5992

@pascalwengerter
Copy link
Contributor

What are you doing/trying to achieve? I've been using a dockerized OC10 using the web master's dist folder yesterday without any issues

I am manually trying to use the web (not docker) for some inspection with failed webUI tests.

Running them according to https://owncloud.dev/clients/web/testing/ on current master? Could you send me the tests that are failing, too?

Ok I will try. Here is the test yarn test:acceptance:oc10 features/webUISharingInternalGroups/shareWithGroups.feature:255 PR: #5992

Can't reproduce, with the dockerized OC10 the test runs fine/passes :/

@sakshamgurung
Copy link
Contributor Author

Can't reproduce, with the dockerized OC10 the test runs fine/passes :/

Yes It's intermittent fail.

@pascalwengerter
Copy link
Contributor

Can't reproduce, with the dockerized OC10 the test runs fine/passes :/

Yes It's intermittent fail.

But do you serve the web assets from the oCIS service? If so, why instead of using the dev server or a watched, build dist?

@sakshamgurung
Copy link
Contributor Author

@pascalwengerter Many of our co-worker is having same issue I will consult them and close the issue after that. I will talk them coming Monday.

@pascalwengerter
Copy link
Contributor

@pascalwengerter Many of our co-worker is having same issue I will consult them and close the issue after that. I will talk them coming Monday.

Can you confirm that you're serving the web assets from oCIS when testing against OC10? If so, we can have a call on Monday and show you a different (and perhaps easier) approach to do so?

@sakshamgurung
Copy link
Contributor Author

  • Everything is working well when serving web assets from oCIS , and testing against API tests (from core) and webUI tests (from web).
  • serving web using yarn serve (from web source code) is showing this issue. webUI test (from web) is also showing this issue

@sakshamgurung sakshamgurung reopened this Nov 12, 2021
@sakshamgurung sakshamgurung changed the title Cannot pass login and redirect to files page in latest commit Cannot login in locally hosted web manually (latest commit) Nov 15, 2021
@sakshamgurung sakshamgurung changed the title Cannot login in locally hosted web manually (latest commit) Cannot login to locally hosted web manually (latest commit) Nov 15, 2021
@individual-it
Copy link
Member

@pascalwengerter we dug a bit deeper and the problem is in fetching the capabilities
Sakscham and also me, we are running core in a subfolder e.g. http://localhost/owncloud-core, that is also set in the config.json but in

endpoint.pathname = 'ocs/v1.php/cloud/capabilities'
the path is overwritten again
#6031 should fix it

@sakshamgurung please try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants