00533: New page edit link links to false page

Summary: New page edit link links to false page
Created: 2005-09-20 01:25
Status: Closed - intended design
Category: Bug
From: Klonk
Assigned:
Priority: 2
Version: 2.0.6
OS:

Description: I found a bug (at least I think it is one) during updating the german translation of some pages.

I wanted to create a page PmWikiDe/PmWiki (now it exists, but I'm sure you can reproduce) so I wrote

 http://www.pmwiki.org/wiki/PmWikiDe/PmWiki

into the URL line.

Then a page occured with the text (which is OK so far):

 Describe PmWiki here.

But this link to PmWiki pointed to:

 http://www.pmwiki.org/wiki/PmWiki/PmWiki

instead of:

 http://www.pmwiki.org/wiki/PmWikiDe/PmWiki?action=edit

Clicking on the edit link at the top right corner works fine.


It's confusing, but I'm not sure I'll classify it as a bug. It's probably just the least of several evils.

The $DefaultPageTextFmt variable has a value of "Describe $Name here." $Name is the name of the page, in this case "PmWiki", and since it's a WikiWord it is treated as a link to another page. Given a page link like "PmWiki" that has no group qualifier, it links to the first of

  • PmWiki in the current group, if it exists
  • PmWiki.PmWiki, if it exists
  • PmWiki.$DefaultName, if it exists
  • the edit page to create PmWiki in the current group

So, in this case, the PmWiki link became a link to the group instead of a link to create a new page.

There are several options or workarounds:

  • Disable wikiword links
  • Change $DefaultPageEditFmt to "Describe $FullName here."
  • Change $DefaultPageEditFmt to "Describe [=$Name=] here."

The first option is a CoreCandidate at PITS:00520. I think the other two options are actually less desirable than the status quo.

At any rate, I'm going to probably classify this issue as an intentional design decision.

--Pm


Well, OK. I just wanted to bring this to your knowledge.

-- Klonk September 21, 2005, at 01:38 PM

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f00533
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f00533
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00533
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/00533
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afLK3n-l2wO1LmrHho2BFQAAARg
            [REDIRECT_URL] => /wiki/PITS/00533
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 1616
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/00533
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00533
            [SCRIPT_URL] => /wiki/PITS/00533
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afLK3n-l2wO1LmrHho2BFQAAARg
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777519326.1393
            [REQUEST_TIME] => 1777519326
            [argv] => Array
                (
                    [0] => n=PITS%2f00533
                )

            [argc] => 1
        )

)