# Bug OP-18989 - Backlog module broken since upgrade to 17.x

Project: OpenProject
Status: rejected
URL: https://community.openproject.org/work_packages/OP-18989

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Backlogs |
| Target versions |  |
| Observed in versions | 17.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Abstract:

backlog module broken after upgrade from 16 to 17 in cases, where the backlog versions are inherited from parent projects.

### Steps to reproduce

1.  Project A defines no own backlog versions, but get them from parent projects

2.  Login as a user with sufficient rights on project A

3.  go to project A -\> backlogs

4.  on any sprint version click the triangle on the top right, select stories/tasks

5.  on any sprint version click the triangle on the top right, select task board

6.  on any sprint version click the triangle on the top right, select ....

### What is the buggy behavior?

**1st configuration**: The project is child of another project, which has the backlogs module disabled.

Whenever clicking stories/tasks, task board or whatever, a 403 is returned.  `_You are not authorized to access this page._`

**2nd configuration**: The projects's parent, where the backlog version is coming from, which has the backlogs module is enabled

Whenever clicking stories/tasks, task board or whatever, the respective page is displayed, but NOT for the project, where I am working at, but in the parent project. 

This renders the baglock feature unusable in situations, where the backlog versions come directly or inderectly from the parent project in a nested project situation. (at least)

To me it looks, as if the versions, which come from parent project (or wherever; the backlog versions come from, could be great grandmother, too), the backlog module tries to get data or use funtionality in the project, where the version actually has been defined, and not in the project, where we are currently working, even though, the projact HAS inherited the verwsion. (The backlogs start page shows the correct workpackages in the correct version backlog)

### What is the expected behavior?

In any project, which has backlog enabled, not only the main backlog page shows the workpackage og the project in the correct backlog version, but also the task bord etc. shall show the correct information. As it was until before the upgrade from 16.X to 17.

### Important note

*Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, new images and upload attachments though, but updating description or modifying fields will not be possible after saving. Please make sure that all necessary information and attachments are added, and the following attributes are set:*

### **Logs**

I could not find any error message, which gave me a hint of somethoing beeing wrong

### Screenshots and other files

*If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section.*

### Environment information

I have the same effekt in 3 independent installations. Two are on Ubuntu systems with the packaged installation, another one runs in a docker-compose installatiion with an external postgresql. (Tried also the postgresql container, which didn't change anything for me)

**OpenProject installation type**

  - Self hostes installation

  - Packaged installation
    
      - Ubuntu 22

  - Docker-compose installation with an extrenal postgresql database\#

  - postgresql versions tried:
    
      - 15
    
      - 16
    
      - 17
    
      - 18

  - 
    
    <br>

**OpenProject version**

*17.1.0, 17.1.1, 17.1.2*

all showed exactly the same behaviour. Until 16.6.8 with a postgresql 17.9 all worked as expected

**Browser**

- [x] Chrome
- [x] Firefox
- [x] Safari
- [x] Mobile Safari
- [x] Other (please specify)

**Operating System**

- [x] Windows
- [x] Mac OS X
- [x] Mobile iOS
- [x] Mobile Android
- [x] Linux (please specify distro)
- [x] Chrome OS
- [ ] Other (please specify)

**Language**

All languages
