Bug 15038 - Submitting a layer at https://layers.openembedded.org/ results in "Page not Found"
Summary: Submitting a layer at https://layers.openembedded.org/ results in "Page not F...
Status: RESOLVED FIXED
Alias: None
Product: Layer Index
Classification: Yocto Project Subprojects
Component: Layer Index (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 4.3
Assignee: Tim Orling
QA Contact: apoorv sangal
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-02-23 07:17 UTC by Ulf Samuelsson
Modified: 2023-10-07 17:27 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
https://layers.openembedded.org/layerindex/submit/thanks/ (149.19 KB, image/png)
2023-02-23 07:17 UTC, Ulf Samuelsson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulf Samuelsson 2023-02-23 07:17:43 UTC
Created attachment 4932 [details]
https://layers.openembedded.org/layerindex/submit/thanks/

Overview: 

When you add a layer at https://layers.openembedded.org/
you end up at a page which does not exist.

* https://layers.openembedded.org/layerindex/submit/thanks/

Steps to Reproduce: 

    1) Go to https://layers.openembedded.org/

    2) Create an account, or log into your account

    3) Press the "Submit Layer" at the top right corner

    4) Fill in the desired information

    5) Press the "Submit Layer" button at the bottom.

Actual Results: 

    You end up at

    https://layers.openembedded.org/layerindex/submit/thanks/

    which does not exist.

Expected Results: 

    You should get a message that the submission is accepted
    and will be reviewed

Build Date & Platform: Date and platform of the build in which you first encountered the bug.
    
    2023-20-19
    Ubuntu 22.04 with Mate desktop.

     
Additional Information:

The request to add a layer still works, but this is not obvious to the user.
Comment 1 Randy MacLeod 2023-02-23 15:40:45 UTC
There seems to be a page missing in the layer index system.
Comment 2 Tim Orling 2023-10-07 17:27:01 UTC
Fixed in:
https://git.yoctoproject.org/layerindex-web/commit/?id=7b316cddfbb53c0ea37fcd34577bce9194c2e0ef

The root cause was a bad regex which excluded the trailing /.

In earlier Django versions, urls did not automatically append the trailing /, but all this is now on by default (and is considered good practice for URIs).