Closed mbaynton closed 1 year ago
Thanks @mbaynton for looking at the root cause. I'm not sure what's the best way to go from here, though, so maybe this goes back into the grooming column? A content/project is needed to create the output and to redirect correctly to it, but there isn't one (unless the temp copy project is forked).
We could:
Option 2 is a bit weird since re-publishing from the temp copy would create a fork each time.
A content/project is needed to create the output and to redirect correctly to it, but there isn't one (unless the temp copy project is forked).
I think I was too hasty in my linking to the cloudClient
implementation of getApplication()
in the issue description (Code ref 1). It does make a call to Posit Cloud to get the content object associated to the application, but I think callers of getApplication()
are providing the output's application ID, not the source cloud project's application ID. That should always be fine.
So I think our only problem is in my link "Code ref 2." I think we can fix that by just avoiding attempting to set a space ID if the application has no content ID. This will result in the output showing up in the user's personal workspace, which seems okay since that's where the source project is.
STR:
Cause: Applications that are temp copies have a
null
content_id
Code inrsconnect
tries to look up the content ID based on its application ID, which in this case produces a request tohttps://api.shinyapps.io/v1/content/