Skip to content

[Bug]: For git connected application, redirection fails if the resource is not created in master #40862

Open
@brayn003

Description

@brayn003

Is there an existing issue for this?

  • I have searched the existing issues

Description

So, I have figured out the issue and can replicate it consistently -

Image

In this screenshot, where the page fails to load, the ...?branch=master query param is missing from the URL. This is usually not a problem, because in absence of the branch name, the server assumes the branch is the default branch (usually master) and returns the resources - pages, queries etc accordingly. This works fine as long as the resources were first created in master. If say, the resources were created in some other branch b1 and then merged into master , then the api fails and responds with 404. Hence, the failure! (edited)

Steps To Reproduce

  1. Create an app
  2. Connect to git
  3. Create a new branch
  4. Create a new page
  5. Merge the branch to master
  6. Load master deploy url without branch

Public Sample App

No response

Environment

Production

Severity

High (Blocker to building or releasing)

Issue video log

No response

Version

All

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingGit ProductIssues related to version control productHighThis issue blocks a user from building or impacts a lot of usersNeeds TriagingNeeds attention from maintainers to triagePackages & Git PodAll issues belonging to Packages and GitProduction

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions