Bad Request - Invalid URL when loading page Confluence

Deleted user March 19, 2018

Hello!

We currently have the problem that someone created a page and by mistake somehow entered a "tab" symbol in the page name.  Now the page is published and we are unable to access the page again. When we try to view page we get the notification: "Bad request - Invalid URL" HTTP Error 400, The Request URL is invalid. 

Looking for a troubleshooting solution I found the following information: https://confluence.atlassian.com/confkb/bad-request-invalid-url-when-loading-page-722144482.html

However, I have troubles to get the Id, since in Confluence 6.7 as soon as you click on edit, it's not editpage.action.....anymore but it is /resumedraft.action?draftId=<darft-id>draftShareId=<draft shared number>

Has someone an idea where to get this numbers from? Is there any possibility to access the page again?

Thank you very much in advance for your help!

5 answers

1 vote
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2018

@[deleted] Please try a SQL select statement on your database to get the pageid.

A little research on my Confluence 6.7 database revealed that the pageid column is null for the PAGE content type in the database. So you have to use the contentid as page ID for the latest version. To see all the versions, please try this SQL:

select contentid, version, title from content where contenttype = 'PAGE' and title like %<PAGE_TITLE>%;

Then use the contentid for the highest version as the pageId in the URL:

<baseURL>/pages/editpage.action?pageId=<CONTENTID_FROM_QUERY>

 I look forward to hearing how it goes.

Thanks,

Ann

1 vote
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2018

Hi Claudia,

if you know the page id, you don't need the draft and share-ids.

Do you see the link to the page e.g. in the page tree? Then you can click with the right-mouse-button on the link and copy the url to the clipboard.

Then paste the link in a new browser window, and change "viewpage" to "editpage".

Deleted user March 19, 2018

Hey Thomas,

Thank you very much for your quick reply!

I already tried to do that, but it doesn't work. When I copy the link from the page tree I just get https://jira.alicona.com/confluence/display/<SPACEKEY>/<PAGENAME>

If I try to use the option/version from the link I shared above, which would be <baseURL>/pages/editpage.action?pageId=<PAGEID_FROM_QUERY>, I need a page ID, which I don't have.

So, somehow this option doesn't seem to work for me :(

Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2018

@[deleted] do you see the page in the "recently updated" macro?

There is a link "view change" - this one should also provide you the page id

Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 20, 2018

@[deleted]

If you put the children-macro on the parent page of the broken page, it should also give you the page-id, if you hover over the link.

0 votes
Harish bhat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2020

The other way to fix this issue is:

  1. Go to any editable page
  2. Click on edit button, navigate to insert more content->other macros option
  3. in the search tab, enter "space page ids with Title"
  4. Temporarily insert it and do a preview
  5. You will find the page id of all the pages.
  6. Use the problematic pageid and edit using : <baseURL>/pages/editpage.action?pageId=<pageid>
  7. Now delete the line or heading/title that is creating problem and try publishing the page again.
        In my case the heading had something like
               [title]:- [id]... I had to delete the "[" and keep plain text to resolve the issue
  8. insert_macro.JPGspace.JPG
0 votes
Harish bhat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2020

see below comment

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2018

Hi Claudia,

In Confluence 6.7 you may get the page ID by going to View History on the ... menu while viewing the page:

Screen Shot 2018-03-19 at 10.14.07 AM.png

 

Screen Shot 2018-03-19 at 10.14.27 AM.png

Deleted user March 19, 2018

Hi Ann,

thank you very much for your quick reply!

Unfortunately that doesn't work for me. Since I'm unable to access the page itself  - I can't view it -  I'm unable to view the page history.

Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2018

@AnnWorley but she can't view the page...

AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2018

Oh derp - thanks @Thomas Schlegel!

Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2018

:-)

Deleted user March 20, 2018

Unfortunately not, so this is not an option (I see it in the recent space activity macro, but since there were no changes made because the page was freshly published for the first time, I can't click on view changes.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events