Claire

Results 1010 comments of Claire

Thanks for the report! Could you run the following in a Rails console (`RAILS_ENV=production bundle exec rails c`)? ```ruby Account.find_local!('yourusername').user.applications.map { |app| app.scopes }.filter do |scopes| scopes.map { |scope| ScopeParser.new.parse(scope)...

Hm, strange, what about: ```ruby Account.find_local!('SubwayTooter').user.applications.map { |app| app.scopes }.filter do |scopes| scopes.map { |scope| ScopeTransformer.new.apply(ScopeParser.new.parse(scope)) } false rescue true end ```

```ruby Doorkeeper.config.application_model.authorized_for(Account.find_local!('SubwayTooter').user).map { |app| app.scopes }.filter do |scopes| scopes.map { |scope| ScopeTransformer.new.apply(ScopeParser.new.parse(scope)) } false rescue true end ```

```ruby Doorkeeper.config.application_model.authorized_for(Account.find_local!('SubwayTooter').user).filter do |app| app.scopes.map { |scope| ScopeTransformer.new.apply(ScopeParser.new.parse(scope)) } false rescue true end ``` (scrub the secrets if needed)

ok this appears to be a very old app record with broken scopes, we would need to make sure it's not currently possible to register such apps, and to handle...

Thanks! 4.1.0 introduced scopes with underscores, but our parser does not handle that. Going to fix the issue!

I can't reproduce the issue, are you sure this is caused by an app with `read write follow` scopes? What is the exact backtrace? Are there apps with other scopes?

> There is only one row in oauth_applications where the owner_id was set to the users.id for this user Ah! You're not looking into the right thing! Those are the...

> Thank you! I wonder if it's the comma separated one? `read,follow,write` Yes, most likely. It shouldn't be possible to create such app records anymore, but this existing record is...