question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Categories are not set

See original GitHub issue

Steps to reproduce:

  • Upload a picture via the in-app “Gallery” button
  • Enter title/description and a few categories
  • File is uploaded, but it is uncategorized

Reproduced in the last 3 files I uploaded.

Add System logs: Here is the log that appears when I press Save after selecting a category. It seems that no request is sent for the categories, and all requests seen here seem to be for loading the “My Recent Upload” activity that shows up afterward:

08-08 15:22:41.622   937   937 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound
08-08 15:22:41.623   937   937 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound                                                                                                                                                             08-08 15:22:41.623   937   937 I ShortcutsDataManager: startImportContentTask()                                                                                                                                                    
08-08 15:22:41.623   937   937 I ShortcutsDataManager: onImportAborted()                                                                                                                                                                                
08-08 15:22:41.640 31889  2484 D CustomApiResult: API request is in.yuvi.http.fluent.Http$HttpGetRequestBuilder@6dc31d4                                                                                                                            
08-08 15:22:41.640 31889  2484 D CustomApiResult: API params are org.apache.http.params.BasicHttpParams@5093f14        
08-08 15:22:41.684 31889 31925 D OpenGLRenderer: endAllActiveAnimators on 0x966d8580 (RippleDrawable) with handle 0x955f57c0
08-08 15:22:41.686 31889  2484 V NetworkInterceptors: <<<<<<<<<<<<<< START OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=Restaurant+Shimizu+in+Azabu&iiprop=url&action=query&format=xml&format=xml] >>>>>>>>>>>>                       08-08 15:22:41.686 31889  2484 V NetworkInterceptors: Request line:
08-08 15:22:41.686 31889  2484 V NetworkInterceptors:  GET /w/api.php?iiurlwidth=640&prop=imageinfo&titles=Restaurant+Shimizu+in+Azabu&iiprop=url&action=query&format=xml&format=xml HTTP/1.1
08-08 15:22:41.686 31889  2484 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>>                                                                                                                                                
08-08 15:22:41.687 31889  2484 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>>
08-08 15:22:41.687 31889  2484 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>       
08-08 15:22:41.687 31889  2484 V NetworkInterceptors: Header >> Host: commons.wikimedia.org
08-08 15:22:41.688 31889  2484 V NetworkInterceptors: Header >> Connection: Keep-Alive     
08-08 15:22:41.688 31889  2484 V NetworkInterceptors: Header >> User-Agent: Commons/2.7.2-debug-master~e00f69a2 (https://mediawiki.org/wiki/Apps/Commons) Android/7.1.2
08-08 15:22:41.689 31889  2484 V NetworkInterceptors: Header >> Cookie: cpPosIndex=1%401533709314%236becda64c89a345bd42fb161afbc7c31; UseDC=master; UseCDNCache=false; GeoIP=JP:13:Tokyo:35.69:139.75:v4; loginnotify_prevlogins=2018-pu2v9o-o30y35nqhh723r68
wqvl65z43ucm9y9; commonswikiSession=p2p4ds7pe03fiiko6ojf4kug142m9qir; commonswikiUserID=27103; commonswikiUserName=Syced; forceHTTPS=true; centralauth_User=Syced; centralauth_Token=da00f24bd38752e7974a2eb3a368e149; centralauth_Session=a6f6431e45edfd9c9c34c07b9704147f; WMF-Last-Access=08-Aug-2018                                                                                                                                                                                                                  08-08 15:22:41.689 31889  2484 V NetworkInterceptors: Header >> Cookie2: $Version=1                                                                                                             
08-08 15:22:41.690 31889  2484 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>
08-08 15:22:41.690 31889  2484 V NetworkInterceptors: Protocol version:                  
08-08 15:22:41.690 31889  2484 V NetworkInterceptors:  HTTP/1.1        
08-08 15:22:41.691 31889  2484 V NetworkInterceptors: <<<<<<<<<<<<<< END OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=Restaurant+Shimizu+in+Azabu&iiprop=url&action=query&format=xml&format=xml] >>>>>>>>>>>>
08-08 15:22:42.119 31889  2484 D CustomApiResult: API response is                                                                                                                                                                                            08-08 15:22:42.119 31889  2484 D CustomApiResult:  <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Restaurant Shimizu in Azabu" missing=""/></pages></query></api>
08-08 15:22:42.141 31889  2500 D CustomApiResult: API request is in.yuvi.http.fluent.Http$HttpGetRequestBuilder@7a1679
08-08 15:22:42.142 31889  2500 D CustomApiResult: API params are org.apache.http.params.BasicHttpParams@5093f14                                                                                                                                              08-08 15:22:42.185 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< START OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=Restaurant+Shimizu+in+Azabu&iiprop=url&action=query&format=xml&format=xml] >>>>>>>>>>>>                       08-08 15:22:42.186 31889  2500 V NetworkInterceptors: Request line:                                                                                                                                                                                          08-08 15:22:42.186 31889  2500 V NetworkInterceptors:  GET /w/api.php?iiurlwidth=640&prop=imageinfo&titles=Restaurant+Shimizu+in+Azabu&iiprop=url&action=query&format=xml&format=xml HTTP/1.1
08-08 15:22:42.186 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>> 
08-08 15:22:42.187 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>>
08-08 15:22:42.187 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>
08-08 15:22:42.188 31889  2500 V NetworkInterceptors: Header >> Host: commons.wikimedia.org                                                                                                                                        
08-08 15:22:42.188 31889  2500 V NetworkInterceptors: Header >> Connection: Keep-Alive                                                                                                                                                                  
08-08 15:22:42.189 31889  2500 V NetworkInterceptors: Header >> User-Agent: Commons/2.7.2-debug-master~e00f69a2 (https://mediawiki.org/wiki/Apps/Commons) Android/7.1.2
08-08 15:22:42.189 31889  2500 V NetworkInterceptors: Header >> Cookie: cpPosIndex=1%401533709314%236becda64c89a345bd42fb161afbc7c31; UseDC=master; UseCDNCache=false; GeoIP=JP:13:Tokyo:35.69:139.75:v4; loginnotify_prevlogins=2018-pu2v9o-o30y35nqhh723r68
wqvl65z43ucm9y9; commonswikiSession=p2p4ds7pe03fiiko6ojf4kug142m9qir; commonswikiUserID=27103; commonswikiUserName=Syced; forceHTTPS=true; centralauth_User=Syced; centralauth_Token=da00f24bd38752e7974a2eb3a368e149; centralauth_Session=a6f6431e45edfd9c9c
34c07b9704147f; WMF-Last-Access=08-Aug-2018                                            
08-08 15:22:42.190 31889  2500 V NetworkInterceptors: Header >> Cookie2: $Version=1
08-08 15:22:42.190 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>                                                                                                                                          
08-08 15:22:42.191 31889  2500 V NetworkInterceptors: Protocol version:                                                                                                                                                                                 
08-08 15:22:42.191 31889  2500 V NetworkInterceptors:  HTTP/1.1
08-08 15:22:42.191 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< END OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=Restaurant+Shimizu+in+Azabu&iiprop=url&action=query&format=xml&format=xml] >>>>>>>>>>>>
08-08 15:22:42.632 31889  2500 D CustomApiResult: API response is
08-08 15:22:42.632 31889  2500 D CustomApiResult:  <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Restaurant Shimizu in Azabu" missing=""/></pages></query></api>
08-08 15:22:42.651 31889  2500 D CustomApiResult: API request is in.yuvi.http.fluent.Http$HttpGetRequestBuilder@16a9fbe
08-08 15:22:42.652 31889  2500 D CustomApiResult: API params are org.apache.http.params.BasicHttpParams@5093f14
08-08 15:22:42.674 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< START OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=Minato+shared+bicycles+at+C2-05.%E3%81%82%E3%82%8A%E3%81%99%E3%81%84%E3%81%8D%E3%81%84%E3%81%8D%E3%83%97%E3%83
%A9%E3%82%B6&iiprop=url&action=query&format=xml&format=xml] >>>>>>>>>>>>
08-08 15:22:42.675 31889  2500 V NetworkInterceptors: Request line:
08-08 15:22:42.675 31889  2500 V NetworkInterceptors:  GET /w/api.php?iiurlwidth=640&prop=imageinfo&titles=Minato+shared+bicycles+at+C2-05.%E3%81%82%E3%82%8A%E3%81%99%E3%81%84%E3%81%8D%E3%81%84%E3%81%8D%E3%83%97%E3%83%A9%E3%82%B6&iiprop=url&action=query
&format=xml&format=xml HTTP/1.1
08-08 15:22:42.676 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>>
08-08 15:22:42.676 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>>
08-08 15:22:42.677 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>
08-08 15:22:42.677 31889  2500 V NetworkInterceptors: Header >> Host: commons.wikimedia.org
08-08 15:22:42.677 31889  2500 V NetworkInterceptors: Header >> Connection: Keep-Alive
08-08 15:22:42.678 31889  2500 V NetworkInterceptors: Header >> User-Agent: Commons/2.7.2-debug-master~e00f69a2 (https://mediawiki.org/wiki/Apps/Commons) Android/7.1.2
08-08 15:22:42.678 31889  2500 V NetworkInterceptors: Header >> Cookie: cpPosIndex=1%401533709314%236becda64c89a345bd42fb161afbc7c31; UseDC=master; UseCDNCache=false; GeoIP=JP:13:Tokyo:35.69:139.75:v4; loginnotify_prevlogins=2018-pu2v9o-o30y35nqhh723r68
wqvl65z43ucm9y9; commonswikiSession=p2p4ds7pe03fiiko6ojf4kug142m9qir; commonswikiUserID=27103; commonswikiUserName=Syced; forceHTTPS=true; centralauth_User=Syced; centralauth_Token=da00f24bd38752e7974a2eb3a368e149; centralauth_Session=a6f6431e45edfd9c9c
34c07b9704147f; WMF-Last-Access=08-Aug-2018
08-08 15:22:42.679 31889  2500 V NetworkInterceptors: Header >> Cookie2: $Version=1
08-08 15:22:42.679 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>
08-08 15:22:42.680 31889  2500 V NetworkInterceptors: Protocol version:
08-08 15:22:42.680 31889  2500 V NetworkInterceptors:  HTTP/1.1
08-08 15:22:42.680 31889  2500 V NetworkInterceptors: <<<<<<<<<<<<<< END OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=Minato+shared+bicycles+at+C2-05.%E3%81%82%E3%82%8A%E3%81%99%E3%81%84%E3%81%8D%E3%81%84%E3%81%8D%E3%83%97%E3%83%A
9%E3%82%B6&iiprop=url&action=query&format=xml&format=xml] >>>>>>>>>>>>
08-08 15:22:43.144 31889  2500 D CustomApiResult: API response is
08-08 15:22:43.144 31889  2500 D CustomApiResult:  <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="-1" ns="0" title="Minato shared bicycles at C2-05.ありすいきいきプラザ" missing=""/></pages></query></api>
08-08 15:22:43.159 31889  2501 D CustomApiResult: API request is in.yuvi.http.fluent.Http$HttpGetRequestBuilder@206181f
08-08 15:22:43.159 31889  2501 D CustomApiResult: API params are org.apache.http.params.BasicHttpParams@5093f14
08-08 15:22:43.181 31889  2501 V NetworkInterceptors: <<<<<<<<<<<<<< START OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=File%3ACurious+building+near+%E6%9C%89%E6%A0%96%E5%B7%9D%E5%85%AC%E5%9C%92.jpg&iiprop=url&action=query&format=
xml&format=xml] >>>>>>>>>>>>
08-08 15:22:43.183 31889  2501 V NetworkInterceptors: Request line:
08-08 15:22:43.183 31889  2501 V NetworkInterceptors:  GET /w/api.php?iiurlwidth=640&prop=imageinfo&titles=File%3ACurious+building+near+%E6%9C%89%E6%A0%96%E5%B7%9D%E5%85%AC%E5%9C%92.jpg&iiprop=url&action=query&format=xml&format=xml HTTP/1.1
08-08 15:22:43.184 31889  2501 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>>
08-08 15:22:43.184 31889  2501 V NetworkInterceptors: <<<<<<<<<<<<<< REQUEST PARAMS >>>>>>>>>>>>
08-08 15:22:43.185 31889  2501 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>
08-08 15:22:43.186 31889  2501 V NetworkInterceptors: Header >> Host: commons.wikimedia.org
08-08 15:22:43.187 31889  2501 V NetworkInterceptors: Header >> Connection: Keep-Alive
08-08 15:22:43.187 31889  2501 V NetworkInterceptors: Header >> User-Agent: Commons/2.7.2-debug-master~e00f69a2 (https://mediawiki.org/wiki/Apps/Commons) Android/7.1.2
08-08 15:22:43.188 31889  2501 V NetworkInterceptors: Header >> Cookie: cpPosIndex=1%401533709314%236becda64c89a345bd42fb161afbc7c31; UseDC=master; UseCDNCache=false; GeoIP=JP:13:Tokyo:35.69:139.75:v4; loginnotify_prevlogins=2018-pu2v9o-o30y35nqhh723r68
wqvl65z43ucm9y9; commonswikiSession=p2p4ds7pe03fiiko6ojf4kug142m9qir; commonswikiUserID=27103; commonswikiUserName=Syced; forceHTTPS=true; centralauth_User=Syced; centralauth_Token=da00f24bd38752e7974a2eb3a368e149; centralauth_Session=a6f6431e45edfd9c9c
34c07b9704147f; WMF-Last-Access=08-Aug-2018
08-08 15:22:43.188 31889  2501 V NetworkInterceptors: Header >> Cookie2: $Version=1
08-08 15:22:43.188 31889  2501 V NetworkInterceptors: <<<<<<<<<<<<<< HEADERS >>>>>>>>>>>>
08-08 15:22:43.189 31889  2501 V NetworkInterceptors: Protocol version:
08-08 15:22:43.189 31889  2501 V NetworkInterceptors:  HTTP/1.1
08-08 15:22:43.190 31889  2501 V NetworkInterceptors: <<<<<<<<<<<<<< END OF REQUEST LOGGING [/w/api.php?iiurlwidth=640&prop=imageinfo&titles=File%3ACurious+building+near+%E6%9C%89%E6%A0%96%E5%B7%9D%E5%85%AC%E5%9C%92.jpg&iiprop=url&action=query&format=xm
l&format=xml] >>>>>>>>>>>>
08-08 15:22:43.658 31889  2501 D CustomApiResult: API response is
08-08 15:22:43.658 31889  2501 D CustomApiResult:  <?xml version="1.0" encoding="UTF-8"?><api batchcomplete=""><query><pages><page _idx="71445302" pageid="71445302" ns="6" title="File:Curious building near 有栖川公園.jpg" imagerepository="local"><imagei
nfo><ii thumburl="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Curious_building_near_%E6%9C%89%E6%A0%96%E5%B7%9D%E5%85%AC%E5%9C%92.jpg/640px-Curious_building_near_%E6%9C%89%E6%A0%96%E5%B7%9D%E5%85%AC%E5%9C%92.jpg" thumbwidth="640" thumbheig
ht="427" url="https://upload.wikimedia.org/wikipedia/commons/1/1b/Curious_building_near_%E6%9C%89%E6%A0%96%E5%B7%9D%E5%85%AC%E5%9C%92.jpg" descriptionurl="https://commons.wikimedia.org/wiki/File:Curious_building_near_%E6%9C%89%E6%A0%96%E5%B7%9D%E5%85%AC
%E5%9C%92.jpg" descriptionshorturl="https://commons.wikimedia.org/w/index.php?curid=71445302"/></imageinfo></page></pages></query></api>
08-08 15:22:44.437   786   887 D WifiStateMachine: updateCapabilities for config:mywififalse,false
08-08 15:22:44.439  6209  6245 I NetGuard.Service: Capabilities changed generation=null
08-08 15:22:44.439  6209  6245 I NetGuard.Service: New network generation=null
08-08 15:22:44.442  6209  6245 I NetGuard.Monitor: New capabilities network 116 [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "mywifi", failover: false, available: true, roaming: false, metered: false]
08-08 15:22:44.442  6209  6245 I NetGuard.Monitor: Capabilities=[ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&FOREGROUND LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps SignalStrength: -55]
08-08 15:22:47.023 31889 31912 I art     : Starting a blocking GC Explicit
08-08 15:22:47.151 31889 31912 I art     : Explicit concurrent mark sweep GC freed 108374(8MB) AllocSpace objects, 76(16MB) LOS objects, 35% free, 29MB/45MB, paused 694us total 120.462ms

Commons app version:

Current master

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
maskaravivekcommented, Aug 9, 2018

I will take a look at this on Sunday. 😃

1reaction
nicolas-raoulcommented, Aug 9, 2018

According to my bisection (which might be wrong as categories do not appear immediately), this commit seems to be the cause: https://github.com/commons-app/apps-android-commons/commit/143ad00149156e9c7dea292b1a975ecc115a17f3

Read more comments on GitHub >

github_iconTop Results From Across the Web

What exactly is the semantic difference between category and ...
In brief, set theory is about membership while category theory is about structure-preserving transformations – but only about the ...
Read more >
Category of sets - Wikipedia
In the mathematical field of category theory, the category of sets, denoted as Set, is the category whose objects are sets. The arrows...
Read more >
A category with objects that are not based on sets or classes
Category theory does not base on sets. More, there's no such thing as "the" Set Theory. Each theory has its own collection of...
Read more >
What the value (not set) means - Analytics Help
(not set) is a placeholder name that Analytics uses when it hasn't received any information for the dimension you have selected. The reasons...
Read more >
What's the difference between category theory and set ... - Quora
Set theory explaines object “internally” braking it to parts and describing relations between this parts. Category theory explains object “externally” do not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found