Last modified: 2014-10-09 19:02:20 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 T39115, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37115 - Gerrit drafts should be visible to anonymous users
Gerrit drafts should be visible to anonymous users
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://gerrit.wikimedia.org/r/#/c/8906/
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-25 13:08 UTC by Marcin Cieślak
Modified: 2014-10-09 19:02 UTC (History)
9 users (show)

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


Attachments

Description Marcin Cieślak 2012-05-25 13:08:34 UTC
I have pushed some work-in-progress to https://gerrit.wikimedia.org/r/#/c/8906/
and unfortunately, this gives a Not Found message.

The commit itself is perfectly visible via gitweb:

https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git;a=commit;h=b9757da0b051ca3b331b3626ce0874a3f838597a
Comment 1 Chad H. 2012-05-25 13:11:22 UTC
+upstream?

As far as I understand it, drafts are designed to be hidden by default except by the owner and anyone added to the review list (which makes them awesome for security fixes, but awful for a "hey everybody look at this idea")
Comment 2 Roan Kattouw 2012-05-25 13:12:38 UTC
Drafts are supposed to be private. They're only visible to the submitter and
any reviewers the submitter has added.

The fact that gitweb shows drafts is a serious bug: we thought they were private so we used them for security fixes in the past.
Comment 3 Chad H. 2012-05-25 13:13:53 UTC
(In reply to comment #2)
> Drafts are supposed to be private. They're only visible to the submitter and
> any reviewers the submitter has added.
> 

Yes, that's the intended behavior. But being able to make a draft public (without putting it in the review queue) would be nice to have.

> The fact that gitweb shows drafts is a serious bug: we thought they were
> private so we used them for security fixes in the past.

Yes, that's much worse. Should be reported upstream for sure.
Comment 4 Dereckson 2012-06-05 16:38:01 UTC
Reported as issue 1423.

This issue is private, as I reported it under the security category.

Relevant link (if it's not considered as security issue or for myself): http://code.google.com/p/gerrit/issues/detail?id=1423
Comment 5 Platonides 2012-06-05 16:59:20 UTC
How do you make draft patchset?

Oh, and I have a number of comments about it, Martin (but can't leave them there).
Comment 6 Chad H. 2012-06-05 17:24:01 UTC
(In reply to comment #5)
> How do you make draft patchset?
> 

Instead of pushing to HEAD:refs/(for|publish)/branchname, you use HEAD:refs/drafts/branchname
Comment 7 Aaron Schulz 2012-06-05 17:27:53 UTC
You can use "git review -D" to push it via git-review. "git review -d <id>" and resubmitting work as expected.
Comment 8 Dereckson 2012-06-18 18:05:59 UTC
Hi, I got the following reply:

WONTFIX

"We can't make gitweb filter what is visible. If all references are visible in the repository, gitweb is available, and the user can see anything in the repository,
including drafts that are held by the repository.

This is also true over the native Git protocols. Users can see the refs/changes/... entry for a draft change/patch set even if they can't see this in the Gerrit UI."

So is someone have some ideas to offer a solution to fix that ourselves or should we live with this knowledge, don't use it for security bugs and close this bug in RESO WONTFIX also?
Comment 9 Marcin Cieślak 2012-06-20 19:19:10 UTC
WONTFIX or start arguing that drafts should be public indeed (as "work in progress/do not submit" for example - see also bug 37712). Nothing in Gerrit is set in stone right now and even some basic concepts evolve.
Comment 10 Platonides 2012-06-20 19:59:53 UTC
Drafts SHOULD be public to anyone which can view the repository changes. That's exactly what draft suggests to me.
There could also be something similar to the current draft, such as HEAD:refs/private/branchname
But 'public drafts' should exist.
Comment 11 Gabriel Wicke 2012-06-23 15:48:08 UTC
One more vote for public drafts from me. I recently tried the drafts feature to discuss ideas and was surprised that the links returned 404s for others. We should optimize for the common (public) case rather than the rare (private security patches).
Comment 12 Chad H. 2012-06-25 02:07:25 UTC
There is nothing we can do here--requires upstream changes.
Comment 13 Andre Klapper 2012-11-21 13:10:19 UTC
If this is still wanted, somebody will have to find or file a request upstream in https://code.google.com/p/gerrit/issues/list .
For Wikimedia itself this is currently WONTFIX but we'd get the functionality once it's fixed upstream and we deploy a new Gerrit version that includes the fix on the Wikimedia servers.

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


Navigation
Links