Skip to content

Inconsistency between OAuth2 access token and session cookie expirations #28707

Closed

Description

@davivel

Same as #28336 , but in other endpoints:

/ocs/v1.php/cloud/capabilities
/ocs/v1.php/cloud/user
/index.php/avatar/[username]/[size_in_pixles]

cc @DeepDiver1975

Activity

  1. added
    p2-high
    on Aug 16, 2017
  2. added this to the development milestone on Aug 16, 2017
  3. DeepDiver1975 commented on Aug 17, 2017

    @DeepDiver1975
    Contributor

    this is a tricky beast - requires redesign of core interfaces and implementations ...

  4. davivel commented on Aug 18, 2017

    @davivel
    Author

    @DeepDiver1975 , tested with the Android app.

    /ocs/v1.php/cloud/capabilities and /ocs/v1.php/cloud/user are working fine.

    /index.php/avatar/[username]/[size] is returning error 500.

    In the logs I can see this:

    {"reqId":"ii6upYu5P6PBn2q5J8Kw","level":3,"time":"2017-08-18T11:05:55+00:00","remoteAddr":"XX.YY.ZZ.AA","user":"--","app":"index","method":"GET","url":"\/index.php\/avatar\/diana\/145","message":"Exception: {\"Exception\":\"TypeError\",\"Message\":\"Argument 8 passed to OC\\\\Core\\\\Controller\\\\AvatarController::__construct() must implement interface OCP\\\\Files\\\\Folder, null given, called in \\\/opt\\\/owncloud\\\/core\\\/Application.php on line 98\",\"Code\":0,\"Trace\":\"#0 \\\/opt\\\/owncloud\\\/core\\\/Application.php(98): OC\\\\Core\\\\Controller\\\\AvatarController->__construct('core', Object(OC\\\\AppFramework\\\\Http\\\\Request), Object(OC\\\\AvatarManager), Object(OC\\\\Cache\\\\File), Object(OC\\\\L10N\\\\L10N), Object(OC\\\\User\\\\Manager), Object(OC\\\\User\\\\Session), NULL, Object(OC\\\\Log))\\n#1 \\\/opt\\\/owncloud\\\/lib\\\/composer\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(113): OC\\\\Core\\\\Application->OC\\\\Core\\\\{closure}(Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer))\\n#2 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(111): Pimple\\\\Container->offsetGet('AvatarControlle...')\\n#3 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(81): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('AvatarControlle...')\\n#4 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('AvatarControlle...', 'getAvatar', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#5 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#6 \\\/opt\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(299): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#7 \\\/opt\\\/owncloud\\\/lib\\\/base.php(931): OC\\\\Route\\\\Router->match('\\\/avatar\\\/diana\\\/1...')\\n#8 \\\/opt\\\/owncloud\\\/index.php(56): OC::handleRequest()\\n#9 {main}\",\"File\":\"\\\/opt\\\/owncloud\\\/core\\\/Controller\\\/AvatarController.php\",\"Line\":82}"}
    
  5. davivel commented on Aug 18, 2017

    @davivel
    Author

    Not yet. Now (legacy) webdav endpoint is failing with 401 when accessed with a fresh access token but no session cookie account, what we do when creating a new account.

  6. SamuAlfageme commented on Aug 23, 2017

    @SamuAlfageme

    /index.php/avatar/[username]/[size] is returning error 500.

    We get & handle the same on the Desktop client when the avatar was not yet set by the user (was it in your case @davivel?)

  7. PVince81 commented on Aug 30, 2017

    @PVince81
    Contributor

    assigning to @phisch for the time being

    but from reading @DeepDiver1975's comment it looks like this is a bigger topic that needs proper scheduling, no quickfix...

  8. PVince81 commented on Aug 30, 2017

    @PVince81
    Contributor

    seems there's a related WIP PR: #28733

  9. modified the milestones: development, on Sep 18, 2017
  10. PVince81 commented on Nov 3, 2017

    @PVince81
    Contributor

    Assigned to @DeepDiver1975 as he has an almost ready PR

  11. DeepDiver1975 commented on Nov 23, 2017

    @DeepDiver1975
    Contributor

    #28733 is merged and backported to stable10 -> close

  12. lock commented on Aug 2, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  13. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:Bugp2-high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions