#1532 SSE server does not work for namespaced projects
Closed: Fixed 7 years ago Opened 7 years ago by adamwill.

It looks like the SSE server can't find namespaced projects, thus you get bugs like 'comments don't show up until you refresh the page' when interacting with them:

username = None
try:
    if path.startswith('/fork'):
        username, repo, obj, objid = path.split('/')[2:6]
    else:
        repo, obj, objid = path.split('/')[1:4]
except:
    raise PagureEvException("Invalid URL: %s" % path)

repo = pagure.lib.get_project(pagure.SESSION, repo, user=username)

if repo is None:
    raise PagureEvException("Project '%s' not found" % repo)

Note nothing is accounting for namespacing there. I'll try and fix this later.


And I have the JS part for this :)

I can't find back the PR which would include some JS code change related to this ticket, but I do think this ticket has been fixed.

So let's close it as such and re-open (or open a new one) if I'm missing something :)

@pingou changed the status to Closed

7 years ago

Login to comment on this ticket.

Metadata