Dimillian / Dimillian/IceCubesApp

Bug: POST requests should use form data or JSON body, not query string parameters

Open
#2,235 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
7.1k
Forks
720
PR merge metrics
No merged PRs in 30d

Description

Environment:

  • OS: iOS 18.2 (22C150)
  • IceCubesApp version: 1.11.2

Description

Ice Cubes tries to create its app using query string parameters.

e.g. POST /api/v1/apps?client_name=IceCubesApp&redirect_uris=icecubesapp://&scopes=read%20write%20follow%20push&website=https://github.com/Dimillian/IceCubesApp

This does not work on Akkoma (and probably Pleroma) instances as they only take POST requests using form data or JSON bodies (which is recommended in the API docs - "It is expected that query strings are used for GET requests, and form data or JSON is used for all other requests.")

Additionally the example for creating an app in the docs explicitly shows a JSON body - https://docs.joinmastodon.org/methods/apps/#create

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the app-creation request for the POST /api/v1/apps endpoint. Compare its parameter handling with the Mastodon app-creation documentation and verify that the request sends the parameters in a form-data or JSON body rather than the query string, including compatibility with Akkoma.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api, mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.