Last modified: 2008-07-03 15:02:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16707, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14707 - API: parse does not show revID if title (&text) is given
API: parse does not show revID if title (&text) is given
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Roan Kattouw
http://de.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-02 23:54 UTC by Melancholie
Modified: 2008-07-03 15:02 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Melancholie 2008-07-02 23:54:24 UTC
See:
http://de.wikipedia.org/w/api.php?action=parse&title=Ball&text={{:Ball}}&prop=revid

If there is a given title, the revID should be shown (like with 'page').

Quote: "title          - Title of *page* the text belongs to"
Comment 1 Brion Vibber 2008-07-02 23:56:23 UTC
There is no revision ID in this case, since you're providing non-saved text.
Comment 2 Roan Kattouw 2008-07-03 09:10:44 UTC
(In reply to comment #1)
> There is no revision ID in this case, since you're providing non-saved text.
> 

That doesn't seem to be the problem. If I remove the text= and the prop= parameters (since prop=revid is included by default anyway), I get an empty page with no revid and no content other than the limit report.
Comment 3 Roan Kattouw 2008-07-03 09:12:56 UTC
Oh wait, you're using title instead of page. Setting title=Ball basically means that the text will behave like it's on [[Ball]], which means [[Ball]] will be a self-link (bold rather than a link), [[/Foo]] will link to [[Ball/Foo]] etc. If you want to parse the content of [[Ball]], set page=Ball.
Comment 4 Melancholie 2008-07-03 12:28:03 UTC
Hmm, but is there a good reason for showing the always empty tag <parse revid="" /> in those cases?
Maybe remove this tag; or replace it by the articleID/curRevisionID (if given)?
Comment 5 Roan Kattouw 2008-07-03 15:02:21 UTC
(In reply to comment #4)
> Hmm, but is there a good reason for showing the always empty tag <parse
> revid="" /> in those cases?
> Maybe remove this tag; or replace it by the articleID/curRevisionID (if given)?
> 

Done in r36983. It was intended not to appear in that case, but I confused null and false.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links